Skip to content

Instantly share code, notes, and snippets.

@thepoho
thepoho / tmux.conf
Created March 14, 2019 20:13
My screen-ish tmux.conf
# $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
@thepoho
thepoho / development.rb
Created August 15, 2016 10:48
Turn off activerecord SQL logging in dev mode
config.after_initialize do
ActiveRecord::Base.logger = Rails.logger.clone
ActiveRecord::Base.logger.level = Logger::INFO
end

Keybase proof

I hereby claim:

  • I am thepoho on github.
  • I am poho (https://keybase.io/poho) on keybase.
  • I have a public key whose fingerprint is 79EC E23E F37E FD50 45EE 4AD9 637E 0657 6A52 BE88

To claim this, I am signing this object:

@thepoho
thepoho / gist:74d01fa1ca7a5f6e2b56
Last active November 18, 2015 04:11
Gameshow States
GameShowStateBase *m_currState;
GameShowStateBase *m_nextState;
GameShow::SetNextState(GameShowStateBase *pNextState)
{
m_nextState = *pNextState;
}
GameShow::ChangeState(GameShowStateBase *pNextState)
{
#run this as a regular user#
sudo apt-get update
sudo apt-get -y install git gcc make autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev apache2 mysql-client apache2-utils libmysqlclient-dev default-jre libcurl4-openssl-dev libapr1-dev libaprutil1-dev imagemagick openssl
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
@thepoho
thepoho / RBENV installation Centos
Last active December 20, 2015 16:19
Installing RBENV
sudo su
yum install curl-devel perl-ExtUtils-MakeMaker gettext sqlite sqlite-devel openssl-devel
wget http://git-core.googlecode.com/files/git-1.7.11.4.tar.gz
tar -xvzf git-1.7.11.4.tar.gz
cd git-1.7.11.4
./configure --with-curl --with-expat --without-tcltk
make
make install