Skip to content

Instantly share code, notes, and snippets.

@kzisme
kzisme / gist:f997429a259770a2dd6f9a5da23385de
Created April 18, 2018 06:02
Run Speedtest via CLI (Edge Router)
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
// Defining a struct named WhoIsCommand
// Has 3 fields
// 1. Base Command Type
// 2. target of type Name
// 3. masks of type array name
type WhoisCommand struct {
BaseCommand
target Name
if [ "$HOSTNAME" != Godric ]
1 then
2 # Settings for Gala
3 export PS1="[\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput
4 2 sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;57m\]\h\[$(tput sgr0)\]\[\033[38;5;46m\]\w\[$(tput sgr0)\]\[\033[38;5;11m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]"

Keybase proof

I hereby claim:

  • I am kzisme on github.
  • I am kzisme (https://keybase.io/kzisme) on keybase.
  • I have a public key whose fingerprint is A7A2 984E 0F21 A6BA 0AF8 2367 C347 D985 150D 6557

To claim this, I am signing this object:

@kzisme
kzisme / || Vim Tricks ||
Last active January 29, 2016 06:40
Little vim tricks I want to remember.
To indent multiple lines at once '5 >>' will indent the next 5 lines
To swap a line with the one above it 'ddkP' will do it.
To yank a whole file ':%y+'
To wrap a line with a tag using surround-vim "yss<h1>"
To wrap multiple lines hilight the lines with Shift + V or motions then "S<p>"
@kzisme
kzisme / gist:d235dd89aaa5305a6346
Created December 14, 2015 03:23
Random js fun stuff
#"Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”."
a=b=!![]+![],a--,c=b+b;while(++a)e=!(a%(c+c+b)),alert(!(a%(c+b))?e?"FizzBuzz":"Fizz":e?"Buzz":a);
#Or.....
$=~[];$={___:++$,$$$$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$$:({}+"")[$],$$_$:($[$]+"")[$],_$$:++$,$$$_:(!""+"")[$],$__:++$,$_$:++$,$$__:({}+"")[$],$$_:++$,$$$:++$,$___:++$,$__$:++$};$.$_=($.$_=$+"")[$.$_$]+($._$=$.$_[$.__$])+($.$$=($.$+"")[$.__$])+((!$)+"")[$._$$]+($.__=$.$_[$.$$_])+($.$=(!""+"")[$.__$])+($._=(!""+"")[$._$_])+$.$_[$.$_$]+$.__+$._$+$.$;$.$$=$.$+(!""+"")[$._$$]+$.__+$._+$.$+$.$$;$.$=($.___)[$.$_][$.$_];$.$($.$($.$$+"\""+$.$$$$+$._$+"\\"+$.__$+$.$$_+$._$_+"\\"+$.$__+$.___+"(\\"+$.__$+$.$$_+$.$$_+$.$_$_+"\\"+$.__$+$.$$_+$._$_+"\\"+$.$__+$.___+"\\"+$.__$+$.$_$+$.__$+"="+$.__$+";\\"+$.$__+$.___+"\\"+$.__$+$.$_$+$.__$+"\\"+$.$__+$.___+"<=\\"+$.$__+
@kzisme
kzisme / PlacesToVisit
Last active March 22, 2022 07:22
Places to visit
1. Bryce Canyon National Park - Thors Hammer
2. Skagit Valley Tulip Festival
3. Big Sur/Bixby Canyon Bridge
4. George Rickey - Triple Execentric gyratory (Cleveland)
5. Spring Grove Cemetery - Cincinatti
6. Colonial creek campground (Diablo Lake) - Seattle
7. Crater Lake - Oregon
8. Chesil Beach
9. Lakeview Cemetery - Hacerot Angel
10. Devils Den - Williston Florida