Skip to content

Instantly share code, notes, and snippets.

View uzulla's full-sized avatar
🚧
WORK,WORK,WORK.

uzulla / Junichi Ishida uzulla

🚧
WORK,WORK,WORK.
View GitHub Profile
@thwarted
thwarted / sshpub-to-rsa
Created June 14, 2011 09:12
converts an openssh RSA public key into a format usable by openssl rsautl (if you don't have openssh 5.6 or later with ssh-keygen PEM export format)
#!/usr/bin/env python
# with help and inspiration from
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure)
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html
import sys
import base64
import struct
@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;
@rummelonp
rummelonp / 0-gif.md
Created February 4, 2012 16:25
GIF アニメ分解して Canvas で再生するやつ

GIF アニメ分解して Canvas で再生するやつ

GifVJ
これがクールだったのでどうにかこれを JavaScript で作れないか頑張ってみた(頑張ってる途中)

実験途中経過報告

Burrn!
ランダムで GIF アニメを全画面表示
Enter で再生/停止

@makamaka
makamaka / OXGame.pm
Created May 21, 2012 04:51
やったー Yaircで○×ゲームできたよー
package Yairc::Plugin::OXGame;
=pod
○×ゲーム
3×3のマスに○と×を交互に置いて
タテ・ヨコ・ナナメ3連続になった方の勝ち
タグは #ox
まずはTAGSにoxを追加しておきましょう。
@riywo
riywo / crontab_riywo
Created May 25, 2012 15:17
perlbrew+extlibなアプリのcronとdaemontools
* * * * * /home/riywo/MyApp/env perl -e 'print "$@"' > /tmp/hoge 2>&1
@equinox79
equinox79 / newphoto2pyazo.pl
Created September 7, 2012 07:56
指定されたディレクトリを監視して画像ファイルがうpされるとpyazoに投稿
#!/usr/bin/env perl
use strict;
use warnings;
use File::Monitor::Lite;
use HTTP::Request::Common;
use IO::File;
use LWP::UserAgent;
my $upload_path = '/foo/bar'; # ここを直す
@yoku0825
yoku0825 / table2slowlog.pl
Created October 22, 2012 08:06
convert mysql.slow_log -> slow.log
this script is moved to Github.
https://github.com/yoku0825/my_slowlog/blob/master/table2slowlog.pl
@hayajo
hayajo / changelog_en.md
Last active May 3, 2024 08:29
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@kawakawa
kawakawa / gist:4199931
Created December 4, 2012 02:19
VbLiteUnit_Test_ForMat
Option Explicit
'VbLiteUnitを読み込みます
Implements ITestCase
Private Function ITestCase_TestCaseInstance() As ITestCase
Dim objResult As New ClassTest '自テストClass名を記載
Debug.Assert TypeName(objResult) = TypeName(Me)
Set ITestCase_TestCaseInstance = objResult
End Function
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 17, 2024 02:53
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: