Locate the section for your github remote in the .git/config
file. It looks like this:
Now add this lines:
[remote "github"]
url = git@github.com:joyent/node.git
fetch = +refs/pull/*/head:refs/remotes/github/pr/*
#!/usr/bin/env bash | |
set -o errtrace | |
set -o errexit | |
facter_version=$1 | |
puppet_version=$2 | |
target_volume=$3 |
Facter.add(:environment) do | |
setcode do | |
if defined? Puppet and Puppet.application_name == :agent | |
Puppet[:environment] | |
else | |
Facter::Util::Resolution.exec('puppet agent --configprint environment') | |
end | |
end | |
end |
diff --git a/YouTubeCore.py b/YouTubeCore.py | |
index d955e49..b088134 100644 | |
--- a/YouTubeCore.py | |
+++ b/YouTubeCore.py | |
@@ -397,7 +397,10 @@ class YouTubeCore(): | |
return ret_obj | |
if get("url_data"): | |
- request = urllib2.Request(link, urllib.urlencode(get("url_data"))) | |
+ args = {} |
#!/usr/bin/env python | |
""" | |
Generates random articles containing loremipsum to | |
test Pelican site generation. | |
Requires the loremipsum Python module: | |
pip install loremipsum | |
Locate the section for your github remote in the .git/config
file. It looks like this:
Now add this lines:
[remote "github"]
url = git@github.com:joyent/node.git
fetch = +refs/pull/*/head:refs/remotes/github/pr/*
[alias] | |
pr = "!f() { git fetch -fu origin refs/pull/$1/head:pr/$1; } ; f" | |
prr = "!f() { git fetch -fu $1 refs/pull/$2/head:pr/$2; } ; f" | |
pru = "!f() { git fetch -fu upstream refs/pull/$1/head:pr/$1; } ; f" | |
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" |
#!/bin/sh | |
# Print four lines showing blocks of colors: 0-7 | 0-7bold | 8-15 | 8-15bold | |
perl -CADS -lwe ' | |
my $block = shift || (chr(0x2588) x 3); | |
for (["", 0], ["1;", 0], ["", 8], ["1;", 8]) { | |
my ($bold, $offset) = @$_; | |
my @range = map $offset + $_, 0..7; | |
printf "%s %-6s ", $bold ? "bold" : "norm", "$range[0]-$range[-1]"; | |
print map("\e[${bold}38;5;${_}m$block", @range), "\e[0m" | |
} |
#!/bin/bash | |
OTP=$1 | |
owner=$2 | |
repo=$3 | |
user=CHANGEME | |
curl -H "X-GitHub-OTP: $OTP" -i -u $user -X POST https://api.github.com/repos/$owner/$repo/hooks --data @irc.json |
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y git make mercurial | |
GOPKG=go1.4.2.linux-amd64.tar.gz | |
wget https://storage.googleapis.com/golang/$GOPKG | |
sudo tar -xvf $GOPKG -C /usr/local/ | |
mkdir ~/go |