Skip to content

Instantly share code, notes, and snippets.

View suapapa's full-sized avatar

Homin Lee suapapa

View GitHub Profile
@suapapa
suapapa / heic2jpg.sh
Last active December 20, 2024 04:22 — forked from mrmcwake/heicToJpg.sh
Recursively converts .heic files to .jpg for a specified root directory
#!/bin/bash
# Recursively converts all HEIC files to JPG for the specified directory.
# Skips any files that have already been converted.
# Requires ImageMagick
#
# usage: ./heic2jpg.sh [RootDirectory]
#
rootDir=$1
set -e
@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