Skip to content

Instantly share code, notes, and snippets.

View noda-sin's full-sized avatar
😀
Happy

Noda Shimpei noda-sin

😀
Happy
View GitHub Profile
@noda-sin
noda-sin / unittest_result.txt
Last active February 9, 2021 15:21
テスト結果
test_1 |
test_1 | > @toroswap/contract@0.0.1 mocha
test_1 | > TS_NODE_FILES=true mocha
test_1 |
test_1 |
test_1 |
test_1 | ToroSwapV2Factory
test_1 | [feeTo] 0.018s
test_1 | [feeToSetter] 0.008s
test_1 | [allPairsLength] 0.009s

工数

項目 野田 市川
Raspberry PiのGPIO動作確認 2 ?
動画の再生制御に関する検証・プロト 0 ?
各センサの買い付け・動作確認 5 ?
$ curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -
#!/usr/bin/env ruby
# TODO (temporary here, we'll move this into the Github issues once
# redis-trib initial implementation is completed).
#
# - Make sure that if the rehashing fails in the middle redis-trib will try
# to recover.
# - When redis-trib performs a cluster check, if it detects a slot move in
# progress it should prompt the user to continue the move from where it
# stopped.
position = retry(lambda: self.private_client
.Position.Position_get(filter=json.dumps({"symbol": "XBTUSD"})).result())[0]
def retry(func, count=5):
err = None
for i in range(count):
try:
ret, res = func()
rate_limit = int(res.headers['X-RateLimit-Limit'])
rate_remain = int(res.headers['X-RateLimit-Remaining'])
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ vi ~/.bashrc
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
fi
$ source ~/.bashrc
$ pyenv install anaconda3-5.0.0
$ pyenv global anaconda3-5.0.0
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R]
RewriteRule ^$ https://%{HTTP_HOST}/manager/webui/ [R,L]
wget https://www.percona.com/downloads/percona-toolkit/3.0.3/binary/debian/jessie/x86_64/percona-toolkit_3.0.3-1.jessie_amd64.deb
apt install libdbd-mysql-perl libdbi-perl libio-socket-ssl-perl libnet-ssleay-perl
dpkg -i percona-toolkit_3.0.3-1.jessie_amd64.deb
@noda-sin
noda-sin / 0_reuse_code.js
Created February 18, 2016 03:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@noda-sin
noda-sin / bastion.template
Created February 11, 2016 07:20
bastion with managing iam
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description" : "Bastion Instance",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "AWS::EC2::KeyPair::KeyName",
"ConstraintDescription" : "can contain only alphanumeric characters, spaces, dashes and underscores."