Skip to content

Instantly share code, notes, and snippets.

View hangingman's full-sized avatar
🌶️

hangedman hangingman

🌶️
  • Kanagawa, Japan
  • 17:20 (UTC +09:00)
View GitHub Profile
@hangingman
hangingman / gist:5453060
Last active December 16, 2015 14:59
Debian Wheezy上でWindows-x64向けバイナリを作成する

Debian Wheezy上でWindows-x64向けバイナリを作成する

・基本的にダイナミックリンクライブラリを作成
・x86_64-w64-mingw32をi686-w64-mingw32に置き換えれば、Windows-x32向けバイナリができるはずです

##クロスコンパイルの準備 Debianのパッケージに入っているMinGWは古いので、MinGW-w64のページから直接ダウンロードする
あまり新しいgccだと依存関係の問題で実行ができない場合があるので、Personal部分にあるgcc-4.7ぐらいを使うといいと思います
私はrubenvb氏ビルドのものを使用しました。

x32

@hangingman
hangingman / gist:f7ad529b6e3664452a29
Last active January 16, 2016 08:27
Wineのビルド
@hangingman
hangingman / gist:6078656
Created July 25, 2013 10:50
curlpp sample code
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <curlpp/cURLpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
#include <curlpp/Infos.hpp>
@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]
@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: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: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/
#!/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: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
@hangingman
hangingman / janeclone.bat
Created January 12, 2015 11:46
Powershell呼び出し用バッチファイル
powershell Set-ExecutionPolicy RemoteSigned
powershell %~dp0janeclone.ps1
powershell Set-ExecutionPolicy Restricted