Skip to content

Instantly share code, notes, and snippets.

@scraperdragon
scraperdragon / chrome2requests.py
Created August 22, 2012 11:25
Convert Chrome headers to Python's Requests dictionary
dict([[h.partition(':')[0], h.partition(':')[2]] for h in rawheaders.split('\n')])
@rafaelbiriba
rafaelbiriba / install_ffmpeg_libfdkaac.sh
Last active July 25, 2024 03:04
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@MohammadHosseinGhorbani
MohammadHosseinGhorbani / conversation.py
Last active May 8, 2024 09:10
Conversations in pyrogram (no extra package needed)
from pyrogram import Client, filters
app = Client('CONVERSATION_EXAMPLE')
conversations = {}
infos = {}
def conv_filter(conversation_level):
def func(_, __, message):
return conversations.get(message.from_user.id) == conversation_level
@AadilGillani
AadilGillani / smali-cheatsheet.txt
Created October 1, 2021 06:49
Smalli Cheat-Sheet
A little help in Smali
(To be supplemented)
#
general information
#
Smali
Types
Dalvik bytecode has two main type classes, primitive types and reference types. Reference types are objects and arrays, everything else is primitive.
@rutcreate
rutcreate / README.md
Last active May 7, 2025 21:14
Install Python 3.10.x on Ubuntu 20.04

Prerequisite

sudo apt update
sudo apt install software-properties-common -y

Add custom APT repository

@X-Gorn
X-Gorn / acefile-bypasser.user.js
Last active December 4, 2024 18:38
AceFile auto redirect to drive link. drive link will automatically copied to the clipboard.
// ==UserScript==
// @name Acefile Bypasser
// @namespace https://xgorn.is-a.dev/
// @downloadURL https://gist.github.com/X-Gorn/eb4de448e08509d414f34b55b5551720/raw/acefile-bypasser.user.js
// @updateURL https://gist.github.com/X-Gorn/eb4de448e08509d414f34b55b5551720/raw/acefile-bypasser.user.js
// @version 1.0.1
// @description AceFile auto redirect to drive link. drive link will automatically copied to the clipboard.
// @author Noid Darkstar
// @include /^https?:\/\/acefile.co\/(?:f|player)\/\w+(?:\/[-_\w]+)?/
// @icon https://www.google.com/s2/favicons?sz=64&domain=acefile.co