Skip to content

Instantly share code, notes, and snippets.

View ConnorDoesDev's full-sized avatar
👋
hi!

Connor ConnorDoesDev

👋
hi!
View GitHub Profile
@soheilhy
soheilhy / nginxproxy.md
Last active April 11, 2026 16:15
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active January 31, 2026 14:12
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@Soheab
Soheab / API's.md
Last active February 20, 2026 23:08
See here some of the API's you can use in your discord bot or anything

Some APIs for you.

Here are some APIs you can use in your Discord bot or any other project. For any help or questions on how to use one, please contact the owner of the API and not me.

A bigger list of APIs can be found at: https://github.com/public-apis/public-apis


[TOKEN] = API requires a token to access some if not all endpoints.

@manhbi18112005
manhbi18112005 / ModerateMessageWithAI.js
Last active February 4, 2025 17:20
This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before ana…
/*
Author: Le Ngo Duc Manh
ModifiedDate: 2024-10-14
Description: This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before analyzing it for toxicity. The Google API key is required to make requests to the Perspective API. The maximum allowed toxicity threshold can be adjusted as needed.
*/
const axios = require('axios');
const GOOGLE_API_KEY = "Your Google API Key";
const EMOJIS_REGEX = /<a?:([^:]+):(\d+)>|\p{Emoji_Presentation}|\p{Extended_Pictographic}/gmu;
[invalid]
keywords = []
content = """
invalid tag
"""
[tags]
keywords = ["taglist", "listags"]
content = """
Here are all currently existing tags: `tags`, `teamlead`, `commands`
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active April 18, 2026 15:11
An unofficial list of discord app protocol routes

Discord app protocol routes

I know these links work on Windows, have not tested this on any other operating systems.

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
@jakeajames
jakeajames / poc.c
Last active September 17, 2025 04:15
CVE-2021-30955 PoC
#include <stdlib.h>
#include <stdio.h>
#include <pthread/pthread.h>
#include <mach/mach.h>
struct ool_msg {
mach_msg_header_t hdr;
mach_msg_body_t body;
mach_msg_ool_ports_descriptor_t ool_ports[];
};
@jakeajames
jakeajames / IOSurface_stuff.c
Last active September 1, 2022 02:45
WIP CVE-2021-30955 exploit
//
// IOSurface_stuff.c
// time_waste
//
// Created by Jake James on 2/22/20.
// Copyright © 2020 Jake James. All rights reserved.
//
#import "IOSurface_stuff.h"
@st4rdog
st4rdog / msi-afterburner-undervolt-how-to.md
Last active April 19, 2026 12:36
MSI Afterburner Voltage Curve Editor Tutorial - Undervolt

Tutorial

  • Start at default curve.
  • Ctrl-click-drag any point in right-half to bend it until a point intersects with desired mhz/voltage.
  • Select point and adjust to perfection using shift-up-down.
  • Shift-click-drag empty space and select points (including selected point) on the right. Selected point should be left-most point.
  • Shift-Enter twice to flatten all points in selection area. They will flatten to match the selected point.
  • Adjust if required.

Controls