Skip to content

Instantly share code, notes, and snippets.

View bwbohl's full-sized avatar

Benjamin W. Bohl bwbohl

View GitHub Profile
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@bcremer
bcremer / build.xml
Created July 30, 2013 09:23
Apache ANT If/Else-Condition without ANT-Contrib
<?xml version="1.0" encoding="utf-8"?>
<project name="Ant Condition Example">
<target name="myConditionalTask" depends="myConditionalTask-check, myConditionalTask-fail" if="myConditionalTask-check-property">
<echo message="EXECUTE myConditionalTask" />
</target>
<target name="myConditionalTask-fail" unless="myConditionalTask-check-property">
<echo message="SKIPPED myConditionalTask" />
</target>
@wolfgangmm
wolfgangmm / gist:5880377
Last active July 16, 2020 12:59
eXist-db: reinstall dashboard and shared-resources if broken. Run the following query through eXide - or if this fails: the Java admin client.
repo:remove("http://exist-db.org/apps/shared"),
repo:remove("http://exist-db.org/apps/dashboard"),
repo:install-and-deploy("http://exist-db.org/apps/shared", "http://exist-db.org/exist/apps/public-repo/find"),
repo:install-and-deploy("http://exist-db.org/apps/dashboard", "http://exist-db.org/exist/apps/public-repo/find")
@lukearmstrong
lukearmstrong / build.xml
Created November 19, 2012 11:07
Ant build script for SASS
<?xml version="1.0" ?>
<project default="default" basedir=".">
<target name="default" depends="load.properties, sass" />
<target name="load.properties">
<echo>-- Initialize Variables</echo>
<!-- Hopefully the line below is the only one you need to change -->
<property name="template.path" value="public/assets/templates/PUT-YOUR-TEMPLATE-FOLDER-NAME-HERE" />
@mcls
mcls / osx_setup.md
Last active October 9, 2023 08:23 — forked from jpantuso/osx_lion_rail_setup.md
Setup mac for ruby dev
@glennblock
glennblock / fork forced sync
Created March 4, 2012 19:27
Force your forked repo to be the same as upstream.
git fetch upstream
git reset --hard upstream/master
@iiska
iiska / Nettiradiot.m3u
Created June 6, 2009 11:02
Lähes kaikki Suomalaisten radioasemien nettiradiot.
#EXTM3U
#EXTINF:0,Bassoradio
http://83.145.201.209:8000/
#EXTINF:0,Classic Radio
http://217.30.180.242:8000/clsr.ogg
#EXTINF:0,Groove FM
http://217.30.180.242:8000/gvfm.ogg