Skip to content

Instantly share code, notes, and snippets.

View yuuki0xff's full-sized avatar

Yuuki yuuki0xff

  • Japan
  • 13:29 (UTC +09:00)
View GitHub Profile
@yuuki0xff
yuuki0xff / build-deb-packages.sh
Created October 18, 2022 10:39
Build deb packages on the build server.
#!/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
@yuuki0xff
yuuki0xff / build.sh
Last active February 4, 2020 02:48
Build python3.8 on Linux Mint LMDE3
# 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
@yuuki0xff
yuuki0xff / look.py
Last active March 1, 2016 15:09
lookコマンドのpythonによる実装
#!/usr/bin/env python3
import sys
class Searcher:
"""
こちらの実装を参考にしました
http://www.logarithmic.net/pfh/blog/01186620415
"""
def __init__(self, filename):
self.f = open(filename, 'rb')