I hereby claim:
- I am dw72 on github.
- I am dw72 (https://keybase.io/dw72) on keybase.
- I have a public key ASDDnwcjkAMkQ39xgRxcSaYO4Cnl08y6HVOsJ7ekFCs4_Ao
To claim this, I am signing this object:
for file in "$@"; do | |
ffmpeg -i "$file" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "${file%.*}.mp3" | |
done |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = pacman-mirrorlist | |
[Action] | |
Description = Updating pacman-mirrorlist with reflector and removing pacnew... | |
When = PostTransaction | |
Depends = reflector | |
Exec = /usr/bin/bash -c "reflector --country 'Poland' --latest 5 --sort rate --save /etc/pacman.d/mirrorlist && rm -f /etc/pacman.d/mirrorlist.pacnew || true" |
#!/bin/bash | |
OLDIFS=$IFS | |
IFS="," | |
while read class profil lastname firstname pesel | |
do | |
first=$(echo $firstname | iconv -f UTF-8 -t ASCII//translit | cut -c 1-2) | |
last=$(echo $lastname | iconv -f UTF-8 -t ASCII//translit) |
#!/bin/bash | |
config=/etc/vpnc/zsp2.conf | |
start() { | |
echo "Connecting to vpn..." | |
vpnc $config | |
echo "Setting up routing table..." | |
ip r del default dev tun0 |
#!/usr/bin/bash | |
src=$1 | |
dst=${1%.*}.png | |
[[ -z "$2" ]] && type="apps" || type=$2 | |
for i in 16 22 24 32 64 128 | |
do | |
inkscape -z -e $dst -w $i -h $i $src |
I hereby claim:
To claim this, I am signing this object:
#As described here: http://boxstarter.org/Learn/WebLauncher | |
# | |
# or run: | |
# Install-BoxstarterPackage -ComputerName <Computer name> -PackageName <Path to raw gist> -Credentials <Credentials object> | |
Update-ExecutionPolicy Unrestricted | |
#Special windowsy stuff. see http://boxstarter.org/WinConfig | |
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableOpenFileExplorerToQuickAccess | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom |
youtube-dl --extract-audio --audio-format mp3 -f bestaudio --ignore-errors -o "%(title)s.%(ext)s" $@ |
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
docker volume ls -qf dangling=true | xargs -r docker volume rm |
find . -name '*.zip' -print0 | xargs -0 -I{} -n1 -P4 /bin/bash -c 'file="{}"; cd "${file%/*}"; unzip "${file##*/}"' |