!!! WIP !!!
SSH Remote Port Forwarding
TODO: intro
Provision Server
- DigitalOcean
- 512 MB RAM
#!/usr/bin/env bash | |
############### USAGE ############### | |
# | |
# 1. Create a new workspace on Cloud9 using the "Blank" template | |
# | |
# 2. Run this command in the console: | |
# bash <(curl -fsSL https://gist.githubusercontent.com/padde/3c6301f15cbd5025e131740dae33aa95/raw/c9-elixir.sh) | |
# | |
# 3. There is no step 3! |
TODO: intro
require 'active_support/duration' | |
offset = 0 | |
puts "attempt 0 immediately" | |
0.upto(24) do |count| | |
# https://github.com/mperham/sidekiq/blob/v6.1.2/lib/sidekiq/job_retry.rb#L225 | |
average_jitter = (15 * (count + 1)) | |
delay = count**4 + 15 + average_jitter |
ffmpeg -i INFILE -r 25 -f mpeg -vcodec mpeg1video -ar 48000 -b 1500k -acodec mp2 -ar 44100 -ac 1 -y OUTFILE.mpg |
plot = Plot[Cos[x],{x,0,2\[Pi]}]; | |
mydata = Flatten[Cases[plot, Line[x__] -> x, Infinity], 1]; | |
Export["/Users/padde/Desktop/plot-data.dat", mydata, "CSV"]; |
I hereby claim:
To claim this, I am signing this object:
# Patrick Oscity | |
# | |
# Bauhaus-Universität Weimar | |
# Fakultät Medien | |
# SoSe 2011 | |
require 'rubygems' | |
require 'wavefile' |
@interface NSData (CRC32) | |
-(NSUInteger) crc32; | |
@end |
Here's how I set up a tiny Nginx/Rails server that uses HTTPS via a Let's Encrypt issued certificate.
I use the smallest DigitalOcean droplet (512 MB) here, which is built from the "Ubuntu Ruby on Rails on 14.04" image provided by them.
sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2