Skip to content

Instantly share code, notes, and snippets.

Avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
@tobynet
tobynet / install-peco.sh
Created Jul 10, 2014
Install latest peco binary for Linux amd64 from https://github.com/peco/peco/releases/latest
View install-peco.sh
#!/usr/bin/env bash
# Usage: BINDIR=$HOME/bin/ bash install-peco.sh
set -o xtrace # for debug output. ( abbr. set -x )
set -o errexit # for exit on error. ( abbr. set -e )
set -o pipefail # errexit for pipe
set -o nounset # exit when the script to use undeclared variables (abbr. set -u)
filename=peco_linux_amd64.tar.gz
latest_tag="$(curl -L --head https://github.com/peco/peco/releases/latest | grep -i location: | sed 's/^.*\/tag\/\([^\/]*\)\r$/\1/')"
@tobynet
tobynet / min-caml-syscall.bin.txt
Created May 10, 2019
メモ of min-camlのプログラムからシェルが取れるか? https://cookies.hatenablog.jp/entry/2018/12/16/120213
View min-caml-syscall.bin.txt
52 53 90 3c bb 89 e3 51 3c b9 53 89 e1 3c ba 31 d2 cd 80
@tobynet
tobynet / index.html
Created Mar 26, 2019
[sandbox][WIP] JB sandbox
View index.html
<div class="javabo">
<a href="javascript:void" class="redjavabo">
今すぐダウンロード
</a>
</div>
<p class="control">
<label for="input">Your dream:</label>
<input id="input" value="" placeholder="is ...?">
<br>
@tobynet
tobynet / index.html
Last active Mar 26, 2019
Make your own JavaButton
View index.html
<div class="javabo">
<a href="javascript:void" class="redjavabo">
今すぐダウンロード
</a>
</div>
<p class="control">
<label for="input">Your dream:</label>
<input id="input" value="" placeholder="is ...?">
<br>
@tobynet
tobynet / random-string-for-54-novel.py
Created Jul 4, 2018
#54文字の文学賞 のジェネレータ https://ujiqn.github.io/54-novel/ に入れる用スクリプト(ランダム版)
View random-string-for-54-novel.py
#!/usr/bin/env python
WIDTH = 9
HEIGHT = 6
import random
#src = "┣╋┻┳┫"
src = "☐⊡▤▥▩▨▧▦▣"
# string -> [shuffled string]
@tobynet
tobynet / rotation-string-for-54-novel.py
Last active Jul 4, 2018
#54文字の文学賞 のジェネレータ https://ujiqn.github.io/54-novel/ に入れる用スクリプト
View rotation-string-for-54-novel.py
#!/usr/bin/env python
import numpy as np
message = \
'''
 
 あなたと
  ジャバ
 
 今すぐ
@tobynet
tobynet / index.html
Created Feb 25, 2018
[PoC] CSS logging with React, ジャバボタン.css
View index.html
<h1>[PoC] CSS logging in <code>`input type=password`</code> with React, ジャバボタン.CSS</h1>
<p><strong>Input "java"</strong> in the following password field like JavaButton.</p>
<div id="input-button" class="redjavabo"></div>
<p><a href="https://github.com/facebook/react/issues/11896">Original issue is here.</a></p>
@tobynet
tobynet / watch-qmk-make.sh
Created Dec 9, 2017
Watch your code for keymaps and compile qmk firmware with inotifywait command.
View watch-qmk-make.sh
#!/bin/env bash
# ref. https://github.com/rvoicilas/inotify-tools/wiki#inotifywait
# ref. inotifywait --help
cd qmk_firmware
while inotifywait --recursive --event modify \
keyboards/lets_split/keymaps/j3/ ; do
make lets_split/rev2:j3
done
@tobynet
tobynet / index.html
Last active Sep 7, 2017
[WIP] inheritance.in.js
View index.html
<p>Open the <em>Console</em> and see it!</p>
<img src="https://i.gyazo.com/e3ac4649fb1d6e1f93a47ef5a8dd9c9e.gif" style="border: 1px solid lightgray;">
<p>or press <code>F12</code> to open console in DevTools on your browser.</p>
You can’t perform that action at this time.