Skip to content

Instantly share code, notes, and snippets.

@gaudat
gaudat / crackviu.py
Created April 7, 2016 15:39
Viu TV Downloading script. Get the key and IV yourself first.
"""Crackviu"""
import requests
from Crypto.Cipher import AES
f = open('out.ts','wb')
key = b'\x8D\xCB\x59\xBF\x3C\xBD\x4D\xBC\x84\x79\xAF\x65\x53\x1B\xBA\xEF'
iv = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
aes = AES.new(key,AES.MODE_CBC,iv)
for n in range(278):
@gaudat
gaudat / schlong.user.js
Created July 26, 2016 08:24
Schlongs of Slither
/*
The MIT License (MIT)
Copyright (c) 2016 Jesse Miller <[email protected]>
Copyright (c) 2016 Alexey Korepanov <[email protected]>
Copyright (c) 2016 Ermiya Eskandary & Théophile Cailliau and other contributors
https://jmiller.mit-license.org/
*/
// ==UserScript==
// @name Mybot with 100K to circle (was Name Slither.io Bot Championship Edition)
// @namespace https://github.com/j-c-m/Slither.io-bot
@gaudat
gaudat / make_tg_vid_sticker.sh
Created February 1, 2022 04:21
Convert media files to Telegram's video sticker format
#!/bin/sh
# TODO Limit frame rate to 30 FPS
# TODO Limit duration to 3 seconds
ffmpeg -i $1 -c:v vp9 -vf scale=w=512:h=512:force_original_aspect_ratio=decrease -pix_fmt yuva420p $2