This file contains hidden or 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
mplayer -lavdopts lowres=1 <videofile> | |
mplayer quiet-file -af volume=10 |
This file contains hidden or 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
# make sure your .bashrc actually loads a .bashrc.local | |
if [ "$TERM_PROGRAM" != "vscode" ]; then | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock | |
fi |
This file contains hidden or 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 | |
tempdir=$(mktemp -d) | |
cd $tempdir | |
curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "browser_download_url.*Linux-64bit.tar.gz"|grep -v extended | cut -d : -f 2,3 | tr -d \" | wget -qi - | |
tar -xf $(ls -1 *.tar.gz) | |
mv hugo ~/bin/ | |
cd - | |
rm -rf $tempdir |
This file contains hidden or 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 | |
CURDIR="$(pwd)" | |
TMPDIR="$(mktemp -d)" | |
cd $TMPDIR | |
wget https://downloads.rclone.org/rclone-current-linux-amd64.deb | |
dpkg -i rclone-current-linux-amd64.deb | |
cd "${CURDIR}" | |
rm -rf "${TMPDIR}" |
This file contains hidden or 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 | |
hcloud version | |
temp_dir=$(mktemp -d) | |
cd $temp_dir | |
wget https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | |
tar -xf hcloud-linux-amd64.tar.gz | |
mv hcloud ~/bin/ | |
cd - | |
rm -rf $temp_dir | |
hcloud version |
This file contains hidden or 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 | |
ls -1 *.JPG | while read filename; do | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
if [ -f "${filename}.CR2" ]; then | |
#echo "${filename}" | |
mkdir -p t | |
mv "${filename}.JPG" t/ | |
fi |
This file contains hidden or 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 php | |
<?php | |
# run from sonarr to mark episode as aquired on myepisodes.com | |
# use for debuging when running from sonarr | |
#fclose(STDIN); | |
#fclose(STDOUT); | |
#fclose(STDERR); | |
#$STDIN = fopen('/dev/null', 'r'); | |
#$STDOUT = fopen('/tmp/application.log', 'wb'); |
This file contains hidden or 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 | |
# concatenate | |
cat *.VOB > output.vob | |
# find streams | |
ffmpeg -i output.vob | |
# find missing subs | |
ffmpeg -analyzeduration 100M -probesize 100M -i output.vob |
This file contains hidden or 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 | |
hcloud version | |
temp_dir=$(mktemp -d) | |
cd $temp_dir | |
wget https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | |
tar -xf hcloud-linux-amd64.tar.gz | |
mv hcloud ~/bin/ | |
cd - | |
rm -rf $temp_dir | |
hcloud version |
This file contains hidden or 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
[Seat:*] | |
autologin-user=USER | |
autologin-timeout=0 |