Skip to content

Instantly share code, notes, and snippets.

@yoshikig
yoshikig / chinachu.patch
Created August 26, 2015 01:37
[Chinachu] Fix ffmpeg compile failure
diff --git a/chinachu b/chinachu
index 7ff0370..b6badf4 100755
--- a/chinachu
+++ b/chinachu
@@ -456,7 +456,7 @@ chinachu_installer_ffmpeg () {
--enable-filter=yadif \
--enable-filter=trim \
--extra-cflags="-I${USR_DIR}/include --static" \
- --extra-ldflags="-L${USR_DIR}/lib"
+ --extra-ldflags="-L${USR_DIR}/lib -static"
@toshia
toshia / spellchecker.rb
Created February 4, 2013 13:34
時事ネタは時間の無駄である
Plugin.create :spellchecker do
filter_gui_timeline_selected_messages do |timeline, messages|
messages.each { |message|
raise RuntimeError if /[Ff]ile:\/\/\// =~ message.to_s
}
[timeline, messages]
end
end
anonymous
anonymous / gist:4600411
Created January 23, 2013 00:28
ワロスBOTとWillile mobile
さーて、ちょっと気になったのでワロスBOTとWillile mobileの関係を調べてみた。まずはこのツイートを見て下さい:
https://twitter.com/wwwww_BOT/status/274387294469881856
https://twitter.com/wwwww_BOT/status/293349748134510592
https://twitter.com/wwwww_BOT/status/293310738221641730
さーて、このax54.comのドメインは誰が持っているかな?
http://www.networksolutions.com/whois-search/ax54.com
@co3k
co3k / gist:4317540
Created December 17, 2012 11:16
3.6 betaX から 3.6RC1 に向けてのブランチ計画に関してメモが発掘できたので貼ってみる

OpenPNE3 release branching model in stable-3.6.x

図解

3.6.0 に向けたリリースブランチモデルは以下の図に示すとおり:

@haru067
haru067 / mikutterAdventCalendar2012.md
Created December 10, 2012 05:16
mikutter Advent Calendar 10日目

mikutter Advent Calendar 10日目

(´へεへ`*) < 10日目だよ〜

(´へεへ`*) < 昨日は@penguin2716氏、明日は@teshi04氏だよ〜

 

(´へεへ`*) < ………

@co3k
co3k / sf-logo-legacy.user.js
Created November 6, 2012 06:47
User script to replace the logo of symfony.com to legacy one when you browse symfony 1 docs page
// ==UserScript==
// @name sf-logo legacy
// @namespace co3k.org
// @include http://symfony.com/legacy*
// @version 1
// ==/UserScript==
unsafeWindow.jQuery("#content_wrapper .header .illustration_logo_header a img.png_fix").attr("src", "/logos/symfony1.gif");
@fujieda
fujieda / gist:3967962
Created October 28, 2012 07:27
E-mail from amazon.com

Hello from Amazon.

We are writing because the home country registered to your Kindle account may not match your country of residence. Due to publishing rights, the home country registered to your account must match your country of residence.

To continue purchasing titles available for The United States, please send a copy of your valid government-issued identity card, passport, or a utility bill received within the previous 90 days to our secure fax line:

Within the US: 206-266-1838
Outside the US: (00)1-206-266-1838

For your security, you may obscure the passport, ID, or account number. However, we ask that you do not obscure any portion of your name, your address, or any expiration or statement dates.

@co3k
co3k / gist:3903869
Created October 17, 2012 05:36
Git リポジトリ内で ack しようとするとこらーって言うやつ
function ack()
{
if git log -0 &> /dev/null ; then
echo "You are in git repository so you can grep by git-grep command"
else
/usr/local/bin/ack $*
fi
}
diff --git a/OpenTween/Twitter.cs b/OpenTween/Twitter.cs
index 75210fb..0b167e6 100644
--- a/OpenTween/Twitter.cs
+++ b/OpenTween/Twitter.cs
@@ -2240,7 +2240,7 @@ namespace OpenTween
return "";
}
- private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId)
+ private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId, bool more)
@co3k
co3k / gist:3016197
Created June 29, 2012 06:18
symfony 1.4.x は *.method_not_found というイベントを用意する時点でこういうのをフレームワークとして用意して欲しかったニャー (ああでもこの手の奴は PHP 5.3.x 前提だから無理ってことですねはい)
<?php
// 想像を形にしてみただけなので動かないかもよ
class sfInjectedMethod
{
protected $method, $callable;
public __construct($method, $callable)
{