Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
| class Mongoid | |
| def some_mongoid_method | |
| end | |
| end | |
| module SomeInterface | |
| def common_method1(arg1) | |
| end | |
| def common_method2 | |
| end |
| defmodule HttpRequester do | |
| use GenServer | |
| def start_link(_) do | |
| GenServer.start_link(__MODULE__, nil, []) | |
| end | |
| def fetch(server, url) do | |
| # Don't use cast: http://blog.elixirsips.com/2014/07/16/errata-dont-use-cast-in-a-poolboy-transaction/ | |
| timeout_ms = 10_000 |
Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
This list has moved to the following page:
http://anonymoushash.vmbrasseur.com/resources/negotiation/
It's joining a number of other lists of resources (management, telecommuting, etc.):
http://anonymoushash.vmbrasseur.com/resources/
Keeping them all together like this makes it much more likely I'll maintain them (as a group they'll have a larger mindshare in my cluttered & busy brain) rather than fire & forget a list which is never updated again.
| rdr pass proto tcp from any to any port {80,20559} -> 127.0.0.1 port 20559 | |
| anchor "250.PowFirewall/*" |
| require 'logger' | |
| require 'time' | |
| require 'json' | |
| require 'forwardable' | |
| # A simple subclass that writes JSON logs | |
| class JsonLogger < Logger | |
| def format_message(severity, timestamp, progname, msg) | |
| msg = {message: msg} unless msg.is_a? Hash | |
| log = {timestamp: timestamp.iso8601, severity: severity}.merge(msg) |
| /* @flow */ | |
| var React = require("react") | |
| var Immutable = require("immutable") | |
| // In order to use any type as props, including Immutable objects, we | |
| // wrap our prop type as the sole "data" key passed as props. | |
| type Component<P> = ReactClass<{},{ data: P },{}> | |
| type Element = ReactElement<any, any, any> |
| [Global] | |
| uam path = /usr/local/etc/netatalk/uams | |
| max connections = 256 | |
| tcprcvbuf = 262144 | |
| tcpsndbuf = 262144 | |
| server quantum = 262144 | |
| zeroconf = yes | |
| guest account = guest | |
| uam list = uams_passwd.so uams_gss.so uams_guest.so uams_dhx2_pam.so | |
| veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.upload_cache/.qsync/.qsync_sn/ |
| #!/bin/sh | |
| # | |
| # Import all SSH keys from LP | |
| # | |
| PREFIX=~ | |
| SSH_ASKPASS=$PREFIX/bin/lp-askpass.sh | |
| export SSH_ASKPASS | |
| # This is needed to force ssh-add to honor our SSH_ASKPASS. | |
| DISPLAY=foo | |
| export DISPLAY |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)