Skip to content

Instantly share code, notes, and snippets.

View ohusq's full-sized avatar
🤔
thonk

ohusq ohusq

🤔
thonk
View GitHub Profile
@ohusq
ohusq / color.cpp
Created February 26, 2024 13:35
C++20 Coloured output, simple and resets
#include <iostream>
#include <string>
#include <windows.h>
enum color { red = 12, yellow = 14, white = 15, DEFAULT_VALUE = 7 };
const char* ERROR_LABEL = "[ERR]"; // error
const char* WARNING_LABEL = "[WARN]"; // warning
const char* INFO_LABEL = "[INFO]"; // info
@oSumAtrIX
oSumAtrIX / README.md
Last active August 22, 2024 18:55
Useful snippets for Discord

Discord console scripts

My collection of scripts for Discord.

Scripts

  • friend_invitelink.js: Generate a friend invite link
  • clientside_nitro.js: Spoof the client and enable client side Discord Nitro
@sundowndev
sundowndev / GoogleDorking.md
Last active November 17, 2024 19:20
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@anthony-wang
anthony-wang / spotify-hosts.txt
Last active November 14, 2024 10:31
The hosts file entries to block Spotify ad servers
# Use this to block Spotify ad servers
# sources:
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/
# https://gist.github.com/teomaragakis/cb187d880c9a3ca2c8a2
# https://gist.github.com/Shujito/b7a8f8f971b22f49b4313d7d3e8e6931
# https://gist.github.com/rifkyekayama/f7c43e470f23878b20416e68f73829dc
# https://gist.github.com/shokoylele/8f4160a102480471cb946fbd800bc86a
############## Begin manual list
# 127.0.0.1 spclient.wg.spotify.com # might block the entire Spotify app from working too
@Bilka2
Bilka2 / webhook.py
Last active October 12, 2024 18:57
Simple discord webhook with python
import requests # dependency
url = "<your url>" # webhook url, from here: https://i.imgur.com/f9XnAew.png
# for all params, see https://discordapp.com/developers/docs/resources/webhook#execute-webhook
data = {
"content" : "message content",
"username" : "custom username"
}