Skip to content

Instantly share code, notes, and snippets.

@miyakawataku
miyakawataku / gist:7540259
Created November 19, 2013 04:18
Launch a VirtualBox VM in the headless mode.
CreateObject("WScript.Shell").Run """C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe"" -s uqbar",0
termcapinfo xterm* 'Co#256:pa#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm:'
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
attrcolor b ".I"
defbce "on"
@miyakawataku
miyakawataku / webrick.sh
Last active August 29, 2015 13:57
Bash function to launch WEBrick HTTP Server
#!/usr/bin/env bash
# vim: et sw=2 sts=2
# Copyright (c) 2014 Miyakawa Taku
#
# 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
# VBoxManage guestproperty set tigermilk "/VirtualBox/GuestAdd/VBoxService/-timesync-set-threshold" 2000
env LANG=C xdg-user-dirs-gtk-update
sudo apt-get update
sudo apt-get install puppet-module-puppetlabs-apt
sudo apt-get install mercurial
@miyakawataku
miyakawataku / opennlpnote.rst
Last active January 25, 2021 09:13
OpenNLPの固有表現抽出器に関する調査