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
import readline | |
import sqlite3 | |
def print_row(row): | |
print('(' + ', '.join(str(_) for _ in row) + ')') | |
conn = sqlite3.connect(':memory:') | |
c = conn.cursor() | |
while True: |
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/bash | |
# 初回のみ | |
git clone --depth 1 https://github.com/matsuu/vagrant-isucon | |
cd vagrant-isucon/isucon8-qualifier | |
vagrant up bench | |
# ホストアドレスをカンマ区切りで指定 | |
IMAGE_HOST_IP="XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX" |
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/bash | |
VLC="vlc -I dummy" | |
TARGET_DIR="movies" | |
THUMBNAIL_DIR="movies/thumbnails" | |
THUMBNAIL_FMT="jpg" | |
set -eux | |
gen_options() { |
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
{"lastUpload":"2022-03-05T13:56:10.268Z","extensionVersion":"v3.4.3"} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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/bash | |
# 初回のみ | |
git clone --depth 1 https://github.com/matsuu/vagrant-isucon | |
cd vagrant-isucon/isucon6-qualifier | |
vagrant up bench | |
IMAGE_HOST_IP="XXX.XXX.XXX.XXX" | |
vagrant ssh bench -c "sudo -u isucon sh -c 'cd /home/isucon/isucon6q; ./isucon6q-bench -target $IMAGE_HOST_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
#!/bin/bash | |
USERNAME="CHANGE ME" | |
PROVIDER_NAME="virtualbox" | |
ACCESS_TOKEN="CHANGE ME" | |
set -eu | |
if [ $# -ne 3 ]; then | |
cat <<_EOT_ |
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/bash | |
# 初回のみ | |
git clone --depth 1 https://github.com/tyabu12/vagrant-pixiv-isucon2016.git | |
cd vagrant-pixiv-isucon2016 | |
vagrant up bench | |
IMAGE_HOST_IP="XXX.XXX.XXX.XXX" | |
vagrant ssh bench -c "sudo -u isucon sh -c '/opt/go/bin/benchmarker -t http://$IMAGE_HOST_IP -u /opt/go/src/github.com/tyabu12/private-isu/benchmarker/userdata'" |
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/bash | |
# 初回のみ | |
git clone --depth 1 https://github.com/matsuu/vagrant-isucon | |
cd vagrant-isucon/isucon7-qualifier | |
vagrant up bench | |
# ホストアドレスをカンマ区切りで指定 | |
IMAGE_HOST_IP="XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX" |
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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
_ "github.com/go-sql-driver/mysql" |
NewerOlder