Skip to content

Instantly share code, notes, and snippets.

View yasuyk's full-sized avatar

Yasuyuki Oka yasuyk

  • Chiba, Japan
  • 04:31 (UTC +09:00)
View GitHub Profile
@yasuyk
yasuyk / installing-OpenSTF-in-Ubuntu-14.04.md
Last active August 7, 2021 03:06
Installing OpenSTF in Ubuntu 14.04

How to install OpenSTF in Ubuntu 14.04

  1. Add Add RethinkDB key

     source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
     wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
    
  2. Install packages

sudo apt-get update && sudo apt-get install -y git nodejs nodejs-legacy npm rethinkdb android-tools-adb python autoconf automake libtool build-essential ninja-build libzmq3-dev libprotobuf-dev git graphicsmagick yasm stow

@yasuyk
yasuyk / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yasuyk
yasuyk / 2014-02-05-013410.vagrant-privision-fail.txt
Created February 4, 2014 16:34
flycheck vagrant provision fail
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Error: /Stage[main]/Flycheck::Haskell/Package[haskell-platform]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dp
for gist title
(defun helm-window-init ()
(let* ((wins (cdr (window-list)))
(mapping (mapcar
(lambda (w) (cons (buffer-name (window-buffer w)) w))
wins)))
(if (> (length wins) 1)
;; There are more than 2 windows in this frame.
(setq helm-window-list-cache mapping)
;; There are 2 or fewer windows in this frame.
(call-interactively 'other-window)
@yasuyk
yasuyk / flycheck-javascript-tests-fail
Last active December 31, 2015 18:22
flycheck: All test cases for javascript (flycheck-define-checker/javascript-*) fail. commit when executing test: https://github.com/flycheck/flycheck/commit/b36a1d1df2543707078ca5e7761b5a94e5086ec5
vagrant@precise64:/flycheck$ cask exec ert-runner -p javascript
Loading /flycheck/flycheck...
Running 4 tests (2013-12-18 17:06:15+0000)
Test flycheck-define-checker/javascript-gjslint backtrace:
format(nil)
apply(format nil)
(s-concat (apply (quote format) (nconc (list format-string) args)) "
(ert-runner-print (s-concat (apply (quote format) (nconc (list forma
(let (ad-return-value) (setq ad-return-value (with-no-warnings (appl
message(nil)
@yasuyk
yasuyk / ac-words-dictionary-enable.el
Last active December 28, 2015 10:09
English word completion from words file by auto-complete.el
(defun ac-words-dictionary-enable ()
"Add /usr/share/dict/words to `ac-dictionary-files' for this buffer."
(make-local-variable 'ac-dictionary-files)
(add-to-list 'ac-dictionary-files "/usr/share/dict/words" t)
(add-to-list 'ac-sources 'ac-source-dictionary t))
(dolist (hook '(magit-log-edit-mode-hook
git-commit-mode-hook log-edit-mode-hook
textile-mode-hook markdown-mode-hook gfm-mode-hook
org-mode-hook text-mode-hook))
@yasuyk
yasuyk / open-os-x-terminal-on-edit-server-start.el
Last active December 28, 2015 00:39
Focus Emacs(emacs -nw) on OS X Terminal.app with "Edit with Emacs".
(when (and (eq system-type 'darwin) (eq window-system nil))
(defun open-os-x-terminal ()
(shell-command "open -a /Applications/Utilities/Terminal.app"))
(add-hook 'edit-server-start-hook 'open-os-x-terminal))
@yasuyk
yasuyk / .gitignore
Last active December 19, 2015 07:19 — forked from adamgit/.gitignore
Add Pods directory
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
-W
-Wextra
-Wmissing-field-initializers
-Wignored-qualifiers
-Winitializer-overrides
-Wsemicolon-before-method-body
-Wmissing-method-return-type
-Wsign-compare
-Wunused-parameter
-W#pragma-messages