This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Upload a Picture to imgur. | |
# | |
# * Put this file into your home binary dir: ~/bin/ | |
# * Make it executable: chmod +x | |
# | |
# | |
# Required Software: | |
# ------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find -type d -exec sh -c ' | |
cd "$0" | |
set -- *.jpg | |
if [ -e "$1" ]; then | |
gmic "$@" -fx_montage 4,\""V(H(0,1),H(2,V(3,4)))"\",1,1.0,0,5,0,0,0,255,0,0,0,0,0 -o 0000."$(date)".jpg | |
fi | |
' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=0 | |
for i in *.jpg; do | |
c=$(($c+1)) | |
f="$f $i" | |
test "$(expr $c % 4)" != 0 && continue | |
gmic $f -fx_montage 4,\""V(H(0,1),H(2,V(3,4)))"\",1,1.0,0,5,0,0,0,255,0,0,0,0,0 -o output-$c.jpg | |
f="" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
command -v convert >/dev/null 2>&1 || { echo >&2 "I require convert, but it's not installed. aborting!";exit 1;} | |
command -v identify >/dev/null 2>&1 || { echo >&2 "I require identify, but it's not installed. aborting!";exit 1;} | |
command -v bc >/dev/null 2>&1 || { echo >&2 "I require bc, but it's not installed. aborting!";exit 1;} | |
basedir="$(dirname "$(readlink -f "${1}")")" | |
cd "$basedir" | |
caption=$(yad --entry --editable --no-buttons --width 410 \ | |
--title="Please enter your caption and press enter:") | |
if [ -z "$caption" ]; then | |
printf "no caption was selected, aborting!\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
eval RES=($(yad --form --quoted-output --separator=" " --field "Input file:FL" --field "Output dir:DIR" --field "Duration:NUM")) | |
[[ $? -ne 0 ]] && exit 1 | |
ext=${RES[0]##*.} | |
out=$(basename ${RES[0]} .$ext) | |
$mkdir "${RES[2]}" | |
ffmpeg -i "${RES[0]}" -f segment -segment_time "${RES[2]}" -acodec copy -vcodec copy -reset_timestamps 1 -map 0 "${RES[1]}/$out-%d.$ext" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#expecting 1 arg: | |
# a directory containing images | |
#window size | |
YAD_W=800 | |
YAD_H=800 | |
#max number of files to delete | |
MAX_DELETE=50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#expecting 2 args: | |
# function display or delete | |
# a directory containing images | |
ZENITY_X=0 | |
ZENITY_Y=0 | |
ZENITY_W=500 | |
ZENITY_H=400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT=$(yad --width=600 --height=400 --file-selection --file-filter='*.mp3 *.mkv *.mp4 *.avi *.flv') | |
eval $(yad --width=400 --form --field=start --field=end --field=output:SFL "00:00:00.000" "00:00:00.000" "${INPUT/%.*}-out.${INPUT##*.}" | awk -F'|' '{printf "START=%s\nEND=%s\nOUTPUT=\"%s\"\n", $1, $2, $3}') | |
[[ -z $START || -z $END || -z $OUTPUT ]] && exit 1 | |
DIFF=$(($(date +%s --date="$END")-$(date +%s --date="$START"))) | |
OFFSET=""$(($DIFF / 3600)):$(($DIFF / 60 % 60)):$(($DIFF % 60)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# $Rev: 583 $ $Date: 2014-05-18 18:50:42 +0200 (dg, 18 mai 2014) $ | |
# | |
# vcs | |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos | |
# | |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera | |
# | |
# This program is free software; you can redistribute it and/or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# $Rev: 583 $ $Date: 2014-05-18 18:50:42 +0200 (dg, 18 mai 2014) $ | |
# | |
# vcs | |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos | |
# | |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera | |
# | |
# This program is free software; you can redistribute it and/or |
OlderNewer