Skip to content

Instantly share code, notes, and snippets.

@teppeis
teppeis / tenkaichi-git.md
Last active Feb 8, 2022
天下一gitconfig大会
View tenkaichi-git.md

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

GistDeck

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@Gab-km
Gab-km / github-flow.ja.md
Last active May 15, 2022 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
View github-flow.ja.md

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@bjhess
bjhess / pull_request_webhook.md
Created May 18, 2012
The way I had to add a github repo webhook for pull requests
View pull_request_webhook.md

This is more complex than necessary.

GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.

{
  "name": "web",
 "active": true,
@masaki
masaki / webapp.psgi
Created Jan 28, 2012
Jenkins WebHook Receiver (w/ Jenkins Notification Plugin's JSON)
View webapp.psgi
#!/usr/bin/env perl
use strict;
use warnings;
use Plack::Request;
use HTTP::Status qw(:constants status_message);
use JSON qw(from_json);
use LWP::UserAgent;
sub to_psgi_res {
View cpanfile.pod

NAME

cpanfile - A format for describing CPAN dependencies for Perl applications

SYNOPSIS

requires 'Catalyst', '5.8000';
requires 'CatalystX::Singleton', '>= 1.1000, < 2.000';

recommends 'JSON::XS', '2.0';
@jollychang
jollychang / env
Created Sep 14, 2011
Jenkins daemontools run config
View env
head /service/jenkins/env/*
==> /service/jenkins/env/HOME <==
/home/jenkins/
==> /service/jenkins/env/JENKINS_HOME <==
/home/jenkins/
==> /service/jenkins/env/USER <==
jenkins
@cfcosta
cfcosta / gist:1149139
Created Aug 16, 2011
Implementation of Webrat's #table_at for using with Capybara. Not the cleanest implementation ever, but it works correctly.
View gist:1149139
def table_at(selector)
Nokogiri::HTML(page.body).css(selector).map do |table|
table.css('tr').map do |tr|
tr.css('td').map { |td| td.text }
end
end[0].reject(&:empty?)
end
@masaki
masaki / rubygems-1.8.5-no_proxy.patch
Created Jul 20, 2011
RubyGems NO_PROXY auto-detection without http_configuration gem
View rubygems-1.8.5-no_proxy.patch
--- rubygems-1.8.5/lib/rubygems/remote_fetcher.rb.orig 2011-07-20 00:28:13.000000000 +0900
+++ rubygems-1.8.5/lib/rubygems/remote_fetcher.rb 2011-07-20 01:09:59.000000000 +0900
@@ -69,6 +69,7 @@
when URI::HTTP then proxy
else URI.parse(proxy)
end
+ @no_proxy = (ENV['NO_PROXY'] || ENV['no_proxy'] || 'localhost, 127.0.0.1').split(/\s*,\s*/)
@user_agent = user_agent
end
View getting-phantomjs-working-on-centos55.txt
repo for a more modern version of qt (4.7)
http://atrpms.net/documentation/install/
http://packages.atrpms.net/dist/el5/qt4/
cat /etc/yum.repos.d/atrpms.repo
[atrpms]
name=ATrpms manual
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
@miyagawa
miyagawa / gist:965935
Created May 11, 2011
hijack any LWP stack with your PSGI app - it's on CPAN now http://search.cpan.org/~miyagawa/LWP-Protocol-PSGI-0.01/
View gist:965935
use strict;
use LWP::UserAgent;
my $app = do {
use Mojolicious::Lite;
get '/' => sub { shift->render(text => "Hello World") };
get '/search' => sub {
my $self = shift;
my $foo = $self->param('q');
$self->render(text => "You searched $foo");