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
cd /var/lib/jenkins | |
git add userContent/* -f | |
git add jobs/*/*.xml -f | |
git add users/*/config.xml -f | |
git add *.xml | |
COUNT=`git ls-files --deleted | wc -l` | |
if [ $COUNT -ne 0 ] | |
then git ls-files --deleted | xargs -d '\n' git rm |
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
#!/usr/bin/perl | |
use Sys::Syslog qw( :DEFAULT setlogsock ); | |
setlogsock('unix'); | |
openlog('apache', 'cons', 'pid', 'local2'); | |
while ($log = <STDIN>) { | |
syslog('notice', $log); | |
} | |
closelog |
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 | |
# Defaults. Override in /etc/default/solr-backup. | |
# Unprivileged user/group that we will use to run this script. | |
B_USR=ubuntu | |
B_GRP=${B_USR} | |
# Domain SUFFIX. | |
SUFFIX=.dnsxSUFFIX.yourhost.com |
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
Jun 4, 2007 12:38 from John Public | |
WORF> You just stepped in the worst pile of GNU horseshit ever to be barfed | |
all over the *nix world: autocruft. | |
The idea is this. You write your app in C. It's 99% portable. However, | |
different unixes have slightly different C functions, or are missing them. You | |
could easily workaround this with two lines of preprocessor #ifdefs, or just a | |
contrib/ directory for patches. Instead, you write some M4 macros to fuss with | |
some C headers to patch your code. Now your code is 99.1% portable. However, | |
different unixes have slightly different m4 variants. Damn. Now you need to |
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
//v1, works, normally .each instead of [0] | |
$($($('a:contains("pic.twitter.com/")')[0]).parent().parent().parent().data('expandedFooter')).children(".cards-media-container").children().children(".media").children("a").data('url') | |
//v2, found 'find' instead of 'filter'... | |
$($($('a:contains("pic.twitter.com/")')[0]).parent().parent().parent().data('expandedFooter')).find("a.media-thumbnail").data('url') |
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
wget http://apache.claz.org/hadoop/common/hadoop-1.2.0/hadoop-1.2.0-bin.tar.gz | |
gzip -d hadoop-1.2.0-bin.tar.gz | |
tar xvf hadoop-1.2.0-bin.tar | |
cd hadoop-1.2.0 | |
mkdir input | |
cp ../conf/*.xml ./ | |
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
export HADOOP_HOME=/Users/ralphtice/hadoop/hadoop-1.2.0/ | |
export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk" |
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
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
#Sublime Text 2 + Ensime for scala development | |
www.sublimetext.com/2 | |
http://wbond.net/sublime_packages/package_control/installation | |
https://github.com/sublimescala/sublime-ensime | |
#x11 forwarding (xquartz) | |
http://xquartz.macosforge.org/landing/ |
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
https://papertrailapp.com/systems/setup | |
# sudo sh | |
# cd /etc | |
# wget https://papertrailapp.com/tools/syslog.papertrail.crt | |
# yum install rsyslog-gnutls |
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
jar 'com.netflix.hystrix:hystrix-core', '~>1.2.16' |