Skip to content

Instantly share code, notes, and snippets.

Steven Wüthrich bacbos

Block or report user

Report or block bacbos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bacbos
bacbos / gist:8872719
Created Feb 7, 2014
Transforming git repository into bare repository
View gist:8872719
mv .git .. && rm -fr *
mv ../.git .
mv .git/* .
rmdir .git
git config --bool core.bare true
cd ..; mv reponame reponame.git
@bacbos
bacbos / gist:8872742
Created Feb 7, 2014
Setting proper permissions for apache on mac osx
View gist:8872742
sudo chmod -R +a '_www allow read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' directoryname
View mongo_dropAllDbs.md

Script to drop all databases on a mongodb instance

var mongo = db.getMongo(); mongo.getDBNames().forEach(function (dbname) { var db = mongo.getDB(dbname); db.dropDatabase(); });

@bacbos
bacbos / _worldcup2014.md
Last active Jan 2, 2016
FIFA Worldcup 2014 Brazil mySQL and JSON dumps, includes data for all participating teams, venues and matches
View _worldcup2014.md

FIFA Worldcup 2014 Brazil mySQL and JSON dumps, includes data for all participating teams, venues and matches.

Note that match contains a parameter stage:

0 => Group games

8 => Round of 16

4 => Quarter-Finals

View gist:729045286c828312fa8a
gource -f -960x540 --disable-progress --seconds-per-day 0.5 --stop-on-idle --auto-skip-seconds 0.1 --title project --file-idle-time 0 --hide filenames,progress,mouse --output-ppm-stream - | ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
You can’t perform that action at this time.