Skip to content

Instantly share code, notes, and snippets.

Tomohiro Kashiwada kikairoya

Block or report user

Report or block kikairoya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:922f776094e65c51ab6c
(cd /home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/ && /usr/bin/python2.7 ./gyp_uv.py -f make -Dtarget_arch=x64 -D ninja -DOS=linux -Goutput_dir=/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv --generator-output /home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv)
['-f', 'make', '-Dtarget_arch=x64', '-D', 'ninja', '-DOS=linux', '-Goutput_dir=/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv', '--generator-output', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/uv.gyp', '-I', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/common.gypi', '--depth=.', '-Dgcc_version=48', '-Dclang=0', '-Dhost_arch=x64', '-Duv_library=static_library', '-Dcomponent=static_library']
Traceback (most recent call last):
File "./gyp_uv.py", line 102, in <
@kikairoya
kikairoya / open-vm-tools_PKGBUILD
Created Jan 18, 2014
AURのopen-vm-tools-dkmsが最近のkernelで動かなくなってるからUbuntuからパチってきた
View open-vm-tools_PKGBUILD
# patch -p1 <$srcdir/dkms-conf.patch
# $Id: PKGBUILD 102331 2013-12-09 03:38:37Z bisson $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Krzysztof Raczkowski <raczkow@gmail.com>
pkgbase=open-vm-tools
pkgname=('open-vm-tools' 'open-vm-tools-dkms')
epoch=6
pkgver=9.4.0
_pkgsubver=1280544
View gist:8489386
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDv94WPz35cGOR+OSae2rW+VLcx0L0stOAPZy8Ft1Ci6dzTNfKRhn1vHLIy85isZGf8r+ZsF04FGA7arcAuRxX5Zt6Gx10JLUN1PBRFEaoHKvKfYc/CezJlIINLXSOyiT8lUX6YQ7fYA4W4fDXWaat2UWdOQIh97sZngUxpWtknQ6lL4VqQaz2y5n0lHyCtBgGGEsExBe0haY2aLRykgygQfX8QufR7T5/6odjClRNLPdWAagg6fL/6ltTq6d1d7q8AQyxbPT6vvCtH+Vk3+VPGKBz+0bQWNI7jpnOgdLAK5e7wxQZ7OertXESfsGw/imBb+MM8UiRnuJVi4RsZjceH kikairoya@x240
@kikairoya
kikairoya / wand
Last active Dec 31, 2015
script for using wandbox instead of local compiler
View wand
#!/usr/bin/python
from sys import argv, version_info
import json
from urllib2 import urlopen, Request
def print_usage():
print("usage: {} compiler {{options}} srcfile".format(argv[0]))
print(" {} --list-compilers".format(argv[0]))
print(" {} --list-options compiler".format(argv[0]))
View maybe.l
(defun fmap (f m)
(funcall (get (si:*structure-definition-name (si:*structure-definition m)) 'fmap) f m))
(defun >>= (m f)
(funcall (get (si:*structure-definition-name (si:*structure-definition m)) '>>=) m f))
(defun >> (m a)
(funcall (get (si:*structure-definition-name (si:*structure-definition m)) '>>) m a))
(defstruct maybe
has-value
View bind.l
(defun resolve-bind-args (bindexpr args)
(mapcar
(lambda (x)
(cond
((bind-subexpression-p x) (call (resolve-bind-args x args)))
((bind-placeholder-p x) (nth (1- (bind-placeholder-position x)) args))
(t x)))
(bind-subexpression-bounds bindexpr)))
(defmacro bind (&rest bounds)
View siteinit.l
; 雀の往来
(require "isearch")
(require "ni/setup")
(require "wandbox")
(ni-autoload)
(setq-default backup-by-copying t)
(setf
(symbol-function 'backward-delete-char-untabify-or-selection) #'delete-backward-char-or-selection
@kikairoya
kikairoya / wandbox.l
Last active May 29, 2019
post to wandbox from xyzzy
View wandbox.l
(eval-when (:compile-toplevel :load-toplevel :execute)
(require 'xml-http-request)
(require 'json))
(defpackage :wandbox
(:use :lisp :editor))
(in-package "wandbox")
(export '(post-wandbox-region post-wandbox post-wandbox-string show-compiler-list show-compiler-options))
View open-vm-tools-linux-3.10.patch
diff --git a/modules/linux/dkms.conf b/modules/linux/dkms.conf
index 3ed77f9..263921f 100644
--- a/modules/linux/dkms.conf
+++ b/modules/linux/dkms.conf
@@ -1,39 +1,35 @@
PACKAGE_NAME=open-vm-tools
PACKAGE_VERSION=2013.04.16
MAKE_CMD_TMPL="make VM_UNAME=\$kernelver \
- MODULEBUILDDIR=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
+ MODULEBUILDDIR=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build \
@kikairoya
kikairoya / geocities.jp
Created Aug 5, 2013
kill geocities' ad window
View geocities.jp
// ==UserScript==
// @name geocities
// @include http://www.geocities.jp/*
// ==/UserScript==
(function () {
document.addEventListener('DOMContentLoaded', function () {
var n = document.getElementById("y_gc_div_adcntr");
if (n) n.parentNode.removeChild(n);
}, false);
You can’t perform that action at this time.