-
ロケールの設定をちゃんとやる
LANG
がja_JP.UTF-8
じゃないとnanoとかが文字化けするっぽい -
フレームバッファが使えるかどうかチェック
/proc/fb
があればOKらしい -
fbtermをインストール libx86のインストールが推奨されてるけど多分要らない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generator-settings= | |
allow-nether=true | |
level-name=world | |
enable-query=false | |
allow-flight=false | |
server-port=25565 | |
level-type=DEFAULT | |
enable-rcon=false | |
level-seed= | |
server-ip= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
import threading | |
import urllib | |
import time | |
import re | |
import yaml | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# save this code as a application in the AppleScript Editor. | |
# | |
set VMNAME to "############ VM NAME ############" | |
set SSH_PORT to "############ SSH_PORT ############" | |
tell application "Terminal" | |
do script "VBoxManage startvm '" & VMNAME & "'" in window 1 | |
activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
import threading | |
import time | |
import re | |
cmd = "java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /tmp | |
mkdir build_omake && cd build_omake | |
curl -O http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.gz | |
tar xf omake-0.9.8.5-3.tar.gz | |
curl -O https://gist.github.com/raw/63e85213323a7c034145/9ea9db61c59e9b44f6de8aff9392fdc25540cb3b/build_omake-0.9.8.5.patch | |
patch -p0 < build_omake-0.9.8.5.patch | |
cd omake-0.9.8.5 | |
make bootstrap | |
./omake-boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBOX_ARCH="Arch Linux x64" | |
alias arch="VBoxManage startvm '$VBOX_ARCH'; | |
sleep 3; | |
osascript -e 'tell application \"System Events\" to set visible of process \"VirtualBox VM\" to false'; | |
ssh localhost -p 1234" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 localhost ESMTP Postfix (Ubuntu) | |
HELO localhost | |
250 localhost | |
MAIL FROM: root@localhost | |
250 2.1.0 Ok | |
RCPT TO: seiya@localhost | |
250 2.1.5 Ok | |
DATA | |
354 End data with <CR><LF>.<CR><LF> | |
From: root@localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<p style="font-weight:bold" id="debug"></p> | |
<textarea style="font-size:15px;"></textarea> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $ wget http://bit.ly/setup_mf_ubuntu_server -O - | sh | |
# | |
cd | |
sudo ntpdate ntp.nict.jp | |
sudo apt-get update |
NewerOlder