anthony / Find orphaned photos in Immich
0 curtidas
0 bifurcações
1 arquivos
Última atividade
1 | #!/bin/bash |
2 | |
3 | srcPath='/mnt/Data/Фото/!_SORT/SamsungSort' |
4 | ownerId='b3f46eb5-81a6-4283-aade-d726823d7af4' |
5 | |
6 | ######################################################## |
7 | |
8 | source .env || exit 10 |
9 | libHostPath="$UPLOAD_LOCATION" |
10 | libContainerPath='/usr/src/app/upload' |
anthony / ltrim(), rtrim(), and trim() in awk
0 curtidas
0 bifurcações
1 arquivos
Última atividade
1 | function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } |
2 | function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } |
3 | function trim(s) { return rtrim(ltrim(s)); } |
4 | BEGIN { |
5 | # whatever |
6 | } |
7 | { |
8 | # whatever |
9 | } |
10 | END { |
anthony / Backup your project to another server (scp)
0 curtidas
0 bifurcações
1 arquivos
Última atividade
1 | #!/bin/bash |
2 | ##################################################################### |
3 | # # |
4 | # Stupidly simple backup script for own projects # |
5 | # # |
6 | # Author: Anthony Axenov (Антон Аксенов) # |
7 | # Version: 1.0 # |
8 | # License: WTFPLv2 More info: https://axenov.dev/?p=1423 # |
9 | # # |
10 | ##################################################################### |
anthony / Backup files synced from Syncthing
0 curtidas
0 bifurcações
2 arquivos
Última atividade
1 | # Daemon file |
2 | # Place or symlink it to /etc/systemd/system/inotifywait-cp.service |
3 | # Enable and start: sudo systemctl enable --now inotifywait-cp |
4 | # Check it: sudo systemctl status inotifywait-cp |
5 | |
6 | [Unit] |
7 | Description=Photosync from android |
8 | |
9 | [Service] |
10 | Type=simple |
anthony / CUE-sheet generator for youtube-dl
0 curtidas
0 bifurcações
1 arquivos
Última atividade
1 | #!/bin/bash |
2 | # CUE-sheet generator for youtube-dl |
3 | |
4 | # Usage: |
5 | # 0. Install 'jq' utility |
6 | # 1. Download any audio file with metadata from YouTube or Youtube Music, e.g. |
7 | # $ youtube-dl \ |
8 | # --extract-audio \ |
9 | # --audio-format flac \ |
10 | # --audio-quality 0 \ |
anthony / Set custom display resolution using xrandr
0 curtidas
0 bifurcações
1 arquivos
Última atividade
1 | #!/bin/bash |
2 | ######################################################################### |
3 | # # |
4 | # Set display resolution # |
5 | # # |
6 | # Author: Anthony Axenov (Антон Аксенов) # |
7 | # Version: 1.0 # |
8 | # License: WTFPL # |
9 | # # |
10 | ######################################################################### |
Próximo
Anterior