Skip to content

Instantly share code, notes, and snippets.

View melissaboiko's full-sized avatar
🐈

Melissa Boiko melissaboiko

🐈
View GitHub Profile
#!/usr/bin/env python
# from:
# http://i.imgur.com/7atJf.png
# http://www.reddit.com/r/offbeat/comments/dqtxn/a_friend_of_mine_postulates_that_if_you_stick_two/
#
# available at http://namakajiri.net/misc/2awesome.py
import random
awesome = [
'rocket',
#!/bin/bash
# a telnet-like command to debug text protocols over SSL (https, smtps...).
# usage:
# telnets example.com https
# telnets example.com:https
# telnets https://example.com
if echo "$1" | grep -q "^[a-z]*://"; then
@melissaboiko
melissaboiko / color_ip.sh
Last active August 29, 2015 14:05
colorize output of Linux ip(8). suitable for replacement via alias (hopefully).
#!/bin/bash
# colorize output of Linux ip(8). suitable to replacement via alias (hopefully).
# expects GNU sed.
#
# expanded from:
# http://unix.stackexchange.com/questions/148/colorizing-your-terminal-and-shell-environment
IP_CMD=/bin/ip
NORMAL=`echo -e '\033[0m'`