fhunleth

fhunleth

Co-author of Nerves

Toolshed - IEx helpers for working with Nerves and more

Toolshed is a set of IEx helpers that I’ve collected or others have given me over the years to make working at the IEx prompt more enjoyable. If you’ve done any development with Nerves, you’ve probably missed some Linux command line utilities. While it’s possible to add them, the experience isn’t the same. This project tries to add Elixir versions and a few other utilities that have come in handy. Here’s a sample:

  1. top - like top, but instead of OS processes, list Elixir processes and their applications
  2. tping - check if a computer is up. (the t is for TCP since it tests connecting to port 80)
  3. tree - list a directory tree like a tree
  4. ifconfig - list network interfaces
  5. exit - exit an ssh connection to the IEx prompt (no more ~.)
  6. grep - print out lines in a file that match a regular expression
  7. nslookup - resolve hostnames using OTP’s resolver

See the hex docs for the rest.

None of these utilities is particularly long or complicated. The original Linux utility or a purpose-built debug tool is far superior to any one of them. For me, having a simple, quick-to-type version available at the IEx prompt has saved me time and made them worth it. I hope it will help you too. Please let me know if you have code snippets that you similarly copy from project to project that may make sense to include here as well.

Most Liked

ConnorRigby

ConnorRigby

Nerves Core Team

And please no one ask what color to paint it

Where Next?

Popular in Announcing Top

danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
mischov
import Meeseeks.CSS html = HTTPoison.get!("https://news.ycombinator.com/").body for story <- Meeseeks.all(html, css("tr.athing")) do...
New
ostinelli
Let’s write a database! Well not really, but I think it’s a little sad that there doesn’t seem to be a simple in-memory distributed KV da...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
Eiji
ExApi is a library that I’m developing now and hope release soon This library will allow to: list all apis list all api implementation...
New
bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
384 13736 119
New
Flo0807
Hello everyone! I am excited to share our heart project Backpex with you. After building several Phoenix applications, we realized that...
New
OvermindDL1
Been making an MLElixir thing (not released yet…) for fun in spare time in the past day. I’m just trying to see how much I can get an ML...
132 13966 106
New
marcuslankenau
I feel kind of stuck with the absence of a proper xml library for Elixir. Currently I use SweetXML which was ok for me more or less to pa...
New
trisolaran
Hi! :waving_hand: I would like to present LiveSelect, a little library that I wrote to easily add a dynamic selection input to your LV f...
198 10858 107
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement