Skip to content

Instantly share code, notes, and snippets.

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

Hiroshi Hatake cosmo0920

🏠
Working from home
View GitHub Profile
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import Data.Map
Prelude Data.Map> let t = insert 5 "e" $ singleton 4 "d"
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Prelude Data.Map> t
--- include/ruby/win32.h.orig 2015-07-16 17:52:17.882015422 +0900
+++ include/ruby/win32.h 2015-07-16 17:52:52.138016369 +0900
@@ -790,6 +790,13 @@ rb_w32_pow(double x, double y)
return powl(x, y);
}
#elif defined(__MINGW64_VERSION_MAJOR)
+#ifndef _PC_64
+#define _PC_64 0x00000000
+#endif
+
% brew install java
Error: No available formula for java
@cosmo0920
cosmo0920 / gist:c497e31692b03f1b8df6
Created June 24, 2015 15:39
Jenkins stack trace: embulk 0.6.12
A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
Stack trace
java.io.IOException: {"message":"You need at least read:org scope or user scope to list your organizations.","documentation_url":"https://developer.github.com/v3/orgs/#list-your-organizations"}
at org.kohsuke.github.Requester.handleApiError(Requester.java:496)
at org.kohsuke.github.Requester._to(Requester.java:245)
at org.kohsuke.github.Requester.to(Requester.java:191)
at org.kohsuke.github.GitHub.getMyOrganizations(GitHub.java:331)
at org.jenkinsci.plugins.GithubAuthenticationToken.<init>(GithubAuthentication
masterでビルドします。 ワークスペース: /Users/cosmo/.jenkins/jobs/curl-mroonga-nightly/workspace
Fetching changes from the remote Git repository
Checking out Revision b403c4907c10b2f57ab62abed93a7a1035d74442 (refs/remotes/origin/master)
[workspace] $ /bin/sh -xe /var/folders/sb/3sp1k00x7m9dqhpj35j276940000gn/T/hudson6391962811256861603.sh
+ cd /Users/cosmo/.jenkins/jobs/curl-mroonga-nightly/workspace
+ bash curl-mroonga-daily.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
win8.1vm でビルドします。 ワークスペース: C:\jw\workspace\dmbvc2013
Fetching changes from the remote Git repository
Checking out Revision c3f7c0161dd8709cb6d0de6f33021495f5724d08 (refs/remotes/mrnbuild/master)
[dmbvc2013] $ powershell.exe "& 'C:\Users\cosmo\AppData\Local\Temp\hudson1594888627552714923.ps1'"
Use Mroonga 5.03 nightly source
extract Mroonga 5.03 zip
get Mroonga batfile for windows
prepare Mroonga 5.03 building
% sbt
[info] Loading project definition from /Users/cosmo/Github/MyFleetGirls/server/project
Reference to undefined setting:
*:twirlTemplateImports from *:twirlTemplateImports (/Users/cosmo/Github/MyFleetGirls/server/build.sbt:38)
at sbt.Init$class.Uninitialized(Settings.scala:265)
at sbt.Def$.Uninitialized(Def.scala:10)
at sbt.Init$class.delegate(Settings.scala:191)
at sbt.Def$.delegate(Def.scala:10)
diff --git a/gobject-introspection/test/test-struct-info.rb b/gobject-introspect
ion/test/test-struct-info.rb
index e3eed77..067bfbc 100644
--- a/gobject-introspection/test/test-struct-info.rb
+++ b/gobject-introspection/test/test-struct-info.rb
@@ -31,7 +31,9 @@ class TestStructInfo < Test::Unit::TestCase
end
def test_n_methods
- assert_operator(@info.n_methods, :>=, 62)
# ruby-gnome2/gtk3/sample/tmp/sample-headerbar.rb
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..", "..")
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
glib_base = File.join(ruby_gnome2_base, "glib2")
atk_base = File.join(ruby_gnome2_base, "atk")
cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
pango_base = File.join(ruby_gnome2_base, "pango")
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
@cosmo0920
cosmo0920 / cross-build-rroonga.sh
Created September 2, 2014 14:59
Rroongaクロスコンパイル用スクリプト @ WIP
#!/bin/bash
apt-get install git build-essential ruby mingw-w64
readonly RUBY19="1.9.3-p547"
readonly RUBY20="2.0.0-p353"
readonly RUBY21="2.1.2"
readonly CROSS_TERGET="1.9.3:2.0.0:2.1.2"
if [ ! -d ~/.rbenv ]; then