This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imgs=`find . -name \*.jpg | head -5` | |
img_args=$(for i in $imgs; do echo -n " -a $i "; done) | |
echo $'Hey Grandpa, \nI wrote a computer program to send you 5 pictures of Ari everyday until you\'re caught up. \nI think it\'s more fun to get 5 a day then to get them all at once.\nSorry you weren\'t on the list to begin with.' | \ | |
mutt -s "Daily Ari Photos" $img_args -- [email protected] [email protected] | |
for i in $imgs; do | |
mv $i sent | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :responsys do | |
desc 'download and import Responsys events from FTP' | |
task load: :environment do | |
Resque.enqueue(LoadEventsJob) | |
end | |
Our Fields, unique key | |
RIID, (CUSTOMER_ID_, EMAIL_) | |
RIID, (CUSTOMER_ID_, EMAIL_) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rule | |
def self.add_reaction(reaction) | |
@reactions << reaction | |
end | |
end | |
class DuplicateFound < Rule | |
def match(records) | |
#dup logic | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am joecannatti on github. | |
* I am joecannatti (https://keybase.io/joecannatti) on keybase. | |
* I have a public key whose fingerprint is 3F85 533B B2D7 166D C5FB A47F 0545 EF55 2A97 24C6 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in `heroku apps --org stitchfix-enterprise | tail -n +2`; do heroku ps:type -a $app | grep -v cost/mo | grep -v -- -----; done | awk '{print $3}' | xargs | sed 's/ /+/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in `heroku apps --org stitchfix-enterprise | tail -n +2`; do heroku ps:type -a $app | grep -v cost/mo | grep -v -- -----; done | awk '{print "1"}' | xargs | sed 's/ /+/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires that have installed hub, https://github.com/github/hub | |
git checkout master && git reset --hard origin/master && git pull origin master && git checkout -b gem-update-`date +%Y-%m` && gem install bundler && bundle update && rake && git add -A && git commit -m "Bundle update `date +%Y-%m`" && git push origin gem-update-`date +%Y-%m` && hub pull-request -m "Bundle update `date +%Y-%m`"; if [[ $? = 0 ]]; then echo "SUCCESS"; else echo "FAIL"; fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function heart_sutra { | |
text="Av a lo kit e sh var a Bod hi satt va, when deep ly prac tic ing praj ña par a mit a, clear ly saw | |
that all five agg re gates are emp ty and thus re lieved all suf fer ing. Shar i put ra, form | |
does not dif fer from empt i ness, empt i ness does not dif fer from form. Form it self is | |
empt i ness, empt i ness it self form. Sen sat ions, per cept ions, form at ions, and | |
con scious ness are al so like this. Shar i put ra, all dharm as are marked by empt i ness; | |
they neith er a rise nor cease, are neith er de fil ed nor pure, neith er in crease nor | |
de crease. There fore, giv en empt i ness, there is no form, no sen sat ion, no per cept ion, | |
no form at ion, no consciousness; no eyes, no ears, no nose, no tongue, no bo dy, no | |
mind; no sight, no sound, no smell, no taste, no touch, no ob ject of mind; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
CURRENT_SN=570 | |
for i in $(seq -f "%03g" 1 $CURRENT_SN); do | |
echo "episode $i" |