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
| import json | |
| def json2csv(username: str): | |
| with open("data/" + username + ".json") as f: | |
| items = json.load(f) | |
| rows = [] | |
| for item in items: | |
| for result in item["results"]: |
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 | |
| if [[ $# -ne 2 ]]; then | |
| echo "Error: 2つの引数が必要です。1つ目にscreenの名前、2つ目にURLを指定してください。" | |
| exit 1 | |
| fi | |
| SCREEN_NAME=$1 | |
| shift | |
| # shellcheck disable=SC2068 | |
| screen -dmS "${SCREEN_NAME}" /usr/bin/yt-dlp -o "/mnt/hdd/yt-dlp-live/%(title)s.%(ext)s" --hls-use-mpegts --wait-for-video 10 $@ |
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
| @echo off | |
| echo [INFO] SetDPI 100 | |
| SetDPI.exe 1 100 | |
| echo [INFO] Connect RDP | |
| start C:\Windows\System32\mstsc.exe "C:\Users\Tomachi\ICHIGO-MULTI-REMOTE.rdp" | |
| timeout /T 10 /NOBREAK | |
| :check |
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 | |
| cd "$(dirname "$0")" || exit | |
| progress() { | |
| local message=$1 | |
| local space | |
| space=$(printf '%*s' $(( $(tput cols) - ${#message} )) ' ') | |
| echo -ne "$message$space\r" | |
| } |
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
| import json | |
| from pprint import pprint | |
| from mitmproxy import addonmanager, http | |
| from mitmproxy import tls | |
| from urllib.parse import urlparse | |
| from mitmproxy import ctx | |
| import os | |
| from datetime import datetime |
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 pixiv replace full image | |
| // @namespace https://tomacheese.com | |
| // @version 1.0.1 | |
| // @description Replace square images displayed on pixiv.net with full-size images | |
| // @author Tomachi | |
| // @match https://www.pixiv.net/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=pixiv.net | |
| // @updateURL https://gist.github.com/book000/0326c9b0635d99b7c4ab891ccb5e67be/raw/pixiv-full-image.user.js | |
| // @downloadURL https://gist.github.com/book000/0326c9b0635d99b7c4ab891ccb5e67be/raw/pixiv-full-image.user.js |
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
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.13.1 | |
| environment: | |
| - discovery.type=single-node | |
| - LOGSPOUT=ignore | |
| - bootstrap.memory_lock=true | |
| - xpack.security.enabled=false | |
| - xpack.monitoring.enabled=false | |
| - xpack.watcher.enabled=false |
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
| /* ==UserStyle== | |
| @name Full size display on Bitwarden | |
| @namespace tomacheese.com | |
| @version 1.0.1 | |
| @updateURL https://gist.github.com/book000/894207763314aefc0ac0e7f6ed3dc857/raw/bitwarden-full-width.user.css | |
| @description Bitwardenでフルサイズ表示する(プレミアムへの広告も消す) | |
| @author Tomachi (book000) | |
| ==/UserStyle== */ | |
| @-moz-document domain("vault.bitwarden.com") { | |
| .container { |
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
| services: | |
| logspout: | |
| image: gliderlabs/logspout:v3.2.14 | |
| command: syslog://logstash:5000 | |
| environment: | |
| - RETRY_COUNT=100 | |
| depends_on: | |
| logstash: | |
| condition: service_healthy | |
| volumes: |
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
| Sub Zoom100CursorA1NormalView() | |
| Dim sheet As Object | |
| For Each sheet In ActiveWorkbook.Sheets | |
| sheet.Activate | |
| ActiveSheet.Range("A1").Select | |
| ActiveWindow.Zoom = 100 | |
| ActiveWindow.View = xlNormalView | |
| Next sheet | |
| Sheets(1).Select | |
| End Sub |