Skip to content

Instantly share code, notes, and snippets.

View hangingman's full-sized avatar
🦙

hangedman hangingman

🦙
  • Kanagawa, Japan
  • 08:40 (UTC +09:00)
View GitHub Profile
@hangingman
hangingman / bootpack.ld
Created November 23, 2016 05:50
object から .hrb 形式変換のためのリンカスクリプト(from: http://seesaawiki.jp/w/yamaneko1144/)
/*入力オブジェクトファイル
入力ファイルを増やすときはここに追加*/
INPUT(bootpack.o nasmfunc.o)
/*出力オブジェクトファイル*/
OUTPUT(bootpack.bim)
/*エントリーポイントファイル
これを設定するとstartupルーチンが.textセクションの先頭にくる*/
STARTUP(startup.o)
@hangingman
hangingman / bootpack.ld
Created June 26, 2016 16:03 — forked from uchan-nos/bootpack.ld
GNU LD linker script for BitNOS (HariboteOS-like operating system)
OUTPUT_FORMAT("binary")
ENTRY(KernelMain)
HEAP_SIZE = 0;
MMAREA_SIZE = 0;
__ctors = ADDR(.ctors);
__ctors_count = SIZEOF(.ctors) / 4;
SECTIONS
/*
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:
/*
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:
@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)
#!/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
SLF4J Bug With Scalatra #1256 は
https://github.com/sbt/sbt/issues/1256
おそらくxsbt-scalate-generateの問題
https://github.com/backchatio/xsbt-scalate-generate
SLF4Jのライブラリを依存関係に追加してやる必要がある
#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)
{
# chef-foltia
アニメ録画用ソフトウェアfoltiaのインストール用cookbook
# Install with Vagrant
```
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus
$ cd chef-foltia
$ vagrant up
@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'