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
| # https://transitive.info/2018/08/21/onamae-vps-tdiary-nginx-puma/ を参考にtdiaryをpumaで動かすためのスクリプト。 | |
| # usage: puma -C puma.rb | |
| workers 1 | |
| threads 2, 5 | |
| preload_app! | |
| RUNTIME_DIR = ENV['XDG_RUNTIME_DIR'] || ENV['XDG_STATE_HOME'] | |
| bind "tcp://127.0.0.1:3000" | |
| pidfile File.join(RUNTIME_DIR, 'puma_tdiary.pid') |
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
| { | |
| "version": "0.8.4", | |
| "description": "A self-hosted dashboard that puts all your feeds in one place.", | |
| "homepage": "https://github.com/glanceapp/glance/", | |
| "license": "AGPL-3.0", | |
| "architecture": { | |
| "64bit": { | |
| "url": "https://github.com/glanceapp/glance/releases/download/v0.8.4/glance-windows-amd64.zip", | |
| "sha256": "6eec1559ec566ead0e1d128c3a1a1a5c166a93a5f3d4de053984b4ae91f8a1de" | |
| } |
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
| if WinActive("ahk_exe Code.exe") or WinActive("ahk_exe WindowsTerminal.exe") { | |
| $Esc::{ ; https://ahkscript.github.io/ja/docs/v2/lib/A_MaxHotkeysPerInterval.htm | |
| Send "{vk1Dsc07B}" ; courvusskkオフコマンド(無変換) | |
| Send "{Esc}" ; 本来のESCキー機能 | |
| Return | |
| } | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| // ==UserScript== | |
| // @name Mastodonに引用ボタンを追加する | |
| // @name:en Add button to copy toot's url | |
| // @name:ja Mastodonに引用ボタンを追加する | |
| // @namespace http://www.eniehack.net/~eniehack/works/firefox-userscripts | |
| // @version 0.3.0 | |
| // @description:en Add button to copy toot's url for quote toot on Mastodon's deck UI | |
| // @description:ja MastodonのDeck UIにtootを引用するためのURLコピーボタンをboostボタンの隣に追加します。 | |
| // @author eniehack |
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
| // ==UserScript== | |
| // @name booklogの検索でジャンルのデフォルトを紙の本にするくん | |
| // @name:ja booklogの検索でジャンルのデフォルトを紙の本にするくん | |
| // @namespace https://github.com/eniehack | |
| // @match *://booklog.jp/* | |
| // @grant none | |
| // @version 0.1.0 | |
| // @author eniehack | |
| // @description ブクログの検索機能はジャンルが選べますが、デフォルトでは「本」となっており、電子書籍と紙の本が一緒くたにされて検索されます。このスクリプトはデフォルトを「紙の本」にすることで電子書籍を使わない人にとって検索機能を使いやすくします。 | |
| // ==/UserScript== |
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
| // SPDX-License-Identifier: MIT | |
| // ==UserScript== | |
| // @name Mastodonに引用ボタンを追加する | |
| // @namespace http://www.eniehack.net/~eniehack/works/firefox-userscripts | |
| // @version 0.1.1 | |
| // @description MastodonのDeck UIにtootを引用するためのURLコピーボタンをboostボタンの隣に追加します。 | |
| // @author eniehack | |
| // @license MIT | |
| // @match https://example.com/* | |
| // @grant none |
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
| -- SPDX-License-Identifier: CC0-1.0 | |
| SELECT | |
| r.uid, | |
| concat('https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/memo.php?game=', g.id, '&uid=', r.uid) AS link, | |
| g.gamename, | |
| LENGTH(r.memo) | |
| FROM userreview r | |
| INNER JOIN gamelist g | |
| ON r.game = g.id | |
| WHERE r.game IN ( |
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
| # SPDX-License-Identifier: CC0-1.0 | |
| import csv | |
| import math | |
| import argparse | |
| parser = argparse.ArgumentParser( | |
| prog="GPA Calculator", | |
| description="calculates GPA from csv which is generated by TWINS.", | |
| ) |
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/sh | |
| set -eu | |
| for exe in "gs" "gm" "pdftoppm" "mktemp" ; do | |
| which "$exe" >/dev/null | |
| if [ $? -ne 0 ]; then | |
| exit 1 | |
| fi | |
| done |
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
| (define (run-length s) | |
| (letrec ((run-length-h (lambda (s vec count prev-char) | |
| (if (null? s) | |
| (vector-append vec (vector `(,prev-char ,count))) | |
| (let ((c (car s))) | |
| (if (char=? prev-char c) | |
| (run-length-h (cdr s) vec (+ count 1) prev-char) | |
| (if (char=? prev-char #\null) | |
| (run-length-h (cdr s) vec 1 c) | |
| (run-length-h (cdr s) (vector-append vec (vector `(,prev-char ,count))) 1 c)))))))) |
NewerOlder