Skip to content

Instantly share code, notes, and snippets.

View withgod's full-sized avatar
💭
I may be slow to respond.

takumi withgod

💭
I may be slow to respond.
View GitHub Profile
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 24 2011 20:00:09)
Compiled by root@apple.com
mac os x lion again
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 24 2011 20:00:09)
Compiled by root@apple.com
mac os x lion again
あげいん
--- node/batch.js (revision 19)
+++ node/batch.js (revision 20)
@@ -13,8 +13,8 @@
logger.info("batch start");
-var Client = require('mysql').Client,
- client = new Client(settings.db);
+var mysql = require('mysql'),
+ client = mysql.createClient(settings.db);
[noname@gis]node ./server.js [(git)-[master] ~/code/nemutan]
[2011-11-05 03:21:42.474] [INFO] console - Nemutan running at port 6368
[2011-11-05 03:21:42.480] [INFO] console - Loaded ghost: default
[2011-11-05 03:22:20.279] [INFO] ACCESS - 192.168.0.107 - /ghost/default/talk
[2011-11-05 03:22:20.285] [ERROR] ERROR - Only GET,HEAD allowed
[2011-11-05 03:22:20.761] [INFO] ACCESS - 192.168.0.107 - /favicon.ico
----
http://192.168.1.10:6368/ghost/default/talk
{"success":false,"message":"Failed to write session data","result":null}
[noname@sakura]uname -ar [~]
Linux sakura 2.6.32-34-server #77-Ubuntu SMP Tue Sep 13 20:54:38 UTC 2011 x86_64 GNU/Linux
[noname@sakura]cat /etc/debian_version [~]
squeeze/sid
[noname@sakura]cat /etc/lsb-release [~]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"
[noname@sakura] [~]
@withgod
withgod / gist:1620180
Created January 16, 2012 10:45
zsh ssh hostname completion
_cache_hosts=(`grep 'ssh ' ~/.zsh_history | awk -F ';' '{print $2}' |sed 's/[a-z0-9_\-]\+@//' \
| egrep '^ssh [a-z0-9\-\.]+$' | sort | uniq | sed 's/^ssh //'`)
- /home/noname/etc/plagger/config.yaml
plugins:
- module: Subscription::Config
config:
feed:
- http://store.steampowered.com/feeds/news.xml
- http://www.negitaku.org/rss.xml
- http://gs.inside-games.jp/modules/news/wp-rss2.php
- http://www.game-damashi.com/maincontents.rss
@withgod
withgod / gist:1675119
Created January 25, 2012 06:45
おねがい
はじめまして、公開mumbleサーバ運営を行っているwithgodです。
突然のお願いですが、そちらのmumble解説ページにてミラーされている mumble 1.1.3 を 本家の1.2系にしたり、リンクに注意書き(世間では1.2が一般的です、特に理由の無い限りは最新版の利用を進めます、等と)をして頂けないでしょうか?
というのも、mumbleでググると日本語で最初に出てくるのは、そちらのmumble解説ページです。
ちょくちょくうちのmumbleにも繋がらない繋がらない、と言われて話を聞いてみると1.1.3を入れてる=>なんでそんな古いのを=>ググると出てくる というやりとりを行います。
落とす方が悪いとは思うのですが、出てきてしまって古い物を入れてしまって困ってる人たちが結構な数居そうですので、ご相談に来ました。
@withgod
withgod / gist:1786314
Created February 10, 2012 03:52
sakiryou tweet bookmarklet
javascript:(function(){window.open('https://twitter.com/intent/tweet?text=%2520%2523sakiryou', "_blank", "width=550,height=300")})();
@withgod
withgod / gist:1787468
Created February 10, 2012 07:42
適当
--- function.php
<?php
function exists_custom_field ($field) {
return post_custom($field) != "" ? true : false;
}
?>
---
<?php if (exists_custom_field('imagefield_1')) ?>