Skip to content

Instantly share code, notes, and snippets.

View kosh04's full-sized avatar
🎧

KOBAYASHI Shigeru kosh04

🎧
View GitHub Profile
@kosh04
kosh04 / miss-ueno.ini
Created July 23, 2019 04:34
「上野さんは不器用」全12話チャプター
;FFMETADATA1
title=上野さんは不器用
[CHAPTER]
TIMEBASE=1/1000
START=0
END=686200
title=第1話 実験その1「ロッカくん」/実験その2「クマタンダー2号」
[CHAPTER]
@kosh04
kosh04 / wol.lsp
Created July 13, 2019 17:25
Wake on LAN
#!/usr/bin/env newlisp
;; Wake-on-LAN
(define (usage)
(println "Usage: wol.lsp <IP address> <MAC address>"))
;; Convert MAC address to List format.
;; e.g."EE:EE:EE:00:00:01" to (0xEE 0xEE 0xEE 0x00 0x00 0x01)
(define (mac2list mac)
;; XX-XX-XX-XX-XX-XX
@kosh04
kosh04 / emacs.mk
Last active March 26, 2020 08:03
Simple makefile for build Emacs
# Build Emacs Recipe
usage = Usage: make -f $(notdir $(MAKEFILE_LIST)) [EMACS=${EMACS}] [PREFIX=${PREFIX}]
PREFIX?=${HOME}/.local
EMACS?=emacs-26.3
EMACS_ARCHIVE=${EMACS}.tar.xz
EMACS_ARCHIVE_URL=http://ftpmirror.gnu.org/emacs/${EMACS_ARCHIVE}
@kosh04
kosh04 / .gitignore
Last active November 9, 2024 10:37
Chrome Cookies Decrypter
cookie.txt
@kosh04
kosh04 / rust-play.sh
Created February 6, 2018 15:56
Rust playground command-line tool (simple)
#!/bin/sh
set -eu
usage="usage: $0 [execute|compile] FILENAME"
url=https://play.rust-lang.org/${1?${usage}}
code=$(cat ${2?${usage}})
send() {
curl -s -X POST -H "Content-Type: application/json" -d @- ${1}
}
@kosh04
kosh04 / windres.md
Created September 17, 2016 18:44
リソースファイル作成時に参考にしたページ
@kosh04
kosh04 / build.bat
Last active August 2, 2016 07:41
Windows用irony-serverをビルドする
@echo off
setlocal
set LLVM_ROOT=C:\opt\LLVM
set PATH=%PATH%;C:\MinGW64\bin
set PATH=%PATH%;%LLVM_ROOT%\bin
set PATH=%PATH%;C:\opt\cmake\bin
set PATH=%PATH%;%HOME%\.emacs.d\bin
@kosh04
kosh04 / html5-video.asciidoc
Last active July 30, 2021 11:55
Markdown(gfm)で動画ファイルを再生してみたかった

audio tag

Your browser does not support the audio tag.

video tag

@kosh04
kosh04 / listup-el.sh
Last active December 30, 2023 15:08
init.el読書会のリクエスト用ストック(気が向いたら追加する)
#!/bin/sh
set -eu
# 指定したディレクトリ以下の elisp 行数を数えるスクリプト
usage="Usage: $0 DIRECTORY [IGNORE_PATTERN]"
DIR=${1?$usage}
IGNORE_PATTERN=${2-}
if [ -n "$IGNORE_PATTERN" ]; then
;;; dotassoc.lsp
;; 連想リストの Key-Value 参照をドット記法で
;;; Example:
;; (let ((student '((id 1332412)
;; (name ((first "Student")
;; (last "Example"))))))
;; (with-dotassoc