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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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
<?php | |
/** | |
* Check for post format type, apply filter based on post format name for easy modification. | |
* | |
* @since 1.0 | |
*/ | |
function chimps_post_formats_content() { | |
$format = get_post_format(); | |
$root = get_template_directory_uri(); | |
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
jQuery(document).ready(function () { | |
jQuery('a').each(function () { | |
var a = jQuery(this); | |
var href = a.attr('href'); | |
if (href == undefined) return; | |
var url = href.replace('http://', '').replace('https://', ''); | |
var hrefArray = href.split('.').reverse(); | |
var extension = hrefArray[0].toLowerCase(); | |
var hrefArray = href.split('/').reverse(); | |
var domain = hrefArray[2]; |
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
test | |
test2 | |
test3 | |
test4 |
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
test | |
test2 | |
test3 | |
test4 |
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/ncurses.rb b/ncurses.rb | |
index 1067083..8cc12bc 100644 | |
--- a/ncurses.rb | |
+++ b/ncurses.rb | |
@@ -23,4 +23,9 @@ class Ncurses < Formula | |
system "make" | |
system "make install" | |
end | |
+ | |
+ def patches |
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
➜ pry | |
[1] pry(main)> pid = Process.pid | |
=> 14683 | |
[2] pry(main)> 5.times { fork { sleep 60 } } | |
=> 5 | |
[3] pry(main)> puts `ps o pid,ppid= | grep #{pid}$`.split("\n").map{|line| line.split.first} | |
14707 | |
14708 | |
14709 | |
14710 |
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/sh | |
#------------------------------------------------------------------------------ | |
# Functions | |
#------------------------------------------------------------------------------ | |
. /lib/lsb/init-functions | |
#------------------------------------------------------------------------------ | |
# Consts | |
#------------------------------------------------------------------------------ |