This file contains 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 PenpaSolvedWidget | |
// @namespace https://dislife.com/ | |
// @version 0.0.4 | |
// @description Add solved markers to Pazupure or Puzz.link problem links. | |
// @author mozurin | |
// @match *://*/* | |
// @noframes | |
// @require https://cdnjs.cloudflare.com/ajax/libs/js-sha1/0.6.0/sha1.min.js | |
// @grant GM.getValue |
This file contains 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
// ChangeLog: | |
// 0.2.1 Add rough English translation. | |
// 0.2.0 Add new feature that overwrites page title of game player tab by | |
// referred link name. | |
// | |
// ChangeLog.ja: | |
// 0.2.1 雑な英語翻訳を追加 | |
// 0.2.0 ゲーム画面タブのタイトルをリンク元のリンク名で書き換える機能を追加 | |
// | |
// ==UserScript== |
This file contains 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
# 5ch (2ch) trip calculator snippet | |
import re | |
import base64 | |
import hashlib | |
from passlib.hash import des_crypt | |
DEFAULT_CHARSET = 'ms932' |
This file contains 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 | |
# Rasterize PDF files with Ghostscript and ImageMagick. | |
set -e | |
# parse options | |
DENSITY='600' | |
ADDEXT='.raster' |
This file contains 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 Twitter video extractor | |
// @namespace https://dislife.com/ | |
// @version 0.0.3 | |
// @description Extract hi-res MP4 movie file URLs from tweet permalink page | |
// @author mizuki@mozurin.com | |
// @match https://twitter.com/*/status/* | |
// @grant none | |
// @run-at document-body | |
// ==/UserScript== |
This file contains 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
# Python WM_KEYDOWN / WM_KEYUP message checker based on following CreateWindow | |
# example gist: | |
# https://gist.github.com/mouseroot/6128651 | |
# (I lost my Spy++ binary...) | |
from ctypes import * | |
from ctypes.wintypes import * | |
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM) |
This file contains 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
/** | |
* Simple tetris game for Pixl.js board | |
*/ | |
// rotate right | |
g.setRotation(1); | |
// turn on backlight | |
LED1.write(1); |
This file contains 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
''' | |
shift_exif_timezone.py - Convert local timestamps in Exif to UTC timestamps | |
Timestamps in Exif records are not timezone-aware. They are naive format. So | |
there will be protocol mismatch; some camera writes "local" timestamp in Exif, | |
but some software recognizes it as "UTC" on the other hand. To resolve the | |
situation, this snippet converts timestamps in '0th' and 'Exif' IFD to UTC | |
timestamps. | |
Note: GPS always uses UTC timestamps, so timestamps in 'GPS' IFD are not |