Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Caspar Z imcaspar

🎯
Focusing
View GitHub Profile
@imcaspar
imcaspar / dump-icon.sh
Last active May 4, 2022
dump icon from apk file (need aapt)
View dump-icon.sh
#!/bin/bash
if [ -z $1 ]; then
echo "Usage:$0 <Apk File>"
exit
fi
IconPath=$(aapt d badging $1 | grep application-icon | tail -1 | cut -d ':' -f 2)
IconPath=${IconPath#"'"}
IconPath=${IconPath%$"'"}
echo $IconPath
echo $1
View mmcat.sh
#!/bin/bash
################################################################################
#
# Script name: MultiMedia Concat Script (mmcat)
# Author: burek (burek021@gmail.com)
# License: GNU/GPL, see http://www.gnu.org/copyleft/gpl.html
# Date: 2012-07-14
#
# This script concatenates (joins, merges) several audio/video inputs into one
@imcaspar
imcaspar / videocj.sh
Last active Nov 30, 2020
cut/join videos using ffmpeg without quality loss
View videocj.sh
#!/bin/bash
#cut/join videos using ffmpeg without quality loss
if [ "$(uname)" == "Darwin" ]; then
if ! [ -x "$(command -v brew)" ]; then
echo 'homebrew is not installed.'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! [ -x "$(command -v ffmpeg)" ]; then
echo 'ffmpeg is not installed.'