Skip to content

Instantly share code, notes, and snippets.

@aoowweenn
aoowweenn / pickerpy.py
Last active March 22, 2021 12:37
A useful script to guess zip/7z password when the head/tail string(s) are known.
## This source code is licensed under WTFPL
## Project page https://shouravbr.github.io/pickerpy
## PickerPY (python3) version 1
## Modified by aoowweenn
from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter import ttk
import subprocess
@aoowweenn
aoowweenn / unzip.py
Last active March 14, 2021 06:19 — forked from doraTeX/unzip.py
Unzip files with specified encoding
#!/usr/bin/env python3
# Unzip files with specified encoding
# ORIGINAL:
# Windowsで作られた日本語ファイル名入りのZIPアーカイブにも対応した unzip 用 Python スクリプト
# https://gist.github.com/doraTeX/0d79d8ff35710a27bc3e5176cc646b60
import sys
import re
@aoowweenn
aoowweenn / playwav.c
Last active April 23, 2016 10:49 — forked from armornick/playwav.c
Play a sound with SDL2 (no SDL_Mixer)
#include <SDL2/SDL.h>
#define MUS_PATH "tmp.wav"
// prototype for our audio callback
// see the implementation for more information
void my_audio_callback(void *userdata, Uint8 *stream, int len);
// variable declarations
static Uint8 *audio_pos; // global pointer to the audio buffer to be played