Skip to content

Instantly share code, notes, and snippets.

View hangingman's full-sized avatar
🦙

hangedman hangingman

🦙
  • Kanagawa, Japan
  • 19:59 (UTC +09:00)
View GitHub Profile
@hangingman
hangingman / xrossboard_env.sh
Last active August 29, 2015 14:16
mingwクロスコンパイル環境構築スクリプト
#!/bin/bash +x
#
# ※先に、以下のバイナリを $ tar xvf *** -C /usr で展開する
# i686-w64-mingw32-gcc-4.8.0-linux64_rubenvb.tar.xz
# x86_64-w64-mingw32-gcc-4.8.0-linux64_rubenvb.tar.xz
#
MINGW32_CONF="--prefix=/usr/mingw32/i686-w64-mingw32 --build=x86_64-unknown-linux-gnu --host=i686-w64-mingw32 --target=i686-w64-mingw32"
MINGW64_CONF="--prefix=/usr/mingw64/x86_64-w64-mingw32 --build=x86_64-unknown-linux-gnu --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32"
MINGW32_SRC=/usr/local/src/mingw32
@hangingman
hangingman / zip.ps1
Last active August 29, 2015 14:13
Zipファイルの圧縮展開とか
# http://qiita.com/kmr_hryk/items/5dfe87c0035887cbd8e4
function psunzip {
#エクスプローラーのオブジェクトを作成する
$Expcom = New-Object -ComObject Shell.Application
#第一引数のzipファイルパスを登録
$zipFile = $Expcom.NameSpace($args[0])
#第二引数の出力先ディレクトリパスを登録
$tgtDir = $Expcom.NameSpace($args[1])
@hangingman
hangingman / janeclone.ps1
Last active August 29, 2015 14:13
janecloneのPowershell本体
# bakefileの入手先
$bakefileUrl = "https://github.com/vslavik/bakefile/releases/download/v1.2.5.1/bakefile-1.2.5.1_beta-win.zip"
# wxWidgetsの入手先
$wxUrl = "https://github.com/wxWidgets/wxWidgets/archive/WX_3_0_2.zip"
# カレントディレクトリなど
$parentPath = (Split-Path $script:myInvocation.MyCommand.path -parent)
$jcBklPath = "$parentPath\janeclone.bkl"
$bklZipPath = "$parentPath\bakefile.zip"
$bklExePath = "$parentPath\bakefile-1.2.5.1_beta-win\bkl.exe"
@hangingman
hangingman / janeclone.bat
Created January 12, 2015 11:46
Powershell呼び出し用バッチファイル
powershell Set-ExecutionPolicy RemoteSigned
powershell %~dp0janeclone.ps1
powershell Set-ExecutionPolicy Restricted
@hangingman
hangingman / gist:7b7df9ddcb25c43078e1
Last active May 5, 2020 08:38
fswikiの構築自動化スクリプト
#!/bin/bash +x
# launch here fswiki
FSWIKI_SETUP_DIR=/home/www/app
FSWIKI_HOME=$FSWIKI_SETUP_DIR/fswiki
# launch here fswiki static data
DOCUMENT_ROOT=/var/www/html
# static data access path
#!/bin/bash
# http://www.geocities.jp/geo_sunisland/variable.html より
# atmark.sh を改変
# CMカットを実行する
#files=(`ls -1 | grep m2t`)
#for file in ${files[@]}
#do
# ./comskip_wrapper.sh ./comskip.ini $file
@hangingman
hangingman / gist:7888788
Last active December 30, 2015 21:39
Debian GNU/Linux上でwineを使用してJaneStyleから書き込んだ際のパケットキャプチャのログ (ちょっとログが2つにわかれてしまっています…) 書き込んだ内容は 「キャプチャー失敗 ワンチャンある」 表示されたテキストは 「?Lャ?vチャー失?s ワンチャンある」
[printable text]
Lv8d`nrREU@@"#(Rcs
ifi2POST /test/bbs.cgi HTTP/1.0
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 185
Cookie: NAME=; MAIL=sage
Host: 183.181.8.23:9000
Accept: text/html, */*
Referer: http://183.181.8.23:9000/bbs/
@hangingman
hangingman / gist:7888696
Created December 10, 2013 10:38
Debian GNU/Linux上でJDを使用してp2p2chに書き込んだ際のwiresharkのパケットをwritable textでコピーしたもの MESSAGE={...} の部分が書き込み本文。 結果として表示されたテキストは「?Lャ?vチャーするよ」
[Printable text]
Lv8d`nrRE@@"/#(DcCs
ii!POST /test/bbs.cgi HTTP/1.1
Host: 183.181.8.23
Content-Type: application/x-www-form-urlencoded
User-Agent: Monazilla/1.00 JD
Referer: http://183.181.8.23:9000/bbs/
Accept-Encoding: gzip
Connection: close
@hangingman
hangingman / gist:7888474
Created December 10, 2013 10:15
p2p2ch 1.0.3 書き込み時のエラーログ
2013-12-10 19:14:30,425 - [ERROR] - from play in play-akka.actor.default-dispatcher-32
Cannot invoke the action, eventually got an error: java.util.concurrent.TimeoutException: Futures timed out after [50 seconds]
2013-12-10 19:14:30,427 - [ERROR] - from application in play-akka.actor.default-dispatcher-32
! @6gglf5o3l - Internal server error, for (POST) [/test/bbs.cgi] ->
play.api.Application$$anon$1: Execution exception[[TimeoutException: Futures timed out after [50 seconds]]]
at play.api.Application$class.handleError(Application.scala:293) ~[com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]
@hangingman
hangingman / gist:7888399
Created December 10, 2013 10:08
p2p2ch 1.0.3のスタックトレース
2013-12-10 19:06:10,610 - [ERROR] - from application in play-akka.actor.default-dispatcher-33
! @6ggle3ck2 - Internal server error, for (GET) [/bbs/subject.txt] ->
play.api.Application$$anon$1: Execution exception[[NoSuchElementException: None.get]]
at play.api.Application$class.handleError(Application.scala:293) ~[com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]
at play.api.DefaultApplication.handleError(Application.scala:399) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$12$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:165) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$12$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:162) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]