Skip to content

Instantly share code, notes, and snippets.

View plot.awk
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device.
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average
semeion / 50-battery.rules
Created May 17, 2019 — forked from gavinhungry/50-battery.rules
udev script for handling power management
View 50-battery.rules
SUBSYSTEM=="power_supply", ACTION=="change", RUN+="/etc/scripts/"
semeion / proc_net_tcp_decode
Created May 14, 2019 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
View proc_net_tcp_decode
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
semeion /
Created May 5, 2019 — forked from joemiller/
shell: quick linux scripts for showing network bandwidth or packets-per-second
if [ -z "$1" ]; then
echo usage: $0 network-interface
echo e.g. $0 eth0
echo shows packets-per-second
semeion /
Created Nov 1, 2015 — forked from james2doyle/
Send SMTP email using cURL
curl --connect-timeout 15 -v --insecure "smtp://" -u "username:password"
\ --mail-from "" --mail-rcpt ""
\ -T email-contents.txt --ssl
## uploading to google
## rev: 22 Aug 2012 16:07
det=`date +%F`
browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1"
accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE
You can’t perform that action at this time.