Skip to content

Instantly share code, notes, and snippets.

View samlehman's full-sized avatar
👽

Sam Lehman samlehman

👽
View GitHub Profile
041d705c7bd6e477890ca8057a29e71525fa4ab58bc7e77451093cb154fbc2ece1a7404fe5095444723bafdcd933f2faf00a23ffbda5eb300481ad0d8e24c428c9
def etrade(num_of_shares,purchase_price)
(2*6.95 + (num_of_shares * purchase_price))/num_of_shares
end
@samlehman
samlehman / cask_upgrade.sh
Last active June 17, 2016 19:54
Script upgrading outdated brew casks
#!/usr/bin/env bash
unset SSL_CERT_FILE
(set -x; brew update;)
(set -x; brew cask update;)
(set -x; brew cleanup;)
(set -x; brew cask cleanup;)
red=`tput setaf 1`
Verifying that +samuel is my openname (Bitcoin username). https://onename.com/samuel
### Keybase proof
I hereby claim:
* I am samlehman on github.
* I am muel (https://keybase.io/muel) on keybase.
* I have a public key whose fingerprint is 42FA 498C 4DC1 B227 80A1 D3B1 C41E FC86 4169 82B5
To claim this, I am signing this object: