Skip to content

Instantly share code, notes, and snippets.

View anthonywu's full-sized avatar

Anthony Wu anthonywu

  • Silicon Valley / Bay Area
View GitHub Profile
@anthonywu
anthonywu / dot_emacs.el
Created March 29, 2012 05:42
my dot emacs
(add-to-list 'load-path "~/.emacs-lisp")
;; Auto-Complete
(require 'anything)
;; Python nice-to-haves
(require 'lambda-mode)
(add-hook 'python-mode-hook #'lambda-mode 1)
(setq lambda-symbol (string (make-char 'greek-iso8859-7 107)))
@anthonywu
anthonywu / install_ubuntu_chrome.sh
Created May 8, 2013 18:02
Install Google Chrome on Ubuntu
# run with sudo user privileges
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo chmod 644 /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install google-chrome-stable
@anthonywu
anthonywu / fb-git-review-install.sh
Created May 8, 2013 17:54
Install Facebook git-review on OS X
# checkout git-review from GitHub and install
# note: this is not the same git-review available via pip installer
git clone git@github.com:facebook/git-review.git
cd git-review/
sudo python setup.py install
# assuming you have Homebrew installed
brew install tkdiff
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>
<key>GeneratePStates</key>
<string>Yes</string>
@anthonywu
anthonywu / lib_search_guide.md
Last active January 3, 2016 22:19
programming library search

Before writing any in-house code, it is wise to check if there already exists a published library for the task at hand. If you're interacting with a service, chances are the developers of the service had taken time to develop official libraries for the more popular programming languages. If it's a task that you suspect is a solved problem, chances are someone has taken the initiative to open source their solution.

Here are the resources to discover libraries and tools for your programming task.

Python

@anthonywu
anthonywu / 2016-12-08 Unconcious Bias for Founders workshop notes.md
Created December 9, 2016 18:33
2016-12-08 Unconcious Bias for Founders workshop notes

Event: Unconscious Bias for Founders: Practical Tips on Hiring & Leading An Inclusive Team

This interactive workshop will explore the research behind unconscious bias and evidence-based strategies founders can take to make better, more objective decisions in both the recruiting & hiring process and in ongoing team dynamics and culture. Participants will leave with specific plans on how to apply these strategies within their own organization.

>Joelle Emerson Joelle is founder & CEO of ParadigmIQ – a boutique consultancy that helps companies like Pinterest, Airbnb, Slack, Asana and others build high functioning diverse and inclusive teams. She has written extensively about diversity, inclusion, and unconscious bias, and her work has been featured in The Wall Street Journal, The New Yorker, Fortune and more. Prior to Paradigm Joelle was a women’s rights attorney and she holds a degree from Stanford Law. Joelle’s work comes very highly recommended from numer

@anthonywu
anthonywu / manage tunnels
Created December 15, 2014 20:19
ssh tunnel management
# check for running ssh processes that look like tunneling processes
ps -eo command | grep "ssh.*\-[L] .*/.*/.*" || echo "No Existing Tunnels"
# This script closes all ssh processes that look like local tunnels
for pid in $(ps -ef | grep "[s]sh.*-L" | awk '{ print $2 }'); do
kill -TERM $pid;
done
@anthonywu
anthonywu / icloud_password_restore.sh
Created November 1, 2016 18:25
icloud_password_restore.sh
# if the iCloud password option is disabled, you'll not see your iCloud login with this result
dscl . read /Users/your_username | grep AuthenticationAuthority
# use this command to add your icloud password as an auth authority again
sudo dscl . append /Users/your_username AuthenticationAuthority ";AppleID;icloud_account@example.com"
# confirm the previous command
dscl . read /Users/your_username | grep AuthenticationAuthority
Verifying my Blockstack ID is secured with the address 1Bv8Wq5jPv8RtWEGH7wEwGZ6fucsCzyBvA https://explorer.blockstack.org/address/1Bv8Wq5jPv8RtWEGH7wEwGZ6fucsCzyBvA