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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ |
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 | |
# Look for subdirectories starting with a letter | |
# and reset all containers | |
for d in [a-z]* | |
do | |
( cd "$d" && docker-compose down --remove-orphans && docker-compose up -d ) | |
done |
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
su zimbra | |
zmprov -l gaa | grep -v ^admin@.* > /tmp/all-accounts.txt | |
for i in `cat /tmp/all-accounts.txt`; do zmprov deleteAccount $i && echo $i $'\u2713'; done; |
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
zmprov mc default zimbraFeatureChangePasswordEnabled FALSE | |
zmprov mc default zimbraPasswordLocked TRUE | |
zmprov mc defaultExternal zimbraFeatureChangePasswordEnabled FALSE | |
zmprov mc defaultExternal zimbraPasswordLocked 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
# Renew Let's Encrypt Certificates | |
/usr/syno/sbin/syno-letsencrypt renew-all | |
# Disable Firewall | |
/usr/syno/bin/synofirewall --disable |
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
# Access mysql console | |
mysql -u root -p | |
# Select Database | |
use zabbix; | |
# List existing users | |
select * from users; | |
# Update Password |
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 | |
# Change to the script's directory & create directory | |
cd $(dirname "$(readlink -f "$0")") | |
mkdir -p ./dbdumps | |
# Start mysql service | |
docker --log-level=error compose up -d mysql | |
# Wait |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.com 1.example.com; | |
# Redirect all HTTP links to the matching HTTPS page | |
location / { | |
return 301 https://$host$request_uri; | |
} | |
} |