| 更新: | 2022-03-18 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2022.1 |
| URL: | http://voluntas.github.io/ |
This file contains hidden or 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
| deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse | |
| deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse | |
| deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse |
This file contains hidden or 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
| go run $(go env GOROOT)/src/crypto/tls/generate_cert.go --host localhost |
This file contains hidden or 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
| ## | |
| ## Syntax | |
| ## | |
| # Define a type: | |
| # | |
| # <MessageName>: | |
| # <fieldIndex>: [<fieldName>, <type>, <options...>] | |
| # ... | |
| # | |
| # Typedef (type alias): |
This file contains hidden or 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 hidden or 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 python | |
| # Copyright (c) Twisted Matrix Laboratories. | |
| # See LICENSE for details. | |
| from twisted.internet.protocol import ClientFactory | |
| from twisted.protocols.basic import LineReceiver | |
| from twisted.internet import reactor | |
| import sys |
This file contains hidden or 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 os | |
| import json | |
| import httplib | |
| import time | |
| VERSION = "0.1.0" | |
| class ClientSession: | |
| def __init__(self, server, user, source=None, catalog=None, schema=None, debug=False): | |
| self.server = server |
This file contains hidden or 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
| #!perl | |
| use 5.10.0; | |
| use strict; | |
| use warnings; | |
| my $localhost = join '|', map { quotemeta } 'localhost', '127.0.0.1'; | |
| my $s = "http://localhost/foo http://127.0.0.1/bar http://127_0_0_1/foo/bar/baz"; | |
| my @matched = $s =~ m{ http:// (?:$localhost) / \S+ }xg; |
This file contains hidden or 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
| # Call virtualenvwrapper's "workon" if .venv exists. This is modified from-- | |
| # http://justinlilly.com/python/virtualenv_wrapper_helper.html | |
| # which is linked from-- | |
| # http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory | |
| check_virtualenv() { | |
| if [ -e .venv ]; then | |
| env=`cat .venv` | |
| echo "Found .venv in directory. Calling: workon ${env}" | |
| workon $env | |
| fi |
This file contains hidden or 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 ( | |
| "labix.org/v1/pipe" | |
| "log" | |
| ) | |
| func main() { | |
| output, err := pipe.CombinedOutput( | |
| pipe.Line( |
NewerOlder