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
mkdir yenten && cd yenten | |
git clone https://github.com/JayDDee/cpuminer-opt.git && cd cpuminer-opt | |
sudo apt install libdb++-dev libssl-dev libgmp3-dev #libdb++ | |
./autogen.sh | |
./configure CFLAGS="-O3 -march=native -Wall" | |
make | |
# ./cpuminer -a yescryptr16 -o stratum+tcp://bunnymining.work:20333 -u murata.miner1 -p **** | |
# cpulimit -l 140 -- ./cpuminer -a yescryptr16 -o stratum+tcp://bunnymining.work:20333 -u ****.**** -p **** |
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
cd ~ | |
mkdir koto && cd koto | |
git clone https://github.com/koto-dev/cpuminer-yescrypt | |
cd cpuminer-yescrypt | |
./autogen.sh | |
./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" | |
make | |
# change k** your address and start mining!! | |
# cpulimit -l 140 -- ./minerd -a yescrypt -o stratum+tcp://okoto.xyz:51000 -u k** |
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
cd ~ | |
mkdir koto && cd koto | |
git clone https://github.com/koto-dev/cpuminer-yescrypt | |
cd cpuminer-yescrypt | |
./autogen.sh | |
./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" | |
make | |
# change k** your address !! | |
cpulimit -l 140 -- ./minerd -a yescrypt -o stratum+tcp://okoto.xyz:51000 -u k** |
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
# gvm 1.4 -> 1.9.2 | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
source /home/isucon/.gvm/scripts/gvm | |
gvm install go1.4 && gvm use go1.4 | |
gvm install go1.9.2 && gvm use go1.9.2 --default |
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
set -e | |
cd ~ | |
git clone https://github.com/vim/vim | |
cd vim | |
./configure | |
make | |
sudo apt remove -y vim | |
sudo make install | |
rm -rf ~/vim |
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
log 1 cat bench.sh | |
source ~/.bashrc | |
set -e | |
echo "build go" | |
gvm use go1.9.2 --global | |
cd ~/webapp/go/ | |
git pull origin master | |
go build -o app |
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
/* thanks for http://sesenosannko.hatenablog.com/entry/2017/01/11/171756 */ | |
.centerize + * { | |
text-align: center; | |
} | |
.pillar + * { | |
color: #1A3353; | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
float: right; |
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 requests | |
import os | |
import shutil | |
from bs4 import BeautifulSoup | |
your_id = "xx_xxxxxx" | |
your_pass = "xxxxxxxx" | |
s = requests.session() | |
login = s.get("https://bookroll.let.media.kyoto-u.ac.jp/bookroll/login") |
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
from twitter import Api | |
from requests_oauthlib import OAuth1Session | |
from urllib.parse import parse_qs | |
from pprint import pprint | |
import requests | |
import re | |
import sys | |
def search_many(api, search_str, limit): |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define REP(i, n) for (int i = 0; i < static_cast<int>(n); ++i) | |
#define FOR(i, a, b) \ | |
for (int i = static_cast<int>(a); i < static_cast<int>(b); ++i) | |
#define ALL(f, x, ...) \ | |
([&](decltype(x)& ALL) { \ | |
return (f)(begin(ALL), end(ALL), ##__VA_ARGS__); \ | |
})(x) |