Skip to content

Instantly share code, notes, and snippets.

@hogelog
hogelog / file0.txt
Created August 11, 2012 11:28
Logbackで設定ファイルを切り替える ref: http://qiita.com/items/a62783b0e31a66d33303
package org.hogel;
import java.io.FileNotFoundException;
import java.net.URL;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.joran.spi.JoranException;
@hogelog
hogelog / file0.txt
Created August 2, 2012 14:19
nginxで404の時だけ別サーバから取得してくる ref: http://qiita.com/items/812c028888c1b460f426
server {
listen 8888;
server_name localhost;
location / {
root /tmp/data;
error_page 404 = @data;
}
location @data {
@hogelog
hogelog / unpack.js
Created March 13, 2012 04:29
limechat hoge script
function Unpack(alphabets) {
var pack = {
base: alphabets.length,
unpack: function(enc)
{
if (enc.length == 0)
return "";
var base = alphabets.length;
var packs = enc.split(" ");
@hogelog
hogelog / .bashrc
Created March 11, 2012 12:08
dotfiles
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
if [ $TTY ] ; then
stty stop 'undef'
fi
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
if [ $TTY ] ; then
stty stop 'undef'
fi
@hogelog
hogelog / .gitignore
Created January 7, 2012 17:28
wicket-test
.*
@hogelog
hogelog / README
Created December 19, 2011 18:04
snapshots
snapshot images.
@hogelog
hogelog / camera.png
Created October 6, 2011 16:54
simple camera application
camera.png
@hogelog
hogelog / fixtext.css
Created August 17, 2011 16:52
stylish
@namespace url(http://www.w3.org/1999/xhtml);
/** base setting **/
@-moz-document domain(mai-net.net),
url-prefix(http://suimin5088.blog58.fc2.com/),
url-prefix(http://www.geocities.jp/kazuya_hamaguchi/),
url-prefix("http://rbp53.nobody.jp/"),
url-prefix(http://sacks.tuzikaze.com/ss/),
url-prefix(http://shrine-of-miya.hp.infoseek.co.jp/),
url-prefix(http://j-mito.hp.infoseek.co.jp/),
@hogelog
hogelog / cdd
Created August 12, 2011 03:33
cdd
#!/bin/sh
cdddir=$HOME/.cdd
cddfile=$cdddir/cddfile
cddtmp=$cdddir/cddtmp
cddmax=20
function cdd_init() {
if [ ! -d $cdddir ]; then
mkdir $cdddir