This file contains hidden or 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
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
tune.ssl.default-dh-param 2048 | |
user haproxy | |
group haproxy | |
pidfile /var/run/haproxy.pid | |
stats socket /tmp/haproxy.stats level admin | |
defaults |
This file contains hidden or 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
#!/usr/bin/env python3 | |
env = { | |
'dev': { | |
'web_ext': { | |
'services': ['httpd', 'redis', 'tripwire'], | |
'servers': ['web1.ext.dev.domain.com', 'web2.ext.dev.domain.com'], | |
'type': 'ssh', | |
}, | |
'web_int': { |
This file contains hidden or 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 ( | |
"github.com/kataras/iris" | |
) | |
func main() { | |
// setting up atlas object | |
atlas := iris.New() | |
// catch wildcard subdomains |
This file contains hidden or 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 ( | |
"github.com/kataras/iris" | |
) | |
func main() { | |
api := iris.New() | |
//your subdomain |
This file contains hidden or 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 ( | |
"bytes" | |
"encoding/json" | |
"log" | |
"os" | |
"fmt" | |
) |
This file contains hidden or 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
mongo: | |
image: mongo | |
volumes: | |
- ./data/runtime/db:/data/db | |
- ./data/dump:/dump | |
command: mongod --smallfiles --oplogSize 128 | |
nginx: | |
image: nginx | |
volumes: |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
usage() { | |
echo "Usage: $0 -q {high|low} -e {event_ID}" >&2 | |
exit 1 | |
} | |
if [ $# -ne 4 ]; then | |
usage |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Circle Transition Animation</title> | |
<style> | |
.circle { | |
width: 200px; | |
height: 200px; |
This file contains hidden or 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
var express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
//res.send('Hello Greg!'); | |
res.json({firstName: 'Greg'}); | |
}); | |
var server = app.listen(3000, function() { | |
console.log('listening on port 3000'); |
This file contains hidden or 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 ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
name := "aMANDA aNyBOdY" |