Skip to content

Instantly share code, notes, and snippets.

View jesusgollonet's full-sized avatar
🎧
Hacking on stuff

Jesús Gollonet jesusgollonet

🎧
Hacking on stuff
View GitHub Profile
@jesusgollonet
jesusgollonet / gist:673912
Created November 12, 2010 09:37
xcode .gitignore
# xcode noise
*.mode1v3
*.pbxuser
*.perspective
*.perspectivev3
*.pyc
*~.nib/
build/*
@jesusgollonet
jesusgollonet / gist:673913
Created November 12, 2010 09:38
xcode .gitattributes
*.pbxproj -crlf -diff -merge
*.xcodeproj -diff
*.xcodeproj/* -diff
*.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/UserInterfaceState.xcuserstate -diff
xcuserdata -diff
@jesusgollonet
jesusgollonet / gist:712293
Created November 23, 2010 18:57
sox bits
# batch convert a directory of wav files to raw, downsampling to 22050 Hz
# the names will be .wav.raw
for i in `ls *.wav`; do echo -e "$i"; sox $i -r 22050 $i.raw; echo -e "$i.raw"; done
# downbitting
sox -b 24 a2.wav -r 22050 -b 16 a2.raw
@jesusgollonet
jesusgollonet / gist:970712
Created May 13, 2011 15:12
xcode 4 .gitignore
# xcode noise
*.mode1v3
*.pbxuser
*.perspective
*.perspectivev3
*.pyc
*~.nib/
build/*
xcuserdata
@jesusgollonet
jesusgollonet / gist:2067556
Created March 18, 2012 01:31
ofxOpenCv project.xconfig
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_PATH)/addons/ofxOpenCv/libs/opencv/lib/osx/opencv.a
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OF_PATH)/addons/ofxOpenCv/src $(OF_PATH)/addons/ofxOpenCv/libs/opencv/include $(OF_PATH)/addons/ofxOpenCv/libs/opencv/include/opencv
@jesusgollonet
jesusgollonet / gist:4628507
Created January 24, 2013 22:10
sublime preferences
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"font_size": 12.0,
"ignored_packages":
[
"Vintage"
],
"folder_exclude_patterns": [".sass-cache"],
"file_exclude_patterns": ["*.woff", "*.ttf", "*.eot",".DS_Store"]
@jesusgollonet
jesusgollonet / gist:5451477
Created April 24, 2013 11:31
sox: convert a directory of aiff files to wav
for i in `ls *.aiff`; do echo -e "$i"; sox $i $i.wav; echo -e "$i.wav"; done;
@jesusgollonet
jesusgollonet / handlebars-compile-dir.rb
Last active December 17, 2015 17:09
convert all files in current directory to handlebars templates
# i know, could do that in bash
Dir.glob("#{Dir.pwd}/*").each do |f|
system("handlebars #{f} -f #{Dir.pwd}/#{File.basename(f, ".*")}.js ")
end
@jesusgollonet
jesusgollonet / svn_add_untracked.sh
Last active August 29, 2015 13:56
get untracked subversion files as a list
# given a list of untracked svn files like
# ? trunk/content/build/backend/bin
# ? trunk/content/build/backend/ban
# ? trunk/content/build/backend/bun
# this will create a list out of them, then svn add them
# svn add trunk/content/build/backend/bin trunk/content/build/backend/ban trunk/content/build/backend/bun
svn_add_untracked(){
svn status | grep '^?.*' | sed 's/? //' | xargs svn add
@jesusgollonet
jesusgollonet / kill_yo.sh
Created August 11, 2014 12:02
kill the yeoman server
kill_yo () {
ps | grep 'grunt serve' | grep -v 'grep' | sed 's/^ *//' | cut -d ' ' -f1 | xargs kill -15
}