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
  • 17:36 (UTC -05:00)
View GitHub Profile
@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 ../..'
@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 / 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 / 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 / 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 / make_targets.sh
Created August 23, 2016 01:39
Lists all make targets
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}'
@dotCipher
dotCipher / cmoore@cmoore02-mac
Last active July 21, 2018 04:40
Work Laptop Public Key - https://git.io/fNW82
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCrDMKaGllZMfwFKpvRVD3HWuqa0eB0vYZdCW1pSptIe7aiOBMuON81t6sy5jbZK85XWxGf+qpZTMz9rbrz3OsCRFCkRzx+h8mMvG7YjJd9pPhaLbGC8NxOMCQ83mMKk4wv0alWqrV7DLGALDMGn15OtJPkIWQmhqVs0yA/eG4BRt1aZcHHfOOd7WCG4AKDsTjDG9KjtTHiQeW18VQH5STQ7erguGUfz//RWvm3r/nAIKMwJQsQxdxzpMJ3GLlXOHvOJdzWEsnCiexMM+Ss1eKjxVyqLD5Lz02X6zsxm9KMiM3Ik/XKiCcXo7G5k0KZ0pf/y2soGlmr0kcfg7FLtptWtzvHLfaRCgvz7xaVgCMZN6lFYZOXDS4Ms/lB6DOYcy0K8E9hVCYOTXv2QMP2rOynNDrzi3xBDjp7QbzFY35rF3r/MsFAjFgQ5g2H9jsipa6h7Df4imSU26bjMWbo46jtGXxghLJQZf9kQBJCPTEHOnUJlCDSKR9Aav9GBkzjgOCImcCdNAukKeDf65uiTz40s/DMgELn6m5fVexMC9E0SFS7e60V1k7+hzHXcFhx+ORrfMkea1lU/aPegnWa81inJ4oI3iWpYzjG7odQ5df56nbnxB4ARMpCgMX9bG4CMrEk/ywFF5wFNCMKOfldfL3rL2hXD3aTfD+WObgnG0yQfw== cmoore@cmoore02-mac
@dotCipher
dotCipher / [email protected]
Last active January 11, 2020 03:41
Personal Macbook Public Key - http://bit.ly/ssh-personal-mac
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSFRS/H7tQ6nrU6sLwcmEwi2/WRXq9yku5jCoXPP42YnesPuOi+SFavADCGXrb5FEgLQTO5RFdOPX3EZGkhcw23pVhbnXMV+mw6Waa32PdHSglMZQO3H9EQgHW66As2FDzGckjAnSr8Ua3SXMvMLPEuGKf6NbPBZcWxlk0DvvHlGMOJ4w5GWlxXNdeOqDcc++hZ3yV9Il+xyQZgNySbaazqAs0obnD8Nxbnh0D8K/sx4OwfjTSShoKj7pSdJtc0EtYgUEktqQn1QNZKqXAehdDWrxFdV3c3LzASWXNzVmf+kdxkcbkERTHgHvB6hAoMWIMlcDOF7e/H7QutbJUyQEj [email protected]
@dotCipher
dotCipher / idea.sh
Created July 26, 2018 22:00
Intellij idea launcher script, that can handle multiple inputs
#!/bin/sh
# Determine where intellij is installed
DEFAULT_IDEA_TOOLBOX_LOCATION=$(ls -1d ~/Library/Application\ Support/JetBrains/Toolbox/apps/*/*/*/IntelliJ\ IDEA.app 2>&1 | tail -n1)
DEFAULT_IDEA_LOCATION=$(ls -1d /Applications/IntelliJ\ IDEA.app 2>&1 | tail -n1)
IDEA=""
if [[ $DEFAULT_IDEA_TOOLBOX_LOCATION = *"No such file or directory"* ]]; then
IDEA="$DEFAULT_IDEA_LOCATION"
elif [[ $DEFAULT_IDEA_LOCAITON = *"No such file or directory"* ]]; then
@dotCipher
dotCipher / Work Public Key
Last active March 10, 2019 16:38
Work Laptop Public Key - https://git.io/fh12g
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDO7e1kS/mEtcTdGKPE4dMm+WltMgJDMDCDjg3oBOtZmeWwrRmUyxzE22pJXjBOCoPcrzAN43hZvjCGk6qMkA+MEsjz2gDfA9hku2le9QA+0HKPVjc6zk5VmTmivEw00m5fnWl3yrCNNMHs0TmoNHwUC/RTuE9OAubOzvkF2SFABEfg8cMIY8oj38tqhfoV9XGPI7iQG/YUwPWpv55YKqJ22QUqvNC0OzG1Bui9doF23TwPFp8qCSyD94jAuK6IuMn/9e+8DkSYlN16QNGkcKqGBkdUrQdiVxzFv701EHEJnDzen1pQWEjBIqVW3qG5Tn8szee4yGugEO6YnkcfFxBG5VOnIu1icTWUT9aP7mdV8xm8BkhDpO5dJKPlgSRN8ZSSM8E9aM32hJDSBS5sfdszmKPa9hZBkEp6Qv2t77FVbWjj8LLffk0wB3KbbtSu+opyb8pIckI015plWvKYZzafJ/8KC0hxieV6jUU2mWIZl7IR7bRlBpbEMEXz4W3jCNrWj/B7FD4iIkctFT6gVYKRtWevVQ6QNGLxJBpcUTFPtNv5PwDflmHKO0QuI6XLv7CcHw1g30gRcJg+JA8qSO0jPFFDlRY5l5wOd/kfIzGNK25lfWsKkbelHhFsCsMS6URcjF8mLB9iB/wqADeRQl57Ej9pddNKoMiwosLIfvbMkw== [email protected]