Skip to content

Instantly share code, notes, and snippets.

View dotCipher's full-sized avatar
🏗️
Buildin' stuff

Cody Moore dotCipher

🏗️
Buildin' stuff
  • New York, NY, USA
  • 20:07 (UTC -04:00)
View GitHub Profile
@dotCipher
dotCipher / proxy.py
Created August 11, 2016 23:37
A python proxy in less than 100 lines of code
#!/usr/bin/python
# Source: http://voorloopnul.com/blog/a-python-proxy-in-less-than-100-lines-of-code/
# This is a simple port-forward / proxy, written using only the default python
# library. If you want to make a suggestion or fix something you can contact-me
# at voorloop_at_gmail.com
# Distributed over IDC(I Don't Care) license
import socket
import select
@dotCipher
dotCipher / Raspberry_Pi_Notes.md
Created July 7, 2016 05:25
Notes for Raspberry Pi hacking

Raspberry Pi Notes

Reformatting SD Card

Get the list of devices:

sudo diskutil list

Find which is the SD card, then run:

@dotCipher
dotCipher / dot_Cipher-oh_my_zsh-installer
Created January 31, 2015 07:28
Auto installer for fork of oh-my-zsh
set -e
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
if [ -d "$ZSH" ]; then
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install"
exit
fi
@dotCipher
dotCipher / Bash Color Code
Last active August 29, 2015 14:12
A quick snippet for displaying text in a certain color in bash
#!/bin/bash
BLACK='\033[0;30m'
DARK_GRAY='\033[1;30m'
BLUE='\033[0;34m'
LIGHT_BLUE='\033[1;34m'
GREEN='\033[0;32m'
LIGHT_GREEN='\033[1;32m'
CYAN='\033[0;36m'
LIGHT_CYAN='\033[1;36m'
@dotCipher
dotCipher / aliases.zsh
Last active March 30, 2024 08:23
oh-my-zsh mac aliases
# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'
# Copy pwd to clipboard
alias cpwd='pwd | tr -d "\n" | pbcopy'
# Basic directory operations
alias ...='cd ../..'
alias ..2='cd ../..'