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
in Location: | |
Apache: | |
Header unset Upgrade | |
Nginx: | |
proxy_hide_header Upgrade; |
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
find /path-to-folder -name "*.tar.gz" -type f -mtime +45 -exec ls {} \; |
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
from https://jsfiddle.net/crossmediapool/0ydw3ka8/ |
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
For TrueNAS SCALE Only | |
sed -i 's/auth.generate_token",\[300/auth.generate_token",\[14400/g' /usr/share/truenas/webui/*.js | |
For TrueNAS CORE Only | |
sed -ie 's/auth.generate_token",\[300/auth.generate_token",\[14400/g' /usr/local/www/webui/*.js | |
#14400 = 4h | |
#129600 = 36h |
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
for i in $(find /somepath -type f -name "DSCF0001.JPG") | |
do | |
path="${i//DSCF0001.JPG/}" | |
cd $path | |
if [ ! -f "outputFinal.avi" ]; then | |
su - www-data -s /bin/bash -c "cd $path; ffmpeg -f image2 -framerate 3 -pattern_type glob -i '*.JPG' -s 3072x1728 outputFinal.avi" | |
fi | |
if [ ! -f "outputFinal.mp4" ]; then | |
su - www-data -s /bin/bash -c "cd $path; ffmpeg -f image2 -framerate 3 -pattern_type glob -i '*.JPG' -s 3072x1728 outputFinal.mp4" | |
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
# Proxmox VE Installation on Hetzner Server via Rescue System | |
Follow these steps to install Proxmox VE on a Hetzner server via the Rescue System. The Rescue System is a Linux-based environment that can be booted into to perform system recovery tasks. We'll be using it to install Proxmox VE. | |
In order to complete the process, it is indeed necessary to first boot into the Rescue System and then connect to it via SSH. This will allow you to run the commands for installing Proxmox VE. Here are the steps: | |
### Starting the Rescue System | |
1. Log into the Hetzner Robot. | |
2. Under "Main Functions; Server" select the desired server and then open the tab "Rescue". |
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
nano /etc/default/grub | |
Change: | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160" ### use practical resolution | |
GRUB_CMDLINE_LINUX="quiet splash video=hyperv_fb:3840x2160" ### use practical resolution | |
update-grub | |
apt install linux-image-extra-virtual | |
Powershell as Admin | |
set-vmvideo -vmname ubuntu -horizontalresolution:3840 -verticalresolution:2160 -resolutiontype single | |
set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket |
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 | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
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
#wget latest File: | |
wget https://dl.gitea.io/gitea/1.16.8/gitea-1.16.8-linux-amd64 | |
#see https://dl.gitea.io/gitea | |
su - git -c "/home/git/gitea manager flush-queues" | |
service gitea stop | |
su - git -c "/home/git/gitea dump" | |
chmod 755 gitea-1.16.8-linux-amd64 | |
chown git.git gitea-1.16.8-linux-amd64 | |
rm gitea |
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
@echo off | |
REM Ordner per Robocopy kopieren | |
robocopy C:\Users\Username\AppData\Local\Thunderbird E:\UsernamesBackup\Mails /MIR /XA:H /W:0 /R:1 /REG /v /np /tee /unilog+:C:\Users\Username\UsernamesBackupLog.log | |
robocopy C:\Users\Username\Documents E:\UsernamesBackup\Dokumente /MIR /XA:H /W:0 /R:1 /REG /v /np /tee /unilog+:C:\Users\Username\UsernamesBackupLog.log | |
robocopy C:\Users\Username\Google E:\UsernamesBackup\Google /MIR /XA:H /W:0 /R:1 /REG /v /np /tee /unilog+:C:\Users\Username\UsernamesBackupLog.log | |
REM Zippen des Logfiles | |
powershell Compress-Archive -LiteralPath 'C:\Users\Username\UsernamesBackupLog.log' -DestinationPath "C:\Users\Username\UsernamesBackupLog.file_%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4%.zip" | |
powershell Compress-Archive -LiteralPath 'C:\Users\Username\UsernamesBackupLog.log' -DestinationPath "E:\UsernamesBackup\UsernamesBackupLog.file_%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4%.zip" |