Skip to content

Instantly share code, notes, and snippets.

@kzisme
kzisme / gist:f997429a259770a2dd6f9a5da23385de
Created Apr 18, 2018
Run Speedtest via CLI (Edge Router)
View gist:f997429a259770a2dd6f9a5da23385de
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
View gist:65dc266170d988df867d447614c33f63
// 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
View bash_profile test
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)\]"
View keybase.md

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 Jan 29, 2016
Little vim tricks I want to remember.
View || Vim Tricks ||
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>"
View gist:d235dd89aaa5305a6346
#"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 Mar 22, 2022
Places to visit
View PlacesToVisit
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