Skip to content

Instantly share code, notes, and snippets.

View mamemomonga's full-sized avatar
🏠
Working from home

Shotaro Takahashi mamemomonga

🏠
Working from home
View GitHub Profile
@mamemomonga
mamemomonga / create_localized_dir.pl
Created July 9, 2013 02:58
OSX用 日本語ローカライズされたディレクトリを作成
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
binmode(STDIN,':utf8');
binmode(STDOUT,':utf8');
use File::Path;
# 参考
# http://msyk.net/macos/jaguar-localize/
@mamemomonga
mamemomonga / ExponentialEndlessSummer.js
Last active December 20, 2015 06:59
ExponentialEndlessSummer.js for Reblog Machine
// vim:set fenc=utf-8 ff=unix ft=javascript:
/**
* @preserve
* ExponentialEndlessSummer.js for Reblog Machine
* https://gist.github.com/mamemomonga/6090387
* from "Exponential Endless Summer 2014" by saitamanodoruji
* http://tumblr.g.hatena.ne.jp/saitamanodoruji/20140831/1409496698
*/
'use strict';
@mamemomonga
mamemomonga / hello_cygwin64perl.cmd
Last active December 21, 2015 05:18
Windows7 x64 バッチファイルからcygwin64 PerlでHello World!
@echo off
rem ---------------------------------------------------------------------------
rem Windows7 x64 バッチファイルからcygwin64 PerlでHello World!
rem Shift_JIS(cp932)で保存すること
rem ---------------------------------------------------------------------------
set OPATH=%PATH%
set PATH=C:\cygwin64\bin;%PATH%
for /F "usebackq" %%s in (`cygpath -u %0`) do SET UPATH=%%s
perl -x -S %UPATH% %*
@mamemomonga
mamemomonga / hello_activeperl.cmd
Last active December 21, 2015 05:18
Windows7 x64 バッチファイルからActive Perl(64bit)でHello World!
@echo off
rem ---------------------------------------------------------------------------
rem Windows7 x64 バッチファイルからActive Perl(64bit)でHello World!
rem Shift_JIS(cp932)で保存すること
rem ---------------------------------------------------------------------------
set OPATH=%PATH%
set PATH=C:\Perl64\bin;%PATH%
perl -x -S %0 %*
goto endofperl
@rem ';
@mamemomonga
mamemomonga / ssl-valid-check.pl
Created February 9, 2016 03:23
httpsのサーバ証明書の有効期限をチェックするツール
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use feature 'say';
binmode(STDOUT,'utf8:');
use DateTime;
my $domain=$ARGV[0] || '';
@mamemomonga
mamemomonga / Raspbian.md
Last active February 29, 2016 14:54
Raspbian Jessieシリアルケーブル接続によるセットアップメモ

更新: 2016/02/29

Raspbian Jessie(Debian 8)セットアップメモ

Raspberry Pi 2のRaspbianを設定する モニタに接続せずシリアルケーブル接続での設定メモです。

ダウンロード

Raspbian jessie liteを使う Raspbian

@mamemomonga
mamemomonga / Setup_Cygwin_32bit.md
Created March 18, 2016 01:23
Cygwinの簡単セットアップ 32bit版

Cygwinの簡単セットアップ 32bit版(2015/10/30)

C:\cygwin\setup を作る

https://www.cygwin.com/ から setup-x86.exe (32-bit installation) を取得し、C:\cygwin\setup に入れる。

管理者モードでコマンドプロンプトを立ち上げる。

以下のコマンドをペースト

@mamemomonga
mamemomonga / TumblrActivityThumbnailEnlarger.user.js
Last active March 30, 2016 09:49
[Firefox+Greasemonkey, Chrome] Tumblr Activityページの「最新メモ」サムネイル画像が大きくなります
// ==UserScript==
// @name TumblrActivityThumbnailEnlarger
// @description Tumblr Activityページの「最新メモ」サムネイル画像が大きくなります
// @namespace https://gist.github.com/mamemomonga/11439dd4e20ed852ab78
// @include http://www.tumblr.com/blog/*/activity
// @include https://www.tumblr.com/blog/*/activity
// @version 1.01
// @grant none
// ==/UserScript==
@mamemomonga
mamemomonga / invoke-php.pl
Last active May 11, 2016 09:54
phpビルド補助ツール
#!/usr/bin/env perl
# http://blog.mamemomonga.com/2016/05/lamp-php-debian8.html
use utf8;
use feature 'say';
use strict;
use warnings;
binmode(STDOUT,':utf8');
binmode(STDIN, ':utf8');