Skip to content

Instantly share code, notes, and snippets.

View muratayusuke's full-sized avatar

Yusuke Murata muratayusuke

View GitHub Profile
@muratayusuke
muratayusuke / pivotal_task_list.js
Last active October 8, 2015 10:37
task list in pivotal
var res = "";$('.story_name').each(function(i,obj){res+=$(obj).text()+"\n"});console.log(res);
@muratayusuke
muratayusuke / itamae.rb
Created April 21, 2015 08:30
itamae sample
# apt
execute 'sudo apt-get update --fix-missing'
# git
package 'git'
# nginx
package 'nginx'
directory '/var/log/nginx/myapp' do
@muratayusuke
muratayusuke / gist:71a7ba09f51dce07d07a
Created January 5, 2015 05:33
Install nokogiri 1.6.5 on Mac OSX Yosemite
# gem
sudo gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
# bundle
bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
bundle install
#!/bin/bash
apt-get update
apt-get install -y xserver-xorg xserver-xorg-core build-essential linux-headers-generic dkms virtualbox-guest-dkms
# restart VM
mount /dev/sr0 /mnt
cd /mnt
./VBoxLinuxAdditions.run
@muratayusuke
muratayusuke / gist:dea1658cf9d911ba55de
Created May 27, 2014 06:00
qt-everywhere-opensource-src-4.8.5.spec
# Disable the generation of debuginfo packages
%define debug_package %{nil}
%define _tmppath %{_topdir}/tmp
%define _prefix /usr/local
%define name qt-everywhere-opensource-src
%define release el5
%define version 4.8.5
%define buildroot %{_topdir}/BUILD/%{name}-%{version}-root
# git cloneが落ちてこなくて困ったら試してみる
git config --global core.compression -1
## Options to set on the command line
d-i debian-installer/locale string en_US.utf8
d-i console-setup/ask_detect boolean false
d-i console-setup/layout string USA
#d-i netcfg/get_hostname string dummy
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i time/zone string UTC
{
"builders":[{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://ubuntutym2.u-toyama.ac.jp/ubuntu//saucy/ubuntu-13.10-server-amd64.iso",
"iso_checksum": "4d1a8b720cdd14b76ed9410c63a00d0e",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "3000s",
#!/bin/bash
function install(){
REPO=$1
DIR=$2
TARGET=$3
BUILD_DIR=~/buildxcodeplugins/work
mkdir -p ${BUILD_DIR}
rm -rf ${BUILD_DIR}/*

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: