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
[Desktop Entry] | |
Type=Service | |
Icon=ark | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=compress; | |
Encoding=UTF-8 | |
[Desktop Action compress] | |
Name=Compress Directory into 7zip |
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
--- | |
version: "3" | |
services: | |
plex: | |
image: linuxserver/plex | |
container_name: plex | |
network_mode: host | |
environment: | |
- PUID=1000 | |
- PGID=1000 |
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
x="$1" ; unrar x "$x" |
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 | |
du -a "$1" | cut -d/ -f2 | sort | uniq -c | sort -n | |
exit |
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
find . -type f | sed -e 's/.*\.//' | sort | uniq -c | sort -n | grep -Ei '(tiff|bmp|jpeg|jpg|JPG|png|gif)$' |
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
find "$1" -type f | sed -e 's/.*\.//' | sort | uniq -c |
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
x="$1" ; 7z a -mx0 "$x".7z "$x"; rm -r "$x"; |
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
@echo off | |
if exist "C:\Program Files\Oracle\VirtualBox" set path="%path%;C:\Program Files\Oracle\VirtualBox" | |
set file=%1 | |
set /A size=%2 | |
echo Converting VMDK to VDI | |
VBoxManage clonemedium "%file%.vmdk" "%file%.vdi" --format vdi | |
echo Resizing Image | |
VBoxManage modifymedium "%file%.vdi" --resize %size% | |
if exist "%file%_resized.vmdk" ( |
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 | |
# SOURCE: https://unix.stackexchange.com/revisions/463214/4 | |
# | |
# Compare two directories using rsync and print the differences | |
# CAUTION: options MUST appear after the directories | |
# | |
# SYNTAX | |
#--------- | |
# diff-dirs Left_Dir Right_Dir [options] | |
# |
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
gistup |
NewerOlder