Generated with workflows2md.
- Append to Journal by Chad Stovern
- Audio Device by mikegrb
- Bluetooth Toggle by Chris Streeter
- Can I Use v1.3 by Will Farrell
- Domainr by dingyi
- Emoji v1.5.0 by Carlos Galdino
#!/bin/bash | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
# Install stuff # | |
################# | |
# Install development tools and some misc. necessary packages | |
yum -y groupinstall "Development tools" | |
yum -y install zlib-devel # gen'l reqs |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.LinkedList; | |
import java.util.List; | |
import org.springframework.beans.BeanUtils; | |
Generated with workflows2md.
# My slate file | |
# 10-02-2013 | |
# Basic mappings and bindings for moving screens around | |
# I have set up my right command key to trigger ctrl+alt+shift+cmd | |
# see http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#hyper for details | |
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true |
Rxvt.background:white | |
Rxvt.foreground:black | |
Rxvt.colorBD:yellow | |
Rxvt.colorUL:green | |
Rxvt.multichar_encoding:gb2312 | |
Rxvt.scrollBar:Fault | |
Rxvt.scrollBar_right:True | |
Rxvt.scrollBar_floating: True | |
Rxvt.scrollstyle: next | |
Rxvt.saveLines:10000 |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
A warning occurred (42 apples) | |
An error occurred |
def run_pg_fouine(): | |
info = host_info[env.host_string] | |
db_name = info.tags.get('Name') | |
sudo('perl -pi -e "s/log_min_duration_statement = .*/log_min_duration_statement = 0/" /etc/postgresql/9.*/main/postgresql.conf') | |
sudo('/etc/init.d/postgresql reload') | |
time.sleep(30) | |
sudo('perl -pi -e "s/log_min_duration_statement = .*/log_min_duration_statement = 500/" /etc/postgresql/9.*/main/postgresql.conf') | |
sudo('/etc/init.d/postgresql reload') | |
run('tail -n 100000 /var/log/postgresql/postgresql-9.*-main.log > /tmp/pgfouine.txt') | |
run('gzip -f /tmp/pgfouine.txt') |