Skip to content

Instantly share code, notes, and snippets.

View codeably's full-sized avatar

Michael M. codeably

View GitHub Profile

Keybase proof

I hereby claim:

  • I am codeably on github.
  • I am michaelm (https://keybase.io/michaelm) on keybase.
  • I have a public key whose fingerprint is 99B0 26A4 DB7A 9BA1 5891 B1F2 C255 080B 858D 82D3

To claim this, I am signing this object:

docker rmi $(docker images -q -f dangling=true)
#!/bin/bash
#shows traffic on the specified device
function human_readable {
VALUE=$1
BIGGIFIERS=( B K M G )
CURRENT_BIGGIFIER=0
while [ $VALUE -gt 10000 ] ;do
VALUE=$(($VALUE/1000))
@codeably
codeably / n.sh
Created November 8, 2018 10:49 — forked from dagelf/n.sh
Netspeed 2 - gets Linux network interface throughput speed from /proc/net/dev; busybox bash/awk/sed compatible, good for embedded OpenWRT or UBNT / Ubiquiti, etc routers
#!/bin/sh
# Copy the contents of this file to the clipboard, then get a terminal open on your device and enter:
# $ cat > n.sh
# [Ctrl+V] or Right Click, Paste. Then [Ctrl+D].
# chmod +x n.sh
# To run: ./n.sh eth0
SLP=1 # display / sleep interval
DEVICE=$1
IS_GOOD=0
for GOOD_DEVICE in `grep \: /proc/net/dev | awk -F: '{print $1}'`; do