Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ

Joseph Chiocchi yyolk

๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ
View GitHub Profile
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng
bin certs deployment-root lib state vendor

Keybase proof

I hereby claim:

  • I am yyolk on github.
  • I am yolk (https://keybase.io/yolk) on keybase.
  • I have a public key whose fingerprint is 0430 334D ED0A 8CE2 DAA4 67D0 E014 3C92 36EB C47E

To claim this, I am signing this object:

@yyolk
yyolk / yolkalert.coffee
Created August 17, 2014 00:29
A console.log() extension that I find convenient
root = exports ? this
yolkalert = (args...) ->
for a in args
console.log "[#{args.indexOf a}]: is #{typeof(a)}:",a
return false
root.yolkalert ?= yolkalert
#alias
root.ya ?= root.yolkalert
root.yay ?= root.yolkalert
@yyolk
yyolk / router-init.sh
Created March 9, 2014 18:37
tomato router init scripts
echo "LABEL=OPTWARE /opt ext3 defaults 1 1" >> /etc/fstab
echo "LABEL=SWAP swap swap defaults 0 0" >> /etc/fstab
@yyolk
yyolk / gist:7866266
Created December 9, 2013 01:43 — forked from jacobhak/gist:4996785
pushover from rtorrent
require "net/https"
url = URI.parse("https://api.pushover.net/1/messages")
req = Net::HTTP::Post.new(url.path)
req.set_form_data({
:token => "application_api_key", #replace with your api key
:user => "the_user_key", #replace with your user key
:message => "Torrent finished: "+ARGV[0],
})
res = Net::HTTP.new(url.host, url.port)
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="wireless.artic.edu"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=TTLS
@yyolk
yyolk / slug.py
Created November 25, 2013 01:32
usage: ./slug.py "My unformatted STriNG" outputs "my-unformatted-string"
#!/usr/bin/env python
from slugify import slugify
from sys import argv
print slugify(" ".join(argv[1:]))
@yyolk
yyolk / AHIC-stackTrack.py
Last active December 28, 2015 19:29
stack track
class stack_track:
def __init__(self):
self.previous = False
self.pprevious = False
self.ptype = None
self.pptype = None
self.previous_height = 0
self.pprevious_height = 0
self.scale = 0
@yyolk
yyolk / current.markdown
Last active December 26, 2015 17:09
some commands for watching the progress of a reshape / rebuild / scrub etc through `cat /proc/mdstat`

  • 0: watch -t -n60 -d1 "cat /proc/mdstat | egrep -o '[[][\=\.>]*[]]' | tr '>' '|' |tr '.' '-' | tr '[]' '|' |figlet -ctk"
  • 1: watch -d -n60 -t 'cat /proc/mdstat|egrep -o '[0-9\.]+%' |figlet -ctk'
  • 2: watch -t "cat /proc/mdstat | egrep -o '\<[[:digit:]]+K/sec\>' | figlet -ctk"
  • 3: watch -t -n60 -d1 'cat /proc/mdstat'
  • 4: clockywock
  • 5: (bash|htop) #this is just my work area