Skip to content

Instantly share code, notes, and snippets.

View PurpShell's full-sized avatar
🎯
Focusing

Rajeh Taher PurpShell

🎯
Focusing
View GitHub Profile
@sporsh
sporsh / packet-adb.c
Created April 19, 2013 17:26
Android Debug Bridge (ADB) dissector for Wireshark
/*
* packet-adb.c
*
* Routines for Android Debug Bridge (ADB) protocol dissection
* Author: Geir Sporsheim <[email protected]>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@simon04
simon04 / m4a2ogg
Created February 15, 2015 17:39
Converts m4a files to Ogg Vorbis using ffmpeg
#!/bin/bash
# Author: Simon Legner <[email protected]>
convert () {
in="$1"
out="${in%.m4a}.ogg"
ffmpeg -i "$in" \
-acodec libvorbis -aq 4 -vn -ac 2 \
-map_metadata 0 \
"$out"
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 18, 2024 12:25
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@PurpShell
PurpShell / log.js
Last active September 4, 2024 12:59
A monitoring script based on Tulir's wa-web/web-scripts logging script, for 2.3000x
if (!window.decodeStanza) {
window.decodeStanza = require("WAWap").decodeStanza;
window.encodeStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeStanza(e, t);
console.log('RECV', result.toString(), result);