Skip to content

Instantly share code, notes, and snippets.

#!/bin/env bash
unzip $1 -d $(basename $1 .zip)
cd $(basename $1 .zip)
# Found out that there might be multiple sxyboxes in the same subdirectory, and the file names
# accross the whole tree stucture are unique. So group them manually.
# for z in *.7z; do 7z e -o$(basename $z .7z) $z; done
7z e .
@Iljo
Iljo / android-mic.sh
Last active May 24, 2020 14:26
Use phone as microphone
#!/bin/bash
# Use phone as microphone
#
# This is a striped down version of the ipwebcam-gst tool, initially
# made for learning purposes, with two little addons:
# - Remove forwarded ports after streaming is finished
# - Increase microphone volume
# - No waiting for enter to end streaming, just press ctrl-C (habit)
#
@Iljo
Iljo / shoro.sh
Last active November 30, 2022 01:40
Mount Android folder locally
#!/bin/env bash
# Local directory to which remote directory should be mounted
LOCAL_DIR=~/mnt
# Remote/Androids directory we want to mount localy, i.e. one of it's
# subdirectories should contain our database file
ANDROID_DIR=/storage/emulated/0/Android/data
# Local port that we want to forward to remotes ssh port