Skip to content

Instantly share code, notes, and snippets.

View retronbv's full-sized avatar
:shipit:
code

retronbv retronbv

:shipit:
code
View GitHub Profile

image

Rude Messages Bot

Rude Messages Bot (RMB for short) is a bot that uses AI to determine whether a message is rude. If it is it will automatically delete it.

When you first invite RMB to your server(s) it will send a message to the first channel it can. This message will tell you how to setup the bot.

To setup the bot please run b!setup <channel to post logs in>! (for now I will just use this channel)

When RMB deletes a message it will log it to the channel you provide in the setup command and to the user that wrote the message.

@retronbv
retronbv / cool gsheet things.md
Last active July 28, 2021 02:48
cool gsheet things

google sheet that counts letters in any website's source code and graphs it

image

google sheet that shows information about (almost) any site

image

google sheet for translating

image

@retronbv
retronbv / How-to-get-old-discord.md
Last active July 7, 2021 23:16
How to get old discord branding back

CTRL + SHIFT + J

webpackJsonp.push([[999],{"l":(m,e,r)=>{for(k in r.c)(m=r.c[k].exports)&&m.default&&m.default.isDeveloper==0&&Object.defineProperty(m.default,"isDeveloper",{get:()=>1})}},[["l"]]]);

paste in console

settings > experiments

@Explosion-Scratch
Explosion-Scratch / preload.js
Last active April 28, 2021 18:24
Preloads a webpage through an iframe.
//Set window.load and window.show so that the child iframe element can access those functions.
window.load = load;
window.show = show;
//Convert all links to preload on hover.
[...document.querySelectorAll("a")].forEach((a) => {
a.addEventListener("click", (e) => {
e.preventDefault();
show(a.href);
});
a.addEventListener("mouseenter", (e) => {
@retronbv
retronbv / How-to-change-tag-without-nitro.md
Last active October 4, 2022 15:11
How to change your discord tag without nitro!

How to change your discriminator without discord nitro :O

Find a server with Dyno bot in it

Find the bots channel (if it has one)

Do ?discrim

picture

@jamesluberda
jamesluberda / graphql-for-gists.md
Created June 20, 2018 01:07
Simple User Gists Query Using GitHub GraphQL API (v4 API)

I couldn't find any examples of gists queries using GraphQL--most GraphQL examples seem to focus on traditional repositories--so here is one. As a preface, I cannot recommend strongly enough, at least when getting started, developing queries using the GitHub GraphQL Explorer. I initially started by issuing queries via curl, constructing them using the docs available on the site and a downloaded copy of the schema. Unfortunately, I ended up with errors that I couldn't quite parse. I knew, for example, from the schema, the possible field values for ordering gists. However, whenever I tried to use one of those values, the API returned that it was invalid, like so:

{"data":null,"errors":[{"message":"Argument 'orderBy' on Field 'gists' has an invalid value. Expected type 'GistOrder'.","locations":[{"line":1,"column":48}]}]}"

When I finally turned to the Explorer, I discovered that not only was the value I was using correct (field: CREATED_AT), thanks to its auto

@mininmobile
mininmobile / example.plugin.js
Last active July 10, 2024 23:19
Example BetterDiscord Plugin
//META{"name":"Example"}*//
class Example {
// Constructor
constructor() {
this.initialized = false;
}
// Meta
getName() { return "Example"; }
@thomaswitt
thomaswitt / VPNConfigurationProfiles.mobileconfig
Last active December 10, 2024 14:38
An OnDemand VPN iOS profile for iPad and iPhone that automatically connects you to different VPNs (e.g. Meraki, FRITZ!Box and Streisand) | Blog-Entry: https://thomas-witt.com/auto-connect-your-ios-device-to-a-vpn-when-joining-an-unknown-wifi-d1df8100c4ba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Home: Manual -->
<dict>
<key>UserDefinedName</key>
@IzumiSy
IzumiSy / manifest.json
Last active August 16, 2024 05:25
Chrome.storage.sync example
{
"name": "SyncExtension",
"version": "0.1",
"manifest_version": 2,
"description": "Storage Sync Extension",
"permissions": [ "storage" ],
"browser_action": {