Skip to content

Instantly share code, notes, and snippets.

View jacks0n9's full-sized avatar

Jackson jacks0n9

  • Null, null
View GitHub Profile
@FlyTechVideos
FlyTechVideos / censor_oracle.py
Last active February 13, 2024 16:46
A not entirely inaccurate oracle for whether or not Windows XP will recognize a given string as being unicode (ref. IsTextUnicode).
#!/usr/bin/env python3
import sys
# Please excuse the awfully formatted code, I did not take the time to make it look nice.
def main():
print()
if len(sys.argv) != 2:
print(f' Usage: {sys.argv[0]}')
@NathanBaulch
NathanBaulch / main.go
Last active July 11, 2024 20:27
Optimized solution to APS #038 unique words with unique letters
package main
import (
"bufio"
"fmt"
"io"
"math"
"os"
"runtime"
"sort"
@FlyTechVideos
FlyTechVideos / server.py
Last active January 3, 2024 14:02
Simple web server which logs accesses and data [https://www.youtube.com/watch?v=TB3OEG0bKwc]
#!/usr/bin/env python3
from flask import Flask, request, send_from_directory
from datetime import datetime
from user_agents import parse
app = Flask(__name__)
def censor_ip(ip):
@anirudhb
anirudhb / The Ultimate Discord Self-Botting Guide.md
Created March 24, 2020 02:57
The Ultimate Discord Self-Botting Guide

The Ultimate Discord Self-Botting Guide

assuming a frictionless kernel (Ubuntu Linux)

Steps:

  • Setup a [Docker][docker] container running [Ubuntu][ubuntu] and install [Discord][discord] on it
  • Setup [X][x11] permissions, so the container can connect to the running [X][x11] server.
  • Use [xdotool][xdotool] with a shell script to automate input events to [Discord][discord].
@That-Kidd
That-Kidd / helpcommand.py
Created August 28, 2019 16:03
A kinda advanced custom "help" command for your Discord.py Rewrite bots!
"""This custom help command is a perfect replacement for the default one on any Discord Bot written in Discord.py Rewrite!
However, you must put "bot.remove_command('help')" in your bot, and the command must be in a cog for it to work.
Written by Jared Newsom (AKA Jared M.F.)!"""
@commands.command()
commands.has_permissions(add_reactions=True,embed_links=True)
async def help(self,ctx,*cog):
"""Gets all cogs and commands of mine."""
try:
@Bilka2
Bilka2 / webhook.py
Last active July 19, 2024 10:51
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"
}
@dikiaap
dikiaap / git-io-custom-url.md
Last active June 19, 2024 01:26
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@tomshen
tomshen / surf-macos.md
Created July 12, 2017 12:55
[WIP] Installing surf 2.0 on macOS 10.12.5
# Install dependencies
brew install cmake enchant gstreamermm gtk+3 libnotify libsecret libsoup webp
git clone git@github.com:hunspell/hyphen.git
cd hyphen
autoreconf -fvi
./configure
make
make install
@toruuetani
toruuetani / record.go
Created January 14, 2017 17:50
Prepend content to file by golang
package main
import (
"bufio"
"fmt"
"log"
"os"
)
func main() {
@ssmereka
ssmereka / gist:6517444
Last active June 16, 2022 09:03
Automatic Cookie Clicker and other cheats for http://orteil.dashnet.org/cookieclicker/
/**
* Auto Cookie Clicker
* Auto click cookies and golden cookies in the Cookie Clicker
* game found here: http://orteil.dashnet.org/cookieclicker/
*/
/**
* How to in Chrome:
* Open the browers and navigate to http://orteil.dashnet.org/cookieclicker/