I hereby claim:
- I am tomeduarte on github.
- I am tomeduarte (https://keybase.io/tomeduarte) on keybase.
- I have a public key whose fingerprint is 2D2B F7AF B5DB 2CD5 C61A 09CF 1A98 170C 387C 3673
To claim this, I am signing this object:
#!/bin/sh | |
## | |
## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY SHARED_SECRET > client.ovpn | |
## | |
## Example invocation (note it must be run as root since key and cert files are protected | |
## ./ovpnwritter titty.nipples.org /etc/easy-rsa/pki/ca.crt /etc/easy-rsa/pki/issued/client.crt /etc/easy-rsa/pki/private/client.key /etc/openvpn/ta.key > iphone.ovpn | |
## | |
## Tested and works with OpenVPN Connect 1.0.7 build 199 (iSO 64-bit) on iOS 9.3.3 | |
## |
I hereby claim:
To claim this, I am signing this object:
# /srv/salt/shared/nginx/files/sites-available/default.lb | |
upstream app_nodes { | |
# Build list of backend servers | |
# using peer communication as the mine is cached and slow to pick up new hosts | |
{% for server,ips in | |
salt['publish.publish']( | |
'G@roles:appnode', | |
'network.ip_addrs', expr_form='compound').items() -%} | |
# host: {{ server }} | |
{% for ip in ips -%} |
# adapted from: http://stackoverflow.com/a/10211540/514700 | |
module I18n | |
module Registry | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
@log ||= Logger.new(File.join(Rails.root, 'log', 'i18n_registry.log')) | |
@log.info "i18n lookup - key: #{key} | locale: #{locale} | scope: #{scope}" | |
super | |
end | |
end |
def truncate_name(name) | |
name.gsub(/^(.{40}[\w.]*)(.*)/) {$2.empty? ? $1 : $1 + '...'} | |
end |