Skip to content

Instantly share code, notes, and snippets.

View advaith1's full-sized avatar
👨‍💻
hi

advaith advaith1

👨‍💻
hi
View GitHub Profile
@advaith1
advaith1 / drp-ext-doc.md
Last active September 23, 2023 18:46
Documentation for the Discord Rich Presence extension

Discord Rich Presence Extension Documentation

0. Create an app

First, create an application at Discord's New App page.

Set the App Name to the title of your Rich Presence playing status. For example, if you want Playing with discord, set the app name to with discord. You don't need to set a Redirect URI, Description, or App Icon, just click Create App. New App screenshot

Next, click Enable Rich Presence here: Enable Rich Presence screenshot

Now you can upload your images.

@advaith1
advaith1 / redirect.html
Created December 21, 2017 18:27
Redirects the page to a new url.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Redirecting...</title>
<meta HTTP-EQUIV="REFRESH" content="0; url=/newurl">
<link rel="canonical" href="/newurl" /></head>
<body>
<a href="/newurl">Click here if you are not redirected automatically.</a></body>
</html>
<!--- page style --->
<style>
.page {
color: #ffffff !important;
}
p {
color: #ffffff !important;
}
html {
background-color: #2C2F33 !important;
@advaith1
advaith1 / net-neutrality-rp.md
Last active December 13, 2017 01:00
Info for Net Neutrality Rich Presence
@advaith1
advaith1 / net-neutrality-rp.json
Last active December 13, 2017 00:57
config file for SimplePresence. Go to [...] for more info and available image options.
{
"textConfig": {
"details": "Save Net Neutrality",
"state": "Break the Internet: https://breaktheinternetprotest.org/"
},
"imageConfig": {
"smallKey": "stopthefcc",
"largeKey": "breaktheinternet",
"smallText": "#STOPTHEFCC",
"largeText": "Break the Internet to save Net Neutrality. Take action and pass it on.",
@advaith1
advaith1 / embednewline.txt
Created November 3, 2017 22:27
To create newlines in embeds, place the gist content where you want the line break. To create empty lines, use this: `_ _` Thanks to AS04™#2793!
START[ ]END