Skip to content

Instantly share code, notes, and snippets.

##
## Arch Linux repository mirrorlist
## Generated on 2015-10-15
##
## Worldwide
#Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
## Australia
#Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
@dyurk
dyurk / gist:f67a793a4c3e5652a89a
Created August 18, 2014 00:16
What's the problem here?
dyurk@ubuntu:~/testENV$ ll
total 20
drwxrwxr-x 5 dyurkiewicz dyurkiewicz 4096 Aug 17 17:12 ./
drwxr-xr-x 29 dyurkiewicz dyurkiewicz 4096 Aug 17 17:04 ../
-rw-rw-r-- 1 dyurkiewicz dyurkiewicz 0 Aug 17 17:04 34.txt
-rw-rw-r-- 1 dyurkiewicz dyurkiewicz 0 Aug 17 17:05 53.txt
drwxrwxr-x 2 dyurkiewicz dyurkiewicz 4096 Aug 17 17:11 dir1/
drwxrwxr-x 2 dyurkiewicz dyurkiewicz 4096 Aug 17 17:12 dir2/
drwxrwxr-x 2 dyurkiewicz dyurkiewicz 4096 Aug 17 17:12 dir3/
-rw-rw-r-- 1 dyurkiewicz dyurkiewicz 0 Aug 17 17:04 foo.txt
@dyurk
dyurk / gist:10080225
Created April 8, 2014 01:18
Check against TLS heartbeat read overrun (CVE-2014-0160)
echo; echo -e "quit\n" | openssl s_client -connect myhappyserver.com:443 -tlsextdebug 2>&1| grep 'TLS server extension "heartbeat" (id=15), len=1'
@dyurk
dyurk / gist:6767998
Created September 30, 2013 18:28
CLI white-noise generator
play -n synth 60:00 brownnoise -65 tremolo .20 vol -20db
@dyurk
dyurk / gist:6671252
Last active December 23, 2015 17:49
Updated prompt
SYM=`echo -e "\xE4\x98\xA3"`
PS1="\n\$(if [[ \$? == 0 ]]; then echo \"\[\033[0;32m\]\"; else echo \"\[\033[0;31m\]\"; fi)$SYM [ \u@\[\e[1;36m\]\H\[\e[m\]\033[0;32m\]\]] [ \w ] [ \T ]\n\[\033[0m\]$SYM "
@dyurk
dyurk / gist:6262676
Created August 18, 2013 16:53
chefkiller.sh
if ((`pgrep -l chef-client | wc -l` > 1)) ; then `killall chef-client && /etc/init.d/chef-client restart` > /dev/null ; fi;
@dyurk
dyurk / gist:6009840
Created July 16, 2013 15:37
Get Raw Data from graphite
Add `&rawData=true` to URL
@dyurk
dyurk / gist:4298097
Created December 15, 2012 18:51
Count Files
find -maxdepth 3 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" | wc -l; done