$ git clone https://github.com/heroku/heroku-buildpack-ruby.git # or any other buildpack
$ cd heroku-buildpack-ruby
heroku-buildpack-ruby $ cat Dockerfile
FROM fabiokung/heroku-buildpack-base
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q ruby2.0
# more stuff specific to this buildpack...
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
#!/bin/bash | |
# Download and install Boot2Docker | |
curl -LO https://github.com/boot2docker/osx-installer/releases/download/v1.3.2/Boot2Docker-1.3.2.pkg | |
sudo installer -pkg Boot2Docker-1.3.2.pkg -target /Volumes/Macintosh\ HD && rm Boot2Docker-1.3.2.pkg | |
# Initialize Boot2Docker | |
boot2docker init | |
boot2docker start | |
$(boot2docker shellinit) |
I hereby claim:
- I am nzoschke on github.
- I am nzoschke (https://keybase.io/nzoschke) on keybase.
- I have a public key whose fingerprint is 896A 3E7D 5D7A 0E42 DE9D 4FBD F904 F34A B283 9891
To claim this, I am signing this object:
Most web traffic should be available over HTTPS. AWS makes this easy with Elastic Load Balancers (ELBs). When configured with an SSL certificate, an ELB will perform SSL termination and forward the traffic onto our group of non-encrypted web server instances.
Using an ELB is advantageous to offload many responsibilities to Amazon:
Maintaining uptime for the primary service DNS name Balancing traffic to one or more instances Re-balancing traffic when instances are added, removed, or become unhealthy Storing and applying your mission-critical secret SSL certificate Configuring critical aspects of HTTP like what SSL protocols, cypher and options are available and permitted
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<svg id="svg" width="1080px" height="760px" viewBox="0 0 1080 760" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<title>assembly 2015</title> | |
<style> | |
.dark #background { | |
fill:black; | |
} | |
text { | |
fill: #ffffff; | |
} |
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/python2.4 | |
import sys | |
import email | |
import urllib | |
import httplib | |
from optparse import OptionParser, OptionGroup | |
from datetime import datetime | |
PROWLURL='prowl.weks.net' | |
APIKEY='YOUR_PROWL_API_KEY' |
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
player = null; // niftyplayer instance | |
files = []; // playlist order; could be shuffled | |
_files = []; // original order | |
retries = 0; // how many times javascript tried to find player | |
int = null; // setInterval handle | |
// parse all .mp3 links on the page | |
as = document.getElementsByTagName('a'); | |
for (var i = 0; i < as.length; i++) { |
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
diff --git a/skel/heroku.vcl b/skel/heroku.vcl | |
index 4b74b22..56280e1 100644 | |
--- a/skel/heroku.vcl | |
+++ b/skel/heroku.vcl | |
@@ -62,6 +62,9 @@ sub vcl_recv { | |
# serve stale items for 30 seconds while fetching new item from backend | |
set req.grace = 30s; | |
+ # remove the cookie header for cached pages | |
+ unset req.http.cookie; |
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/python2.4 | |
import urllib | |
import httplib | |
from optparse import OptionParser, OptionGroup | |
GVHOST = 'clients4.google.com' | |
GVPATH = '/voice/embed/webButtonConnect' | |
BUTTONID = '7c175b61b7a363681b1db4d6522c5d4927614d0e' | |
def connect(caller_number): |
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
<audio /> | |
<script type="text/javascript"> | |
var audio = document.getElementsByTagName('audio')[0]; | |
audio.src = "http://example.com/song.mp3"; | |
audio.load(); | |
audio.play(); | |
</script> |
OlderNewer