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 | |
export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin | |
docker_pid=$(cat /var/run/docker.pid) | |
gdb -p $docker_pid <<< "$( ls /proc/$docker_pid/fd -l --time-style=+'%s' | grep -E 'deleted' | awk '{ printf("p close(%s)\n", $7)}')" >/dev/null | |
#closing evenfds that do not have a corresponding memory.oom_control | |
eventfds="$(for eventfd in $(ls /proc/$docker_pid/fd -l --time-style=+'%s' | grep -E 'eventfd'| awk '{print $7}'); do | |
memory_pid=$((eventfd - 1)) |
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
source "https://rubygems.org" | |
gem 'pry' | |
# gem "ascii-image" | |
gem "rmagick", "=2.13.1" | |
gem "rainbow", "= 1.1.4" | |
gem "pry-rescue" | |
gem "paint" |
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 | |
#Configuring postfix to use aws ses as a gateway. | |
#https://gist.github.com/JohnMorales/d554e227146735217536462141fc6898 | |
#update via `gist -u d554e227146735217536462141fc6898 config_mail.sh` | |
# Configuring postfix. | |
if [ -z "$AWS_ACCESS_KEY_ID" ]; then | |
echo "Must have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY set" | |
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
This diff is a modified version of a diff written by Arnis Lapsa. | |
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ] | |
This diff adds support to tmux for 24-bit color CSI SRG sequences. This | |
allows terminal based programs that take advantage of it (e.g., vim or | |
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch) | |
to display 16 million colors while running in tmux. | |
The primary change I made was to support ":" as a delimeter as well |
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
# install build dependencies | |
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel | |
# clone and install rbenv environment | |
cd ~ | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |
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 | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
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
mkdir /volume1/@optware | |
mkdir /opt | |
mount -o bind /volume1/@optware /opt | |
feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable | |
ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'` | |
wget $feed/$ipk_name | |
tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf - | |
mkdir -p /opt/etc/ipkg | |
echo "src cross $feed" > /opt/etc/ipkg/feeds.conf | |
sed -i -e '/PATH=/ 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/sass/base/_solarized.scss b/sass/base/_solarized.scss | |
index 45d8fc5..9e915cc 100644 | |
--- a/sass/base/_solarized.scss | |
+++ b/sass/base/_solarized.scss | |
@@ -15,7 +15,7 @@ $solar-blue: #268bd2 !default; | |
$solar-cyan: #2aa198 !default; | |
$solar-green: #859900 !default; | |
-$solarized: dark !default; | |
+$solarized: light !default; |
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
From 4694737d7a17db39283d0fc614359777472df217 Mon Sep 17 00:00:00 2001 | |
From: JohnMorales <jmorales@gmail.com> | |
Date: Mon, 6 Jan 2014 05:50:02 -0500 | |
Subject: [PATCH] Fixing rake issue | |
--- | |
Gemfile.lock | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/Gemfile.lock b/Gemfile.lock |
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
class Board | |
BLACK = :b | |
RED = :r | |
WIDTH = 7 | |
HEIGHT = 6 | |
def initialize() | |
@board = [] | |
@current_player = BLACK |
NewerOlder