Skip to content

Instantly share code, notes, and snippets.

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:gophers/go
$ sudo apt-get update
$ sudo apt-get install golang-tip # Or golang-weekly, or golang-stable
2013-01-09 16:04:21.444 [info] <0.152.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=800&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740261&username=92750928c8c2cf3cfef050001fb.000&sig=2c6305f97124f82478612139a1648a6b"2013-01-09 16:04:37.643 [info] <0.155.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=1600&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740277&username=92750928c8c2cf3cfef050001fb.000&sig=27514b93f3b25edb70162b202a423bd8"2013-01-09 16:04:37.644 [info] <0.156.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=800&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740277&username=00650d192d271139ee456000002.000&sig=45f2d0e4f4bd2cc90fa3919826a24267"2013-01-09 16:04:53.855 [info] <0.159.0>@snh_api_worker:handle_
2013-01-09 16:04:21.444 [info] <0.152.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=800&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740261&username=92750928c8c2cf3cfef050001fb.000&sig=2c6305f97124f82478612139a1648a6b"2013-01-09 16:04:37.643 [info] <0.155.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=1600&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740277&username=92750928c8c2cf3cfef050001fb.000&sig=27514b93f3b25edb70162b202a423bd8"2013-01-09 16:04:37.644 [info] <0.156.0>@snh_api_worker:handle_cast:183 URL: "http://neznaenko.fishsticksgames.com/rest.php?method=CasinoRest/bankroll_update&amount=800&croupier=6vs8xhtsdobqxkxb852w4vrynagp7vgd&manager=manager1&pt=1357740277&username=00650d192d271139ee456000002.000&sig=45f2d0e4f4bd2cc90fa3919826a24267"2013-01-09 16:04:53.855 [info] <0.159.0>@snh_api_worker:handle_
@burinov
burinov / .tmux.conf
Last active December 10, 2015 19:39
# $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
@burinov
burinov / Erlang install
Last active December 10, 2015 15:08 — forked from chaos-ad/install.sh
#!/bin/bash
# installing erlang on ubuntu's
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl
sudo mv kerl /opt/erlang/
sudo ln -s /opt/erlang/kerl /usr/local/bin/kerl
#!/usr/bin/env python
# encoding: utf-8
#Constants.R
#Created by Kenneth J. Shackleton on 14 June 2011.
#Copyright (c) 2011 Ringo Limited.
#All rights reserved.
#R Port by Zach Mayer on 4 December 2011
-module (module_name).
-behaviour(gen_server).
-include_lib("amqp_client/include/amqp_client.hrl").
-export([start_link/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
%% Internal state
-record(state, {

Pre-Flop

After seeing his or her hole cards, each player now has the option to play his or her hand by calling or raising the big blind. The action begins to the left of the big blind, which is considered a ‘live’ bet on this round. That player has the option to fold, call or raise. For example, if the big blind was $2, it would cost $2 to call, or at least $4 to raise. Action then proceeds clockwise around the table.

Note: The betting structure varies with different variations of the game. Explanations of the betting action in Limit Hold'em, No Limit Hold'em, and Pot Limit Hold'em can be found below.

Betting continues on each betting round until all active players (who have not folded) have placed equal bets in the pot.

The Flop

-spec remove_commas(B :: binary()) -> binary().
remove_commas(B) ->
case binary:last(B) of
$, ->
remove_commas(binary_part(B, 0, byte_size(B)-1));
_ ->
B
end.
@burinov
burinov / gist:1760784
Created February 7, 2012 17:11
Network Tuning & Monitoring
# All these tools are good to see traffic in real time
$ sudo iftop
$ bmon
$ sudo iptraf
# Show number of established connections
$ netstat -n | awk '/^tcp/ {t[$NF]++}END{for(state in t){print state, t[state]} }'
$ netstat -n | grep 5222 | awk '/^tcp/ {t[$NF]++}END{for(state in t){print state, t[state]} }'
$ netstat -ant | grep 5222 | awk '{print $6}' | sort | uniq -c | sort -n