Skip to content

Instantly share code, notes, and snippets.

View suapapa's full-sized avatar

Homin Lee suapapa

View GitHub Profile
@suapapa
suapapa / extract_rtp.sh
Created November 6, 2019 09:15 — forked from lanuma/extract_rtp.sh
Extract RTP from pcap to raw and convert to wav
#!/bin/bash
pcap_file="voip.pcap"; #nama file pcap
audio_output="suara.wav"; #output audio
raw_file="suara.raw"; #nama raw file hasil extract
if [ $EUID -ne 0 ]; then
echo "This script must be run as root";
exit 1;
fi
@suapapa
suapapa / heicToJpg.sh
Last active August 28, 2022 22:41 — forked from mrmcwake/heicToJpg.sh
Recursively converts .heic files to .jpg on linux for a specified root directory (coming from an iOS11 device over USB)
#!/bin/bash
# Recursively converts all HEIC files to JPG for the specified directory. Skips any files that have already
# been converted. Requires tifig, download latest release from github:
# https://github.com/monostream/tifig/releases and install at /usr/bin/tifig
# (or add the install location you choose to your $PATH)
#
# usage: ./heicToJpg.sh [RootDirectory]
#
rootDir=$1
if [ -z "$rootDir" ]