This git hook extracts the number from a branch and adds it to the commit message as refs. i.e.:
From a branch named whatever-branch-name-5234
will create a commit message like this:
refs #5234
# git COMMIT_MSG comments
var dev = 'http://underave.loc'; | |
var prod = 'https://underave.net'; | |
var redirect = location.origin == dev ? prod : location.origin == prod ? dev : false; | |
if (redirect) { | |
location.href = redirect + location.pathname + location.search + location.hash; | |
} | |
// Compressed just for adding it to your bookmarks toolbar: |
<?php | |
$spam_boxes = array( | |
'mailinator\.com', | |
'6url\.com', | |
'dodgeit\.com', | |
'greensloth\.com', | |
'spam\.la', | |
'spamday\.com', | |
'tempinbox\.com', |
#!/bin/bash | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# Modified by [email protected] http://github.com/elboletaire | |
# based on https://gist.github.com/jaygooby/504875 http://github.com/jaygooby | |
# based on http://gist.github.com/308216 by http://github.com/mguterl | |
# | |
## A sample /etc/unicorn/my_app.conf |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell] | |
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe" | |
@="Obre powershell" | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell\command] | |
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -NoLogo -Command Set-Location -LiteralPath '%L'" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell] |
get_gitignore() { | |
local gitignore=https://raw.github.com/github/gitignore/master/$1.gitignore | |
local exists=`curl -s --head -w %{http_code} $gitignore -o /dev/null` | |
if [[ $exists -eq 404 ]]; then | |
echo "El gitignore esmentat no existeix. Comprova que l'has escrit be" | |
else | |
curl -s https://raw.githubusercontent.com/github/gitignore/master/$1.gitignore | |
fi | |
} |
/** | |
* MapManager helper class for google maps api V3 | |
* | |
* @author Òscar Casajuana <[email protected]> | |
* @param {object} options Default options to pass to the map manager | |
* { | |
* id: "map", // your canvas id | |
* multiple_select: true, // set to true to show a multiple select when there are multiple results | |
* max_points: 23, // max number of points allowed into the map (false to disable) | |
* limit_alert: "You reached the limit!", // The alert showed when trying to add more points than allowed |
var images = document.getElementsByTagName('img'); | |
for (var i in images) { | |
if (typeof images[i] !== 'object' || typeof images[i].src === 'undefined') continue; | |
if (/([^#]+)#(https?.+)/.test(images[i].src)) { | |
var matches = images[i].src.match(/([^#]+)#(https?.+)/); | |
images[i].src = matches[2]; | |
} | |
} |
This git hook extracts the number from a branch and adds it to the commit message as refs. i.e.:
From a branch named whatever-branch-name-5234
will create a commit message like this:
refs #5234
# git COMMIT_MSG comments
I hereby claim:
To claim this, I am signing this object: