Setting up Dokku with DigitalOcean and Namecheap
..or how I made my own heroku in a few hours for $3.98.
These packages are obsolete! Please use the official packages from http://www.Graylog2.org
=================================================
Steps to get Raspberry Pi running with Mopidy and Spotify | |
1. Raspian Wheezy Installation | |
2. Install Python tools following these instructions | |
(had to run most of it as sudo): | |
http://raspberry.io/wiki/how-to-get-python-on-your-raspberrypi/ | |
3. Install Spotify libspotify | |
https://developer.spotify.com/technologies/libspotify/#download | |
4. Install Mopidy following these directions: | |
http://docs.mopidy.com/en/latest/installation/raspberrypi/ |
For example, suppose I wanted to download the package foo
at the version ~0.2.3
. My package client would go to the central ref server and query the tags of foo
. It would then see that foo
has versions 0.2.3
, 0.2.4
, and 0.3.0
. It would decide that 0.2.4
is the desired version based on the original range query. Along with the refs the central server also told it the hashes of the root tree node for these package versions. It now knows which hash contains the desired package.
Now to get the package, we need to query the distributed network for t
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
The prep-script.sh
will setup the latest Node and install the latest perf version on your Linux box.
When you want to generate the flame graph, run the following (folder locations taken from install script):
sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0
var _log = console.log; | |
window.console.log = function(log){ | |
_log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : typeof log === 'boolean' ? !log : log); | |
}; |
sub crappy_async_lwp($host, $path) { | |
my $p = Promise.new; | |
my $v = $p.vow; | |
IO::Socket::Async.connect($host, 80).then(-> $sr { | |
if $sr.status == Kept { | |
my $socket = $sr.result; | |
$socket.send("GET $path\r\n\r\n").then(-> $wr { | |
if $wr.status == Broken { | |
$v.break($wr.cause); | |
$socket.close(); |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.