Skip to content

Instantly share code, notes, and snippets.

@wyattearp
wyattearp / rc4brute.py
Created November 21, 2021 13:48 — forked from cosu/rc4brute.py
Educational tool to bruteforce RC4 encrypted files.
__author__ = 'cdumitru'
import sys
from Crypto.Cipher import ARC4
import numpy
import string
import itertools
from multiprocessing import Pool
from time import time
import cProfile
@wyattearp
wyattearp / mkgif.sh
Last active January 10, 2019 03:17 — forked from synth/gist:d1045e129a5f35d87b69
High quality gifs on Linux from OctoPrint
#!/bin/bash
# used for turning octoprint items into timelapse gifs.
# usage ./mkgif.sh <input_movie> <output_gif>
# - error checking is for people who type things poorly :)
FPS=10
# Option 1
# http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality
PALETTE="pallet-$1.png"
ffmpeg -y -i $1 -vf fps=$FPS,scale=800:-1:flags=lanczos,palettegen "$PALETTE"
ffmpeg -i $1 -i "$PALETTE" -filter_complex "fps=$FPS,scale=800:-1:flags=lanczos[x];[x][1:v]paletteuse" $2