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
npx depcheck --json | jq -r .dependencies[] | xargs yarn remove | |
npx depcheck --json | jq -r .devDependencies[] | xargs yarn remove |
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
<?php | |
/* | |
plugins-oldディレクトリに古いプラグインjarをすべて入れて、実行するとplugin.ymlの内容をもとに関連サイトを開いたり、ダウンロード処理を行ったりする | |
*/ | |
function getFiles($dir) | |
{ | |
$files = scandir($dir); | |
$files = array_diff($files, array('.', '..')); | |
$files = array_filter($files, function ($file) use ($dir) { |
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
<?php | |
/* | |
あ~んをフォントを指定して絵文字画像を作成するPHPスクリプト (GD使用) | |
- Created by Tomachi https://gist.github.com/book000/16ff21e6916ae94033dfeba27a20eb90 | |
PREFIX_images ディレクトリに50枚の画像が生成されます。 | |
PREFIX_emojis.txt には絵文字の一覧を示すメッセージ用テキストが生成され出力されます。 | |
stdout には50音表に並んだ絵文字表が出力されます。 | |
*/ |
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 Reggae One💢 | |
// @namespace https://tomacheese.com | |
// @version 1.0.0 | |
// @description The world is made up of ANGER. | |
// @author Tomachi | |
// @match http://*/* | |
// @match https://*/* | |
// @updateURL https://gist.github.com/book000/e84ca5eb8715686d3d077311d3363411/raw/reggae-one.user.js | |
// @icon https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/anger-symbol_1f4a2.png |
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 | |
send_message() { | |
token="" | |
channelId="" | |
curl \ | |
-X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: Bot $token" \ | |
-d "{\"content\": \"$1\"}" \ | |
"https://discord.com/api/channels/$channelId/messages" |
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
isFound = false; | |
setInterval(() => { | |
console.log("checking", isFound) | |
if(document.querySelector("i.download") !== null) { | |
console.log("found & click") | |
if(!isFound) document.querySelector("i.download").click(); | |
isFound = true; | |
}else{ | |
isFound = 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
<?php | |
$json = json_decode(file_get_contents("http://192.168.0.201:40772/api/channels?type=GR"), true); | |
print_r($json); | |
$list = [ | |
"#EXTM3U", | |
"#EXTVLCOPT:network-caching=1000", | |
"" | |
]; | |
foreach ($json as $object) { |
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
javascript:document.querySelectorAll("div.notifications-list ul li.notifications-list-item").forEach(s => { if ( s.querySelector("svg.octicon-git-merge") != null || s.querySelector("svg.octicon-git-pull-request-closed") != null || s.querySelector("svg.octicon-issue-closed") != null ) s.querySelector("input.js-notification-bulk-action-check-item").click();});document.querySelector("form button[title=\"Done\"]").click(); |
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 | |
yt-dlp %* |
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
<?php | |
$check_working_applications = [ | |
"vrmonitor.exe", | |
]; | |
exec("tasklist /FO CSV 2>NUL", $task_list); | |
$task_list = array_map(function ($task) { | |
return str_getcsv($task, ",", '"'); | |
}, $task_list); | |
foreach ($check_working_applications as $app) { | |
if (!in_array($app, array_column($task_list, 0))) { |