Gist for https://www.youtube.com/watch?v=vS_A_AxTCyk
#!/bin/bash | |
readonly INTERFACE="wg0" | |
# Generate peer keys | |
readonly PRIVATE_KEY=$(wg genkey) | |
readonly PUBLIC_KEY=$(echo ${PRIVATE_KEY} | wg pubkey) | |
readonly PRESHARED_KEY=$(wg genpsk) | |
# Read server key from interface |
Some Jenkinsfile examples |
FROM php:5.6-apache | |
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql | |
COPY src/ /var/www/html |
:80 | |
root /usr/src/wordpress | |
gzip | |
fastcgi / wordpress:9000 php | |
rewrite { | |
if {path} not_match ^\/wp-admin | |
to {path} {path}/ /index.php?_url={uri} | |
} | |
log stdout | |
errors stderr |
!! Appearance | |
urxvt.termName: rxvt-unicode | |
urxvt.scrollBar: false | |
urxvt.background: black | |
urxvt.foreground: gray | |
!! Font prefferenes | |
urxvt.font: xft:DejaVu Sans Mono:pixelsize=13 | |
urxvt.boldFont: xft:DejaVu Sans Mono:pixelsize=13:weight=bold | |
urxvt.letterSpace: -1 | |
!! Larger history limit |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
... | |
TASK: [debug var=mydate] ****************************************************** | |
ok: [localhost] => { | |
"mydate": "20140605101824" | |
} | |
... |