loadkeys jp106
wpa_passphrase ssid_name passphrase > /etc/wpa_supplicant/wpa_supplicant.conf
# vi /etc/wpa_supplicant/wpa_supplicant.conf
# して scan_ssid=1 を追記
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhcpcd wlan0
passwd
systemctl start sshd
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
alter table `isu_condition` add column (`condition_level` VARCHAR(20) NOT NULL); | |
-- alter table `isu_condition` add index (`jia_isu_uuid`, `timestamp`, `condition_level`); | |
alter table `isu_condition` add index (`jia_isu_uuid`, `timestamp`); | |
-- alter table `isu` add index (`character`); | |
DROP TABLE IF EXISTS `last_isu_condition`; | |
CREATE TABLE `last_isu_condition` ( | |
`id` bigint(20) NOT NULL, | |
`jia_isu_uuid` char(36) NOT NULL, | |
`timestamp` datetime NOT NULL, |
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
#!python | |
# coding: utf-8 | |
import json | |
import os | |
import sys | |
def main(): | |
""" |
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
// ==UserScript== | |
// @name Swap google search language en / any | |
// @namespace https://netmark.jp/userscript/www.google.com | |
// @version 0.1 | |
// @description switch search language en or all | |
// @author Toshiaki Baba | |
// @match https://www.google.com/search?* | |
// @grant all | |
// ==/UserScript== |
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
""" config """ | |
import re | |
from xkeysnail.transform import K | |
from xkeysnail.transform import Key | |
from xkeysnail.transform import define_keymap | |
from xkeysnail.transform import define_modmap | |
from xkeysnail.transform import define_multipurpose_modmap | |
define_modmap({ | |
Key.CAPSLOCK: Key.LEFT_CTRL |
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
add mod3 = Muhenkan |
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
EDITOR=tee sudo -E bash -c '( echo "[Service]" ; echo "ExecStart=" ; echo "ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375" ) | systemctl edit docker.service' |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
task := make(chan string) | |
taskquit := make(chan bool) |
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
# GCEでUbuntu 15.04 | |
sudo su - | |
apt-get update && apt-get -y install ansible jq | |
git clone https://github.com/isucon/isucon5-qualify.git | |
cd isucon5-qualify/ | |
cd gcp/bench/ansible/ | |
sed -i 's/- copy/#- copy/' 00_devel.yml | |
sed -i 's@key_file=.*@@' 06_deploy_bench_tool.yml | |
sed -i 's@repo=.*@repo=https://github.com/isucon/isucon5-qualify.git@' 06_deploy_bench_tool.yml |
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
$("#enqueue_form").submit(function(event) { | |
event.preventDefault(); //cancel event | |
var form_data = new FormData($("#enqueue_form").get(0)); | |
$.ajax({ | |
url: "/bench", | |
type: "POST", | |
data : form_data, | |
dataType: "json", | |
processData: false, | |
contentType: false, |
NewerOlder