- Trans-Siberian
- High Himalaya (hiking?)
- Tibet, Lhasa
- Chile, Argentina
- Scandinavia
- The Icelandic Interior
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
-module(xmltest). | |
-compile(export_all). | |
-include_lib("xmerl/include/xmerl.hrl"). | |
%% @doc Helper function to generate XML from a data structure and print it | |
serialize(Data) -> | |
Xml = lists:flatten(xmerl:export_simple(Data, xmerl_xml)), | |
io:format("~s~n", [Xml]). |
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
/* | |
* Usage: | |
* | |
* import com.ben2.jsonops.Implicits._ | |
* val obj = makeSomeObject() | |
* println(obj.toJson) | |
*/ | |
package com.ben2.jsonops |
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
{ | |
"general": { | |
}, | |
"ios": { | |
"profiles": { | |
"DEFAULT": { | |
"provisioning_profile": "/path/to/project.mobileprovision", | |
"certificate": "iPhone Developer: Ben Godfrey (XXXXXXXXXX)" | |
} | |
} |
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
#!/usr/bin/python | |
# Generate URL-safe UUID/GUIDs in Python, e.g. | |
# | |
# ob9G9Ju_Re6SRgxacdUzhw | |
# k0CWKgThQq-9b2ZcmpVXXA | |
# | |
# base64 has an urlsafe encoding | |
from base64 import urlsafe_b64encode |
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
() (B,A) | |
(A,B) (C:A;D,D:B) | |
(A,B) (C:E) | |
(A,B) (C:A;B;E,D:F) | |
(A,B) (C:A;B;D;E;F,E:A,D:F) | |
(A,B,C,D,E) (F) | |
(Pack1, Pack2) ( Pack3 : Pack4 , Pack4 : Pack1 ) | |
() (ThisIsAVeryLongPackageNameThat:MadeUpPackage) | |
(UPPER,lower) (NEW:uPpEr;LOWER,oThEr:new) |
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
# vim: ft=yaml | |
packages: | |
yum: | |
mod_ssl: "" # empty string means latest | |
container_commands: | |
10-ssl-key-cert-install: | |
command: "cp -r .ebextensions/ssl /etc/httpd/" | |
20-apache-ssl-config: | |
command: "cp .ebextensions/ssl.conf /etc/httpd/conf.d/ssl.conf" |
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
# vim: ft=yaml | |
# Elastic Load Balancer and Security Group configuration for the app | |
# | |
# - Allow anyone to connect to port 443 and office traffic to connect to | |
# port 22 | |
# - Ensure all traffic is encrypted by configuring load balancer to listen on | |
# 443 and direct traffic to port 443 on app servers | |
# - Enable cookie-based session stickiness | |
# - Use /status for health check | |
# - Enable backend authentication policy by providing public key for cert |
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
from bottle import get, run | |
@get("/status") | |
def status(): | |
return {"status": "ok"} | |
run(host="localhost", port=8080, debug=True, server="gunicorn", workers="4", reloader=True) |
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
require File.dirname(__FILE__) + '/helloworld.rb' | |
run HelloWorld.new |