<html>
$foo = "bar";
$baz = 1 + 2 + 3;
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
# Configuration ################################## {{{ | |
# use 256 colors | |
set -g default-terminal "screen-256color" | |
# increase scroll-back history | |
set -g history-limit 5000 | |
# use vim key bindings | |
setw -g mode-keys vi |
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
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"fmt" | |
"net/http/httptrace" | |
"time" | |
"gopkg.in/resty.v1" |
Hooks are defined as JSON objects. Please note that in order to be considered valid, a hook object must contain the id
and execute-command
properties. All other properties are considered optional.
Name | Type | Description |
---|---|---|
id |
string | specifies the ID of your hook. This value is used to create the HTTP endpoint (http://yourserver:port/hooks/your-hook-id) |
execute-command |
string | specifies the command that should be executed when the hook is triggered |
command-working-directory |
string | specifies the working directory that will be used for the script when it's executed |