This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
image: 'gitlab/gitlab-ce:8.17.3-ce.0' | |
restart: always | |
hostname: 'git.example.com' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://git.example.com' | |
nginx['listen_port'] = 80 | |
nginx['listen_https'] = false | |
nginx['proxy_set_headers'] = {"X-Forwarded-Proto" => "https","X-Forwarded-Ssl" => "on"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ]; | |
then echo -e "No arguments specified. Usage:\necho upload /tmp/test.md\ncat /tmp/test.md | upload test.md"; | |
return 1; | |
fi | |
tmpfile=$( mktemp -t uploadXXX ); | |
if tty -s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
parser: "babel-eslint" | |
plugins: | |
- "react" | |
ecmaFeatures: | |
jsx: true | |
modules: true | |
spread: true | |
generators: true | |
env: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://blog.streak.com/2013/01/how-to-build-safari-extension.html | |
XAR=path/to/xar/bin | |
BUILD_DIR=path/to/dir/with/cert/files | |
EXTENSION=your extension name | |
$XAR -czf $EXTENSION.safariextz --distribution $EXTENSION.safariextension | |
$XAR --sign -f $EXTENSION.safariextz --digestinfo-to-sign digest.dat --sig-size `cat $BUILD_DIR/size.txt` --cert-loc $BUILD_DIR/cert.der --cert-loc $BUILD_DIR/cert01 --cert-loc $BUILD_DIR/cert02 | |
openssl rsautl -sign -inkey $BUILD_DIR/key.pem -in digest.dat -out sig.dat | |
$XAR --inject-sig sig.dat -f $EXTENSION.safariextz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* simple JSONP support | |
* | |
* JSONP.get('https://api.github.com/gists/5973376', function (data) { console.log(data); }); | |
* JSONP.get('https://api.github.com/gists/5973376', {}, function (data) { console.log(data); }); | |
* | |
* gist: https://gist.github.com/edy/5973376 | |
*/ | |
var JSONP = (function (document) { | |
var requests = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This program has two feature. | |
# | |
# 1. Create a disk image on RAM. | |
# 2. Mount that disk image. | |
# | |
# Usage: | |
# $0 <dir> <size> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
postreceivescript=$(git config hooks.postreceivescript) | |
redmineid=$(git config hooks.redmineid) | |
url=$(git config hooks.url) | |
while read msg; do | |
echo "Sending post-receive email" | |
echo "$msg" | /usr/share/doc/git-core/contrib/hooks/post-receive-email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parts": [ | |
{ | |
"name": "ddi-plugin", | |
"hooks": { | |
"expressCreateServer": "ep_ddi/plugin:expressServer" | |
} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787779 | |
exec /bin/ntfs-3g.orig ${*/-s/} |
NewerOlder