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
-define(TIMEOUT, 60000). | |
-behavior(ssh_channel). | |
%% API | |
-export([start_link/2, send/2, send_wait/2, close/1, get_data/1]). | |
%% ssh_channel API | |
-export([init/1, handle_call/3, handle_cast/2, handle_msg/2]). | |
-export([handle_ssh_msg/2, code_change/3, terminate/2]). |
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
-module(delete_bug). | |
-compile([export_all]). | |
start(N) -> | |
{ok, C} = riak:local_client(), | |
C:set_bucket(<<"b">>, [{allow_mult, false}]), | |
loop(N, C). | |
start_pbc(N) -> | |
{ok, RC} = riakc_pb_socket:start_link("127.0.0.1", 8087), |
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
setopt prompt_subst | |
autoload colors zsh/terminfo | |
colors | |
function __git_prompt { | |
local DIRTY="%{$fg[yellow]%}" | |
local CLEAN="%{$fg[green]%}" | |
local UNMERGED="%{$fg[red]%}" | |
local RESET="%{$terminfo[sgr0]%}" | |
git rev-parse --git-dir >& /dev/null |
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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
sudo apt-get update | |
sudo apt-get upgrade |
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
import System.IO | |
import Control.Exception | |
import Numeric.LinearAlgebra | |
import Data.Digest.Pure.SHA | |
import Data.ByteString.Lazy.Char8 as BS8 (pack) | |
import Data.List (sort) | |
import System.Random (randomRIO) | |
import Network.Curl | |
import Text.Printf (printf) | |
import Data.List.Split (splitOn) |
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 | |
# Pull this file dowm, make it executable and run it with sudo | |
# wget https://raw.github.com/gist/1603037/build-erlang-r15b.sh | |
# chmod u+x build-erlang-r15b.sh | |
# sudo ./build-erlang-r15b.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 1 | |
fi |
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
$ ssh-keygen -l -f /path/to/keys/id_rsa.pub | |
2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
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
-module(annealing). | |
-export([anneal/1]). | |
-define(KMAX, 10000). | |
-define(EMAX, 0.00001). | |
-define(INITIAL_TEMP, 100000). | |
anneal(S0) -> | |
random:seed(os:timestamp()), |
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
-module(annealing). | |
-export([anneal/1, anneal/2]). | |
-define(KMAX, 2500). | |
-define(EMAX, 0.00001). | |
-define(INITIAL_TEMP, 100000). | |
anneal(S0) -> | |
anneal(S0, 4). |
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
-module(annealing). | |
-export([anneal/1, anneal/2]). | |
-define(KMAX, 1000). | |
-define(EMAX, 0.00001). | |
-define(GRACE, 500). | |
anneal(S0) -> | |
anneal(S0, 4). |
OlderNewer