Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am smaftoul on github.
* I am smaftoul (https://keybase.io/smaftoul) on keybase.
* I have a public key ASBdw8Hy7ZUlnrn0Ef2FEspguvFxRl2gfamD6YQ3QcRADwo
To claim this, I am signing this object:
@smaftoul
smaftoul / boostfb.rb
Last active December 26, 2015 08:59 — forked from danslo/boostfb.rb
require 'formula'
class UniversalPython < Requirement
satisfy(:build_env => false) { archs_for_command("python").universal? }
def message; <<-EOS.undent
A universal build was requested, but Python is not a universal build
Boost compiles against the Python it finds in the path; if this Python
is not a universal build then linking will likely fail.
@smaftoul
smaftoul / changes.sh
Created December 7, 2011 22:35 — forked from octplane/changes.sh
Quickly upload changes to a chef server (0.8)
#!/bin/sh
diff -x .gitignore -x .DS_Store -x metadata.json -x "README" -qr cookbooks/ /srv/chef/cookbooks/ | grep -v "Only in
/srv/chef/cookbooks/" | sed -e "s/.*cookbooks\/[ :]*//;s/\/.*//;s/:.*//" | sort | uniq | xargs knife cookbook upload
for a in `diff -x .gitignore -x metadata.json -x "README" -qr cookbooks/ /srv/chef/cookbooks/ | grep "Only in /srv/
chef/cookbooks/" | sed -e "s/.*cookbooks\/[ :]*//;s/\/.*//;s/:.*//" | sort | uniq`; do
echo "y" | knife cookbook delete $a
done