Skip to content

Instantly share code, notes, and snippets.

View akipham15's full-sized avatar

Pham Hoang Khanh akipham15

View GitHub Profile
@akipham15
akipham15 / run.tpl
Created January 27, 2023 12:05 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@akipham15
akipham15 / generate-permutations-with-repetitions.py
Created July 8, 2022 14:32
generate-permutations-with-repetitions
import itertools
import time
CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def generate_char(char_length: int):
for payload in itertools.product(CHARACTERS, repeat=char_length):
yield ''.join(payload)
@akipham15
akipham15 / tinder-api-documentation.md
Created July 9, 2019 18:24 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

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