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 Ten-Four Hand Exporter | |
| // @namespace https://tenfour-poker.com/ | |
| // @version 1.0.0 | |
| // @description Ten-Four ポーカーのハンド履歴をテキスト形式でクリップボードにコピー | |
| // @match https://tenfour-poker.com/* | |
| // @grant GM_setClipboard | |
| // @run-at document-idle | |
| // ==/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
| /* compile: gcc -O3 -pedantic-errors -Wextra -std=c89 brainfuck.c -o brainfuck */ | |
| #include <stdio.h> | |
| #define MAX_CODE_LEN 64000 | |
| static int ip = -1; /* instruction pointer */ | |
| static int dp = 0; /* data pointer */ | |
| static char data[30000]; | |
| static char code[MAX_CODE_LEN]; |
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/bash | |
| PASS='<password>' | |
| openssl enc -aes256 -pbkdf2 -md sha-512 --pass pass::$PASS -nosalt -in - -out - | |
| # decrypt | |
| openssl enc -d -aes256 -pbkdf2 -md sha-512 --pass pass::$PASS -nosalt -in - -out - |
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
| (setq interprogram-cut-function | |
| (lambda (s) | |
| (let ((f (make-temp-file "clip"))) | |
| (append-to-file s nil f) | |
| (call-process "xsel" f nil nil) | |
| (delete-file f)))) |