Skip to content

Instantly share code, notes, and snippets.

View hdixon's full-sized avatar

Henry Dixon hdixon

View GitHub Profile
@danwalkeruk
danwalkeruk / reddit-feed.py
Last active March 23, 2023 18:22
Script to post new subreddit posts to a Discord channel via webhook
# reddit-feed.py - posts new subreddit posts to a Discord channel via webhook
# author: Dan Walker
# email: code@danwalker.com
# url: https://danwalker.netlify.app/python-discord-reddit-feed/
# created: 2020-08-13
import requests
import json
import time
from discord_webhook import DiscordWebhook, DiscordEmbed
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Thomas Davis",
"label": "Web Developer",
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focused developer who prioritizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
"website": "https://lordajax.com",
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active May 5, 2024 18:13
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons:
@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": "+"
},
{
@dayt0n
dayt0n / bfEnc.py
Created February 1, 2018 21:36
bruteforce iTunes backup encryption password with dictionary attack
#
# bfEnc.py - bruteforce iTunes backup encryption password with dictionary attack
#
# to use, plug in device with encryption turned on and let this program run
#
# (c)dayt0n 2018
#
import os
import sys
@nl5887
nl5887 / transfer.fish
Last active March 22, 2022 09:07
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@rtt
rtt / tinder-api-documentation.md
Last active June 21, 2024 04:19
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)