Skip to content

Instantly share code, notes, and snippets.

@iyoda
iyoda / casesafe.sh
Created January 26, 2018 07:54 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on macOS (OS X).
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}"
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparseimage}"
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}"
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}"
@iyoda
iyoda / gist:50e8cdcd46e20522bdacf3a90cf3953b
Created January 26, 2018 06:18
Android 6.0.1 (Build M4B30Z) Root for Nexus 5
# Download latest Android image, "hammerhead" for Nexus 5 (GSM/LTE)
https://developers.google.com/android/nexus/images#hammerhead
# Download latest TWRP
https://dl.twrp.me/hammerhead/
# Download latest SuperSu
https://download.chainfire.eu/supersu
Enable USB debugging.
@iyoda
iyoda / gist:4583657
Last active December 11, 2015 09:59
bot
MacOSX 10.8にて
$ brew install jenkins
$ ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
$ brew install selenium-server-standalone
$ ln -sfv /usr/local/opt/selenium-server-standalone/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.selenium-server-standalone.plist
@iyoda
iyoda / emu.user.js
Created December 25, 2012 05:49 — forked from kageroh/emu.user.js
// ==UserScript==
// @name emu.js
// @namespace http://twitter.com/amasawa
// @include http://sp.pf.mbga.jp/*
// @run-at document-start
// ==/UserScript==
(function () {
var script = document.createElement('script');
script.textContent = '\
// ==UserScript==
// @name shingeki.js
// @namespace http://twitter.com/amasawa
// @include http://sp.pf.mbga.jp/12007160*
// @include http://sp.pf.mbga.jp/12008054*
// @include http://sp.pf.mbga.jp/12009496*
// @include http://sp.pf.mbga.jp/12008982*
// @run-at document-start
// ==/UserScript==
@iyoda
iyoda / gist:1113261
Created July 29, 2011 06:14
Install HandlerSocket MacOSX 10.6
./autogen.sh
./configure --with-mysql-source=~/src/mysql-5.5.14 --with-mysql-bindir=/usr/local/bin --with-mysql-plugindir=/usr/local/lib/mysql/plugin
@iyoda
iyoda / gist:1057955
Created July 1, 2011 06:05
Install swfeditor MacOSX 10.6
brew install giflib
tar zxf swfed-0.44.tar.gz
cd swfed-0.44/src
phpize
./configure --with-png-dir=/usr/X11 --with-gif-dir=/usr/local
make
sudo cp modules/swfed.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo vi /etc/php.ini