I hereby claim:
- I am elboletaire on github.
- I am elboletaire (https://keybase.io/elboletaire) on keybase.
- I have a public key ASBiljF-WDRtuJVz19IBjPiY8_XHfLl1ZdK3CM1eggjZcwo
To claim this, I am signing this object:
| const validateFrameEndpoint = "https://hubs.airstack.xyz/v1/validateMessage" | |
| func ValidateFrameMessage(msg []byte) map[string]interface{} { | |
| req, err := http.NewRequest(http.MethodPost, validateFrameEndpoint, bytes.NewBuffer(msg)) | |
| if err != nil { | |
| log.Warn("error creating request:", err) | |
| return nil | |
| } | |
| req.Header.Set("Content-Type", "application/json") | |
| res, err := http.DefaultClient.Do(req) |
I hereby claim:
To claim this, I am signing this object:
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 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]; | |
| } | |
| } |
| /** | |
| * MapManager helper class for google maps api V3 | |
| * | |
| * @author Òscar Casajuana <elboletaire@underave.net> | |
| * @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 |
| 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 | |
| } |
| 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] |
| #!/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 |
| <?php | |
| $spam_boxes = array( | |
| 'mailinator\.com', | |
| '6url\.com', | |
| 'dodgeit\.com', | |
| 'greensloth\.com', | |
| 'spam\.la', | |
| 'spamday\.com', | |
| 'tempinbox\.com', |