Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am shinohai on github.
  • I am btcinfo (https://keybase.io/btcinfo) on keybase.
  • I have a public key whose fingerprint is 260F A57B CE67 7A5C 04BF 60BA 4A75 883C C1B1 D34C

To claim this, I am signing this object:

@shinohai
shinohai / bitmon.py
Created January 15, 2016 18:57 — forked from bcoles/bitmon.py
monitors irc.lfnet.org:6667#bitcoin and extracts user details
################################################################################
# bitmon
# Description: monitors irc.lfnet.org:6667#bitcoin and extracts user details
# Author: Brendan Coles <bcoles@gmail.com>
# Version: 0.1-20110520
################################################################################
import socket, string
botname = 'u1rt6zQzvGpS1Zz' # change this
channel = '#bitcoin'
@shinohai
shinohai / shed
Last active August 29, 2015 14:21 — forked from sunaku/shed
#!/bin/sh -e
#
# POSIX shell script equivalent of:
# <https://github.com/mplewis/shed>
#
# Usage: shed [SHELL_ARGUMENTS...]
#
# Executes stdin after you edit it.
# If $EDITOR is unset, uses $PAGER.
# If $PAGER is unset, uses cat(1).
@shinohai
shinohai / GMail.pl
Created March 31, 2015 00:51
Check your GMail from CLI
#!/usr/bin/perl
use Switch;
use Text::Wrap;
my $what=$ARGV[0];
$user="<username>"; #username for gmail account
$pass="<pass>"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail
@shinohai
shinohai / Nyan.sh
Created March 27, 2015 19:34
A Bash Nyan Cat For Fun
#!/bin/bash
# config
IMGS=(
"
+ o + o \n\
+ o + +\n\
o + \n\
o + + + \n\
+ o o + o\n\
@shinohai
shinohai / Super Mario GRUB
Last active August 29, 2015 14:13
Simple Super Mario startup tune for GRUB
echo "GRUB_INIT_TUNE=\"1000 334 1 334 1 0 1 334 1 0 1 261 1 334 1 0 1 392 2 0 4 196 2\"" | sudo tee -a /etc/default/grub > /dev/null && sudo update-grub
@shinohai
shinohai / rss feed
Created January 21, 2015 03:13
A bash function to scroll an rss feed across the top of the terminal. Replace url with your feed of choice.
while true;do n="$(curl -s https://www.reddit.com/r/cryptocurrency.rss|sed 's/</\n/g'|grep "title>"|sed -e '/^\// d' -e 's/title>/---------- /g' -e '1,3d'|tr '\n' ' ')";for i in $(eval echo {0..${#n}});do echo -ne "\e[s\e[0;0H${n:$i:$COLUMNS}\e[u";sleep .15;done;done &