This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
egrep -B10 '\s*nijotz.*(lol|hah)' irc.freenode.#infoforcefeed.weechatlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[4800x0C:07:19nick@nijotz~/.weechat/logs]$ grep -B1 LOLBOW irc.freenode.#infoforcefeed.weechatlog | grep -Ev '(LOLBOW|--)' | awk '{print $3}' | sort | uniq -c | sort -nr | |
24 cblgh | |
17 nijotz | |
17 jnerula | |
14 Pilate | |
12 trinque | |
11 vhost- | |
11 uptime | |
11 ben_vulpes | |
9 lykkin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data | |
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) | |
def weight_variable(shape): | |
initial = tf.truncated_normal(shape, stddev=0.1) | |
return tf.Variable(initial) | |
def bias_variable(shape): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data | |
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) | |
# 784 pixels (28 x 28 pixel images), 10 possibile outputs | |
x = tf.placeholder(tf.float32, [None, 784]) # placeholder | |
W = tf.Variable(tf.zeros([784, 10])) # weights | |
b = tf.Variable(tf.zeros([10])) # biases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a ip_address | |
for i in {3..1}; do | |
# bash fails when using ${var: -n} to trim strings if the number is greater | |
# than the number of characters. So this uses ${#var} to test the length | |
# huehuehue | |
last_3=${store_id: ${#store_id}<3?0:-3} | |
if [ $last_3 -gt 255 ]; then | |
last_3=${last_3: -2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Cycle tabbing options | |
map <leader><tab> :call CycleTabs()<CR> | |
fun! CycleTabs() | |
if !&expandtab | |
echo "4 space tabs" | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=4 | |
set expandtab | |
elseif &expandtab && &shiftwidth == 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ awk '{print $1}' ~/.bash_history_all | sort | uniq -c | sort -nr | head -n20 | |
10663 git | |
3306 rake | |
1804 middleman | |
1668 vim | |
1664 cd | |
1441 ls | |
943 cat | |
672 ruby | |
594 grep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tail -n 20000 * | grep 'dx hugs' | sed -E 's/[[:space:]].*//' | sort | uniq -c | sed -E -e 's/^[[:space:]]*//' | gnuplot -e 'set terminal dumb 120 40; set grid; set datafile separator " "; set xdata time; set timefmt "%Y-%m-%d"; plot "< cat" using 2:1 with lines title ""' | |
6 ++--+---+----+---+---+---+---+*--+---+---+---+---+---+----+---+---+---+----+---+---+---+---+---+*---+---+---+--++ | |
+ + + * + + + + + * + + | |
| : : * : : : : : * : | | |
| : : ** : : : : : * : | | |
| : : ** : : : : : * : | | |
| : : ** : : : : : * : | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tail -n 20000 irc.freenode.#infoforcefeed.weechatlog | sed -E 's/[[:space:]].*//' | uniq -c | sed -E -e 's/^[[:space:]]*//' | gnuplot -e 'set terminal dumb 150 50; set grid; set datafile separator " "; set xdata time; set timefmt "%Y-%m-%d"; plot "< cat" using 2:1 with lines title ""' | |
1400 +++--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+++ | |
+ + + + + + + + + | |
| : : : : : : : | | |
| : : : : : : : | | |
| : : : : : : : |