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
#!/bin/bash | |
# Build deb packages on the build server. | |
# | |
# build-deb-packages.sh | |
# [-c $COMMIT_ID] | |
# [-d $BUILD_DIR] | |
# [-h] | |
# [-J $SSH_JUMP_HOST] | |
# [-o $OUTPUT_DIR] | |
# -r $REMOTE_HOST |
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
# Build python3.8 with UCS4 support on Linux Mint LMDE3. | |
# | |
# TODO: Download source codes of tcl and tk. https://www.tcl.tk/software/tcltk/download.html | |
# TODO: Download source code of python3.7. https://www.python.org/downloads/source/ | |
# Original script: https://github.com/yuuki0xff/docker-nvpy/blob/master/Dockerfile | |
set -euv | |
sudo apt update | |
sudo apt install -y build-essential |
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 python3 | |
import sys | |
class Searcher: | |
""" | |
こちらの実装を参考にしました | |
http://www.logarithmic.net/pfh/blog/01186620415 | |
""" | |
def __init__(self, filename): | |
self.f = open(filename, 'rb') |