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 | |
# Script to copy specific media files (IMG*.jpg, VID*.mp4, Screenshot*.png) to a target directory | |
# and set their modification times based on various date patterns while avoiding duplicates | |
# Check if destination directory is provided | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <target_directory>" | |
exit 1 | |
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 | |
# Global variables | |
OUTPUT_UNIT="MB/s" | |
FILE_SIZE="20g" | |
BLOCK_SIZE="16k" | |
RUNTIME="60" | |
TEST_FILE="$PWD/fio_test_file" | |
IODEPTH="32" | |
NUMJOBS="4" |
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 | |
# Global variables for output unit and IOzone parameters | |
OUTPUT_UNIT="MB/s" | |
FILE_SIZE="4G" | |
RECORD_SIZE_MIN="4k" | |
RECORD_SIZE_MAX="16M" | |
TEST_TYPES="-a -i 0 -i 1 -i 2" | |
TEST_FILE="$PWD/iozone_test_file" | |
ITERATIONS=3 |
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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
eth0: | |
dhcp4: false | |
dhcp6: false | |
eth1: |
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/sh | |
# https://devtidbits.com/2015/11/30/add-to-and-change-ubuntus-motd/ | |
printf " $(tput -T xterm bold)Name:$(tput -T xterm sgr0) $(hostname)\n" | |
printf " $(tput -T xterm bold)Role:$(tput -T xterm sgr0) {{ ROLE }}\n" | |
printf "\n" | |
printf " $(tput -T xterm bold)Services running on this server:\n$(tput -T xterm sgr0)" | |
printf " $(tput -T xterm bold)$(tput -T xterm setaf 6)awswatcher$(tput -T xterm sgr0) this service checks uploads from {{ ENV }}admin.domain.net on folder /home/{{ ENV }}{{ ROLE }}/api/public/media/uploads\"\n" | |
printf "\n" |
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 | |
# https://forums.insynchq.com/t/change-check-mark-icon-size-in-caja/7392/8 | |
ICON_SIZES=(8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 72x72 96x96) | |
temp=$(mktemp -d) | |
pushd "$temp" | |
for icon_size in "${ICON_SIZES[@]}"; do | |
mkdir $icon_size |
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
iface tun0 inet manual | |
pre-up ip route delete 172.18.0.0/16 || true | |
pre-up service openvpn start || true | |
post-down service openvpn stop | |
post-down ip route add blackhole 172.18.0.0/16 || true |
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
forest:~# aptitude show mail-transport-agent | |
No current or candidate version found for mail-transport-agent | |
Package: mail-transport-agent | |
State: not a real package | |
Provided by: citadel-mta, courier-mta, dma, esmtp-run, exim4-daemon-heavy, exim4-daemon-light, masqmail, msmtp-mta, nullmailer, postfix, sendmail-bin, ssmtp, xmail |
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
auto eth0 | |
iface eth0 inet manual | |
pre-up ip link set eth0 up | |
post-up ip addr add 190.139.257.1/28 dev eth0 | |
post-up ip addr add 190.139.257.2/28 dev eth0 | |
post-up ip route add default via 190.139.257.14 dev eth0 |
NewerOlder