Skip to content

Instantly share code, notes, and snippets.

View imcaspar's full-sized avatar
🎯
Focusing

Caspar Z imcaspar

🎯
Focusing
View GitHub Profile
@imcaspar
imcaspar / videocj.sh
Last active November 30, 2020 10:02
cut/join videos using ffmpeg without quality loss
#!/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.'
@imcaspar
imcaspar / mmcat.sh
Created February 3, 2014 02:17
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 / dump-icon.sh
Last active May 4, 2022 16:23
dump icon from apk file (need aapt)
#!/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