Skip to content

Instantly share code, notes, and snippets.

View Gesugao-san's full-sized avatar
💭
⌈Wired Sound for Wired People⌋

Gesugao-san

💭
⌈Wired Sound for Wired People⌋
View GitHub Profile
@Gesugao-san
Gesugao-san / discord-js-get-all-guild-invites.js
Created March 30, 2022 12:33 — forked from Sv443/discord-js-get-all-guild-invites.js
Discord.js - Get all invites from all your bot's guilds - only works with Discord.js v11 or lower!
// only works with Discord.js v11 or lower!
const Discord = require("discord.js");
const dev_ids = ["YOUR_ID(s)_HERE"]; // an array of IDs of the bot's developers - only these people will be able to execute this command
// Note: this snippet requires the variables "client" and "message" to work, these need to be provided by your script
@Gesugao-san
Gesugao-san / Open_Discord_guild_widget.js
Last active March 25, 2022 09:54
Open Discord guild widget (markbooklet)
javascript: (function() {
'use strict';
var settings = {"target_hrefs": ["://discord.com/channels"], "exclude_str": ["@me"]};
var data = {"detectedLinks": []};
function open_widget(id) {
if (!id) id = prompt("Discord guild ID?") || false;
if (id === false) {
console.error("Error: Discord guild ID is not provided!");
return 1;
@Gesugao-san
Gesugao-san / README.md
Last active June 21, 2024 10:20
Open in WBM (v5.0, script for Tampermonkey) [BROKEN]
@Gesugao-san
Gesugao-san / README.md
Last active June 21, 2024 10:21
Open in WBM (v4.0, script for Tampermonkey) [BROKEN]
@Gesugao-san
Gesugao-san / get_links_from_site.js
Last active May 5, 2024 21:26
Get all the src and href attributes of a site, insert into console or make markbooklet
@ECHO OFF
CLS
@REM https://stackoverflow.com/a/41379378/8175291
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
SET DisplayVersion=5.2.1
SET "DisplayName=MongoDB Shell %DisplayVersion%"
SET InstallDate=%date:~6,4%%date:~3,2%%date:~0,2%
SET "InstallLocation=%CD%"
SET "DisplayIcon=%CD%\mongosh.exe"
@Gesugao-san
Gesugao-san / steam_title_searcher.js
Created February 11, 2022 11:22 — forked from Js41637/steam_title_searcher.js
Processes a list of game names and searches the Steam API and saves them to a CSV. In order to use, create a file called games.txt and inside put the name of each game you want to find on a new line. Then run this script via `node steam_title_searcher.js`. Dun.
const fs = require('fs')
const https = require('https')
const searchApi = 'https://steamcommunity.com/actions/SearchApps'
const detailsApi = 'https://store.steampowered.com/api/appdetails?filters=categories&appids='
let titlesFile
try {
titlesFile = fs.readFileSync('./games.txt', 'utf8')
} catch (e) {
@Gesugao-san
Gesugao-san / README.md
Last active October 29, 2021 09:47
For recover with The Great Suspender Original

Requirements

  • Google Chrome with latest version (mine is: 94).

Maybe:

  • Microsoft Windows 10 (mine is: 20H2);
@Gesugao-san
Gesugao-san / ultimate_update_or_break.bash
Created October 27, 2021 06:18
Shell command for update Linux (Ubuntu) packages and OS itself. For: https://ubuntu.com/wsl
clear && cd / && echo "=====" && for i in $(seq 2); do echo "[$i/2]" && sudo apt update -y && apt list --upgradable -a && sudo apt upgrade -y && do-release-upgrade -d && apt dist-upgrade && sudo dpkg --configure -a && sudo apt autoremove -y && sudo apt autoclean -y && echo "====="; done
@Gesugao-san
Gesugao-san / exclude_fl_from_firewall.bat
Created October 26, 2021 07:02
For "FL Studio Producer Edition 20.8.3.2304 Signature Bundle [En]"
@REM From: https://stackoverflow.com/a/10665562
@REM Path: "C:\Windows\System32\drivers\etc\hosts"
@ECHO OFF
ECHO MAKE SURE YOU ARE RUNNING THIS UNDER ADMIN PRIVILEGES!
SET NEWLINE=^& echo.
SET HOSTS="%WINDIR%\System32\drivers\etc\hosts"
FIND /C /I "support.image-line.com" %HOSTS%
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 support.image-line.com>>%HOSTS%