Skip to content

Instantly share code, notes, and snippets.

@shl7cc
shl7cc / addEPELrepoCentOS
Created March 4, 2015 05:21
add EPEL repo to CentOS box (install tmux)
#!/bin/bash
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
#Cannot retrieve metalink for repository: epel
sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
sudo yum install -y tmux
@shl7cc
shl7cc / tmux.conf
Created March 4, 2015 05:23
tmux conf
# Use Ctrl-o as prefix command
unbind C-b
set-option -g prefix C-o
bind-key C-o last-window
# Start numbering at 1
set -g base-index 1
# Set status bar
set -g status-bg "#585858"
@shl7cc
shl7cc / buildInstallPyodbc.sh
Created March 4, 2015 06:05
build and install pyodbc
#!/bin/bash
wget https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
unzip pyodbc-3.0.7.zip
cd pyodbc-3.0.7
sudo yum install -y python-devel unixODBC-devel
python setup.py build
sudo python setup.py install