Get the list of devices:
sudo diskutil list
Find which is the SD card, then run:
# 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 ../..' |
#!/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' |
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 |
#!/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 |
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCrDMKaGllZMfwFKpvRVD3HWuqa0eB0vYZdCW1pSptIe7aiOBMuON81t6sy5jbZK85XWxGf+qpZTMz9rbrz3OsCRFCkRzx+h8mMvG7YjJd9pPhaLbGC8NxOMCQ83mMKk4wv0alWqrV7DLGALDMGn15OtJPkIWQmhqVs0yA/eG4BRt1aZcHHfOOd7WCG4AKDsTjDG9KjtTHiQeW18VQH5STQ7erguGUfz//RWvm3r/nAIKMwJQsQxdxzpMJ3GLlXOHvOJdzWEsnCiexMM+Ss1eKjxVyqLD5Lz02X6zsxm9KMiM3Ik/XKiCcXo7G5k0KZ0pf/y2soGlmr0kcfg7FLtptWtzvHLfaRCgvz7xaVgCMZN6lFYZOXDS4Ms/lB6DOYcy0K8E9hVCYOTXv2QMP2rOynNDrzi3xBDjp7QbzFY35rF3r/MsFAjFgQ5g2H9jsipa6h7Df4imSU26bjMWbo46jtGXxghLJQZf9kQBJCPTEHOnUJlCDSKR9Aav9GBkzjgOCImcCdNAukKeDf65uiTz40s/DMgELn6m5fVexMC9E0SFS7e60V1k7+hzHXcFhx+ORrfMkea1lU/aPegnWa81inJ4oI3iWpYzjG7odQ5df56nbnxB4ARMpCgMX9bG4CMrEk/ywFF5wFNCMKOfldfL3rL2hXD3aTfD+WObgnG0yQfw== cmoore@cmoore02-mac |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSFRS/H7tQ6nrU6sLwcmEwi2/WRXq9yku5jCoXPP42YnesPuOi+SFavADCGXrb5FEgLQTO5RFdOPX3EZGkhcw23pVhbnXMV+mw6Waa32PdHSglMZQO3H9EQgHW66As2FDzGckjAnSr8Ua3SXMvMLPEuGKf6NbPBZcWxlk0DvvHlGMOJ4w5GWlxXNdeOqDcc++hZ3yV9Il+xyQZgNySbaazqAs0obnD8Nxbnh0D8K/sx4OwfjTSShoKj7pSdJtc0EtYgUEktqQn1QNZKqXAehdDWrxFdV3c3LzASWXNzVmf+kdxkcbkERTHgHvB6hAoMWIMlcDOF7e/H7QutbJUyQEj [email protected] |
#!/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 |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDO7e1kS/mEtcTdGKPE4dMm+WltMgJDMDCDjg3oBOtZmeWwrRmUyxzE22pJXjBOCoPcrzAN43hZvjCGk6qMkA+MEsjz2gDfA9hku2le9QA+0HKPVjc6zk5VmTmivEw00m5fnWl3yrCNNMHs0TmoNHwUC/RTuE9OAubOzvkF2SFABEfg8cMIY8oj38tqhfoV9XGPI7iQG/YUwPWpv55YKqJ22QUqvNC0OzG1Bui9doF23TwPFp8qCSyD94jAuK6IuMn/9e+8DkSYlN16QNGkcKqGBkdUrQdiVxzFv701EHEJnDzen1pQWEjBIqVW3qG5Tn8szee4yGugEO6YnkcfFxBG5VOnIu1icTWUT9aP7mdV8xm8BkhDpO5dJKPlgSRN8ZSSM8E9aM32hJDSBS5sfdszmKPa9hZBkEp6Qv2t77FVbWjj8LLffk0wB3KbbtSu+opyb8pIckI015plWvKYZzafJ/8KC0hxieV6jUU2mWIZl7IR7bRlBpbEMEXz4W3jCNrWj/B7FD4iIkctFT6gVYKRtWevVQ6QNGLxJBpcUTFPtNv5PwDflmHKO0QuI6XLv7CcHw1g30gRcJg+JA8qSO0jPFFDlRY5l5wOd/kfIzGNK25lfWsKkbelHhFsCsMS6URcjF8mLB9iB/wqADeRQl57Ej9pddNKoMiwosLIfvbMkw== [email protected] |