Skip to content

Instantly share code, notes, and snippets.

🚍
' DROP TABLE user_statuses; --

Rich T. rtt

🚍
' DROP TABLE user_statuses; --
Block or report user

Report or block rtt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rtt
rtt / tinder-api-documentation.md
Last active Mar 28, 2020
Tinder API Documentation
View tinder-api-documentation.md

Tinder API documentation

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!)

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

API Details

@rtt
rtt / gist:5a2e0cfa638c938cca59
Created Aug 14, 2014
example python tinderbot
View gist:5a2e0cfa638c938cca59
# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep
@rtt
rtt / repo_unsub.py
Created Feb 20, 2020
mass github repo subscription delete
View repo_unsub.py
import os
import sys
import requests
def get_subscribed_repos_in_organization(organization, personal_access_token):
page = 1
has_more = True
while has_more:
print("GET https://api.github.com/user/subscriptions?per_page=100&page={}".format(page))
response = requests.get('https://api.github.com/user/subscriptions',
@rtt
rtt / gist:5029885
Last active Mar 28, 2019
python / jinja2 bytecode cache for Redis
View gist:5029885
from jinja2 import BytecodeCache
class RedisTemplateBytecodeCache(BytecodeCache):
'''Implements a Jinja2 bytecode cache on top of a pyredis.StrictRedis
connection
See: http://jinja.pocoo.org/docs/2.10/api/#bytecode-cache
'''
def __init__(self, redis_cnx, template_cache_key_prefix=None, ttl=86400):
View keybase.md

Keybase proof

I hereby claim:

  • I am rtt on github.
  • I am arrteetee (https://keybase.io/arrteetee) on keybase.
  • I have a public key ASCb73A1BIuNeI-pg6_hl8nwc-5dcK5_vtsQAXrqNzPhhwo

To claim this, I am signing this object:

View gist:fc75e36c50067d472e5820cbf2fdf6bf
br = brides
wi = wired
vg = vogue
gl = glamour
tr = traveller
ta = tatler
hg = house and garden
gq = gq
lo = love
at = ars technica
@rtt
rtt / humans.txt
Last active Apr 8, 2018 — forked from jessmatthews/humans.txt
New Humans.txt
View humans.txt
# humanstxt.org/
# The humans responsible & technology colophon
# CONDE NAST BRITAIN - DIGITAL
6th and 7th Floor, Vogue House, Mayfair, London.
... occasionally also The Haunch of Venison Yard
# TECH TEAM
View gist:9936330
{
"action": "search",
"result": true,
"data": [{
"oid": "10412366819",
"can_view": false,
"looking_for_type_id": [1, 2, 3, 4, 5],
"familystatus_": 0,
"sexuality_": 1,
"smoker_": 0,
View gist:7909784
> ~ dig @8.8.8.8 a spode.me
; <<>> DiG 9.8.5-P1 <<>> @8.8.8.8 a spode.me
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21871
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
You can’t perform that action at this time.