Skip to content

Instantly share code, notes, and snippets.

View zeitiger's full-sized avatar

David Steinkopff zeitiger

  • DB Systel
  • remote, Germany
View GitHub Profile
@schorfES
schorfES / JSPM with Travis CI Setup.md
Last active December 3, 2015 12:32 — forked from topheman/jspm.travis.setup.md
Travis setup of Github token for jspm
@addyosmani
addyosmani / package.json
Last active May 21, 2024 19:56
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@Thermionix
Thermionix / jira-comment-oauth.groovy
Last active November 24, 2016 09:59
Gitblit Post-Receive Hook: jira-comment
import com.gitblit.GitBlit
import com.gitblit.utils.JGitUtils
import org.eclipse.jgit.lib.Repository
import org.slf4j.Logger
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2' )
import groovyx.net.http.RESTClient
import groovyx.net.http.HttpResponseException
import groovyx.net.http.ContentType
@carymrobbins
carymrobbins / retry
Last active November 3, 2020 10:38
Retry a bash command until successful.
#!/bin/bash
if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ "$1" == "" ]; then
echo "Usage: $(basename $0) n command"
echo "Execute command n times or until it succeeds (exit code 0)."
exit $([ $1 ] || echo 1)
fi
control_c() {
echo "$(tput setaf 1)Killing process per user request.$(tput sgr0)"