GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
| requirejs = require('requirejs') | |
| jspath = __dirname + '/views/scripts'; | |
| requirejs.optimize( | |
| baseUrl: jspath | |
| wrap: | |
| start: ';(function(undefined) { "use strict";' | |
| end: '}).call(this);' |
| requirejs = require('requirejs') | |
| jspath = __dirname + '/views/scripts'; | |
| requirejs.optimize( | |
| baseUrl: jspath | |
| wrap: | |
| start: ';(function(undefined) { "use strict";' | |
| end: '}).call(this);' |
| # Beginning Rubyists: simply run >> ruby hex-convertions.rb to see examples | |
| # or use irb to build the code on the fly | |
| # you can convert HEX to DEC using the method .to_i(base), | |
| # which converts a string to a decimal number from the specified base number | |
| puts "00".to_i(16) | |
| puts "FF".to_i(16) |
| # By default the behavior is: | |
| # Primary monitor work as always and second monitor only have one and fixed workspace | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is. | |
| # The desired behaviour is: | |
| # Primary monitor and secondary monitor are linked workspace. | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor too. | |
| $ gconf-editor | |
| # Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false |
| #!/usr/bin/python3 | |
| # | |
| # A hook script to prepare the commit log message. | |
| # | |
| # Called by git-commit with the name of the file that has the commit | |
| # message, followed by the description of the commit message's source. | |
| # The hook's purpose is to edit the commit message file. If the hook | |
| # fails with a non-zero status, the commit is aborted. | |
| import glob |
| express = require 'express' | |
| app = express.createServer() | |
| auth = express.basicAuth 'yourmom', 'p4ssw0rd' | |
| app.get '/', auth, (req, res) -> | |
| res.send your_super_secret_stuff | |
| app.listen 3000, -> | |
| console.log "Listening on #{port}" |
| #!/bin/bash | |
| # Original version (C) 2011 by jonasvp | |
| # Modified version by danwerner | |
| # Save this file as .git/hooks/pre-commit, make it executable, and it will | |
| # thank you by saving you from common mistakes *before* deployment. | |
| # Conflict markers | |
| git diff --cached --diff-filter=ACMR | awk '/\+(<<<[<]<<<|>>>[>]>>>|===[=]===$)/ { exit 1 }' | |
| CODE=$? |