Skip to content

Instantly share code, notes, and snippets.

View xtetsuji's full-sized avatar

OGATA Tetsuji xtetsuji

View GitHub Profile
@tokubass
tokubass / dispatch.pl
Created May 31, 2016 05:16
mod_perlのハンドラーメモリリーク例
use strict;
use warnings;
my $dis = MyDispatch->new;
$dis->print;
package MyDispatch {
use CGI;
@sudocode
sudocode / export-evernotes.applescript
Created October 11, 2015 07:37
JXA script for exporting Evernotes to Apple Notes
/* Developed by Daniel Park (github.com/sudocode).
*
* Free for personal or commercial use, with or without modification.
* No warranty is expressed or implied.
*/
var App = Application.currentApplication(),
Evernote = Application('Evernote'),
Notes = Application('Notes')
@eligor13
eligor13 / twpicdl.sh
Created September 5, 2014 01:52
Twitpic whole images downloader for mac
#!/bin/sh
# Modified by Stan Schwertly to download locally rather than to send to Posterous.
# Github: http://github.com/Stantheman/Twitpic-Backup
# Copyright 2010 Tim "burndive" of http://burndive.blogspot.com/
# This software is licensed under the Creative Commons GNU GPL version 2.0 or later.
# License informattion: http://creativecommons.org/licenses/GPL/2.0/
# This script is a derivative of the original, obtained from here:

#WindowsでPHP開発すると生きるのがつらいのを軽減する方法 Web PIと WebMatrix を使いましょう。ApacheはやめてIISにしましょう。

つらみが解決されるか?というと、そんなことはないでしょうね。 そのたびに、「××がやりたいだけなのにできない○○なんて糞」と大声で言えば、多量のノイズと少量の有益な情報が速やかに集まるので、それはそれでいいんじゃないのかと思います。ストレス解消にもなるし、DIS上等ですよね。

(こっちにも追記) こんな日本語ドキュメントがあるんだから、MSには金あるよねー。PHP on Windows ガイドライン

@ytnobody
ytnobody / hachiojipm-26.md
Created June 18, 2013 03:46
ytnobody flavored markdown2impress.pl - support image syntax
@ysasaki
ysasaki / asset-middleware.md
Last active December 18, 2015 07:29
JavaScript, CSS周りのPlack::Middleware::*のまとめ
  • Plack::Middleware::Compile
    • coffee, sass, less等をcompileするけど、自分で設定をごりごり書く
    • concatはしてくれない
  • Plack::Middleware::StaticShared
    • 一番良い感じ
    • versioningとcacheにも対応
    • URLが独特で気持ち悪い ./shared.js:v1:/js/foolib.js,/js/barlib.js
    • URLでconcatするファイルを指定できるので、複数のパターンでconcatすることもできる
    • concatはurlから自動で行う
  • minifyは自分でfilterを設定する必要あり
@makamaka
makamaka / yancha_ircd.pl
Created May 30, 2013 16:19
yanchaのircなアレの実験に使ったコード
use strict;
use warnings;
use feature 'say';
use AE;
use AnyEvent::IRC::Server;
use AnyEvent::IRC::Util;
use Getopt::Long;
use Yancha::Client;
use LWP::UserAgent;
use AnyEvent::IRC::Client;
#!/usr/bin/env bash
# shellcheck disable=SC2016
#
# plenvsetup http://is.gd/plenvsetup
# Tue Jan 7 17:29:22 JST 2020 v0.06 by ytnobody
#
set -e
die () {
@zarigani
zarigani / rec_radiko.sh
Last active October 14, 2016 11:49 — forked from saiten/rec_radiko.sh
認証部分と録音部分に大別 -aオプションを追加(エリア情報を取得) -oオプションを拡張(ディレクトリ名とファイル名の自由度を高める) オプションを設定する仕様に変更 コマンドをフルパスに変更 rm -fの条件判定を削除
#!/bin/sh
# Original1: https://gist.github.com/875864 saiten / rec_radiko.sh
# Original2: http://backslash.ddo.jp/wordpress/archives/1020 http://backslash.ddo.jp/tools/rec_radiko2.txt
# Install: wget swftools rtmpdump ffmpeg http://d.hatena.ne.jp/zariganitosh/20130120/radiko_recoding_again
PATH=$PATH:/usr/local/bin
VERSION=3.0.0.01
# 使い方
@xtetsuji
xtetsuji / maillog-hashnize.pl
Last active October 11, 2022 08:08
enhancement of "pflog" for parsing maillog of postfix 2.3 or higher version.
#!/usr/bin/perl
# "pflog" enhancement for parsing maillog of postfix 2.3 or higher version.
# "pflog" see: http://www.tmtm.org/ruby/pflog/pflog-0.3
use strict;
use warnings;
use Time::Local;
use Getopt::Long;
#use Data::Dumper;