- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml- using inventory:
127.0.0.1 ansible_connection=local| // Parsing arbitrary JSON using interfaces in Go | |
| // Demonstrates how to parse JSON with abritrary key names | |
| // See https://blog.golang.org/json-and-go for more info on generic JSON parsing | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) |
| // Gulp module imports | |
| import {src, dest, watch, parallel, series} from 'gulp'; | |
| import del from 'del'; | |
| import livereload from 'gulp-livereload'; | |
| import sass from 'gulp-sass'; | |
| import minifycss from 'gulp-minify-css'; | |
| import jade from 'gulp-jade'; | |
| import gulpif from 'gulp-if'; | |
| import babel from 'gulp-babel'; | |
| import yargs from 'yargs'; |
| FROM nginx:alpine | |
| # stock verison from php:alpine image | |
| # ensure www-data user exists | |
| RUN set -x \ | |
| && addgroup -g 82 -S www-data \ | |
| && adduser -u 82 -D -S -G www-data www-data | |
| # 82 is the standard uid/gid for "www-data" in Alpine | |
| # http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2 |
| #! /bin/sh | |
| GOOS=linux go build -o $2 "$1" | |
| GOOS=linux go build -ldflags="-s -w" -o $2.-sw "$1" | |
| upx -f --brute -o $2.upx $2 | |
| upx -f --brute -o $2.-sw.upx $2.-sw | |
| GOOS=linux gotip build -o $2.tip "$1" | |
| GOOS=linux gotip build -ldflags="-s -w" -o $2.tip.-sw "$1" | |
| upx -f --brute -o $2.tip.upx $2.tip |
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=local| import critical from 'critical'; | |
| import babelify from 'babelify'; | |
| import browserSync from 'browser-sync'; | |
| import browserify from 'browserify'; | |
| import buffer from 'vinyl-buffer'; | |
| import gulp from 'gulp'; | |
| import plugins from 'gulp-load-plugins'; | |
| import source from 'vinyl-source-stream'; | |
| (module | |
| (func $addTwo (param i32 i32) (result i32) | |
| (i32.add | |
| (get_local 0) | |
| (get_local 1))) | |
| (export "addTwo" (func $addTwo))) |
| upstream heroku { | |
| server myapp.herokuapp.com; | |
| } | |
| server { | |
| server_name ~^(www\.)(?<domain>.+)$; | |
| return 301 $scheme://$domain$request_uri; | |
| } | |
| server { |