Skip to content

Instantly share code, notes, and snippets.

View JDJGInc's full-sized avatar

JDJG JDJGInc

View GitHub Profile
@nerrixde
nerrixde / vpn.md
Last active April 30, 2024 19:23 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)
@vbe0201
vbe0201 / music_bot_example.py
Last active April 10, 2024 13:42
A simple music bot written using discord.py rewrite and youtube_dl.
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Valentin B.
A simple music bot written in discord.py using youtube-dl.
Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly.
Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know.
@Bilka2
Bilka2 / webhook.py
Last active April 26, 2024 08:29
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"
}
@PixelSergey
PixelSergey / dump.md
Last active April 24, 2024 17:08
Dump games with godmode9

Dumping games with Godmode9

Dumping games is the act of taking a game from your system or gamecart and copying it into a readable format onto your SD card. Dumping is perfectly legal if you keep the dumps to yourself, however sharing these dumps is piracy and is illegal.

This guide will tell you how to dump games from various formats and for various purposes. Dumping 3DS cartriges as .cia files is good if you want to install them to your system. Dumping them as .3ds files is good for emulators. Installed titles cannot be dumped as .3ds files. NDS cartiges can only be dumped as .nds files and cannot be installed (however, you can play them with emulators or flashcarts).

Dumping the RomFS of a game is primarily for romhacking purposess.

@itslukej
itslukej / a_lot_of_bots.json
Created February 13, 2018 23:54
Discord Bots
[
{
"discord_id": "247056469894103041",
"name": "Tink",
"invite": "https://discordapp.com/oauth2/authorize?permissions=8&scope=bot&client_id=247056469894103041",
"short_desc": "A multipurpose bot for Discord.",
"support_invite": null,
"prefix": "+"
},
{
@ariankordi
ariankordi / inklingtalk.py
Created September 14, 2017 00:08
discord.py script for me to pipe audio from vgmstream
import os, time, subprocess
import discord
from discord.ext.commands import Bot
main = Bot(command_prefix=("did you get me my CHEEZ WHIZ bo"))
discord.opus.load_opus('/usr/local/Cellar/opus/1.2.1/lib/libopus.dylib')
@main.event
async def on_voice_state_update(b, a):
if not a.voice.voice_channel:
@EvieePy
EvieePy / bot_example.py
Last active April 24, 2024 09:30
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@king1600
king1600 / cleverbot.py
Created August 17, 2017 20:53
Cleverbot public api wrapper for python3
import asyncio
from hashlib import md5
from collections import deque
from aiohttp import ClientSession
from collections import OrderedDict
from urllib.parse import quote as qs
# try to use uvloop if possible
try:
import uvloop
@EvieePy
EvieePy / error_handler.py
Last active January 16, 2024 15:12
Simple Error Handling for ext.commands - discord.py
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)
For examples of cogs see:
https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be
For a list of exceptions:
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exceptions