Skip to content

Instantly share code, notes, and snippets.

View hangingman's full-sized avatar
🌶️

hangedman hangingman

🌶️
  • Kanagawa, Japan
  • 18:37 (UTC +09:00)
View GitHub Profile
@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 / 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 / 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 / gist:9d548ecda20ec41b53fb
Created March 31, 2015 12:32
Berkshelf error log
1 Generated at 2015-03-31 21:19:29 +0900
2 Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/validation.pem, which you told me to use to sign requests!
3 /usr/lib/ruby/vendor_ruby/chef/http/authenticator.rb:78:in `rescue in load_signing_key'
4 /usr/lib/ruby/vendor_ruby/chef/http/authenticator.rb:68:in `load_signing_key'
5 /usr/lib/ruby/vendor_ruby/chef/http/authenticator.rb:38:in `initialize'
6 /usr/lib/ruby/vendor_ruby/chef/rest.rb:66:in `new'
7 /usr/lib/ruby/vendor_ruby/chef/rest.rb:66:in `initialize'
8 /usr/lib/ruby/vendor_ruby/chef/api_client/registration.rb:125:in `new'
9 /usr/lib/ruby/vendor_ruby/chef/api_client/registration.rb:125:in `http_api'
10 /usr/lib/ruby/vendor_ruby/chef/api_client/registration.rb:92:in `create'
# chef-foltia
アニメ録画用ソフトウェアfoltiaのインストール用cookbook
# Install with Vagrant
```
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus
$ cd chef-foltia
$ vagrant up
#include <iostream>
#include <fstream>
#include <iterator>
#include <map>
#include <algorithm>
#include <functional>
// from: http://blog.sarabande.jp/post/64272610753
size_t utf8_strlen(std::string str)
{
SLF4J Bug With Scalatra #1256 は
https://github.com/sbt/sbt/issues/1256
おそらくxsbt-scalate-generateの問題
https://github.com/backchatio/xsbt-scalate-generate
SLF4Jのライブラリを依存関係に追加してやる必要がある
#!/bin/bash
mkdir -p ~/.local/share/fonts/
cd ~/.local/share/fonts/
wget http://sicklylife.at-ninja.jp/memo/fake_meiryo.zip
unzip ./fake_meiryo.zip
rm ./fake_meiryo.zip
fc-cache -fv
@hangingman
hangingman / gist:5247c5e312edcd812028
Created July 9, 2015 13:23
ensime-0.1.6 + scalariform 0.1.4
Using reference source roots: Set()
Using target directory: /home/hiroyuki/git/p2pScalaProto/target/scala-2.10/classes
Using test target directory: /home/hiroyuki/git/p2pScalaProto/target/classes
Using formatting preferences: Map('doubleIndentClassDeclaration -> true)
Configuration Format Error: Expecting a list of string values at key: :compiler-args
java.lang.NoSuchMethodError: scala.Predef$ArrowAssoc$.extension$$minus$greater(Ljava/lang/Object;Ljava/lang/Object;)Lscala/Tuple2;
at scalariform.formatter.preferences.FormattingPreferences.setPreference(IFormattingPreferences.scala:36)
at org.ensime.config.ProjectConfig$$anonfun$8.apply(ProjectConfig.scala:808)
at org.ensime.config.ProjectConfig$$anonfun$8.apply(ProjectConfig.scala:797)
at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:144)
/*
Copyright (c) 2006 Tim Kosse
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions: