- Google Chrome with latest version (mine is: 94).
- https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ru
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
// 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 | |
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
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; |
- Google Chrome with latest version (mine is: 94).
- https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ru
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
(function() { | |
'use strict'; | |
var settings = {"tags": ["href", "src"], "protocols": ["http:", "https:"]}; | |
var data = {"detectedLinks": [], "thisProtocolIsOk": false}; | |
for (var i = 0; i < settings['tags'].length; i++) { | |
var srcNodeList = document.querySelectorAll('[' + settings['tags'][i] + ']'); /* srcTags.join('],[') */ | |
for (var ii = 0; ii < srcNodeList.length; ++ii) { | |
data['thisProtocolIsOk'] = false; | |
var item = srcNodeList[ii].getAttribute(settings['tags'][i]); | |
if (item === null) continue; |
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
@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" |
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
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) { |
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
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 |
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
@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% |