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
(?<=[ ](["']\b))(?:(?=(\\?))\2.)*?(?=\1) |
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
location ~ ^.*/(?P<request_basename>[^/]+\.(mp4))$ { | |
add_header Content-Disposition 'attachment; filename="$request_basename"'; | |
} |
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
db_load -T -t hash -f /etc/vsftpd/virtual_users /etc/vsftpd/virtual_users.db |
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
Show configuration | |
ESXi 5.5 -> /opt/hp/hpssacli/bin/hpssacli ctrl all show config | |
ESXi 6.5 -> /opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show config | |
Controller status | |
ESXi 5.5 -> /opt/hp/hpssacli/bin/hpssacli ctrl all show status | |
ESXi 6.5 -> /opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show status | |
Show detailed controller information for all controllers | |
ESXi 5.5 -> /opt/hp/hpssacli/bin/hpssacli ctrl all show detail |
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
firewall-cmd --permanent --zone=public --add-service=http | |
firewall-cmd --permanent --zone=public --add-service=https | |
firewall-cmd --zone=public --permanent --add-port=5000/tcp | |
firewall-cmd --reload |
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
epel-release | |
wget nano htop nload mc net-tools screen iperf3 |
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 | |
mysql.server start | |
mysql -u root -e "SET PASSWORD FOR root@'localhost' = PASSWORD('admin');" |
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
location ~ ^.*/(?P<request_basename>[^/]+\.(mp4))$ { | |
add_header Content-Disposition 'attachment; filename="$request_basename"'; | |
} | |
location ~ ^.*/(?P<request_basename>[^/]+\.(mp3))$ { | |
add_header Content-Disposition 'attachment; filename="$request_basename"'; | |
} | |
location ~ ^.*/(?P<request_basename>[^/]+\.(ogg))$ { | |
add_header Content-Disposition 'attachment; filename="$request_basename"'; |
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
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; | |
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; | |
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 | |
su postgres -c "pg_dump IBSng" > IBSng_"`date +%Y-%m-%d`".sql | |
#tar czf IBSng_"`date +%Y-%m-%d`".tar.gz IBSng_"`date+%Y-%m-%d`".sql | |
DELDATE=$(date -d "-31 days" +"%Y-%m-%d") | |
HOST=aaaa | |
USER=ssss | |
PASS=zzzzz | |
ftp -inv $HOST << EOF | |
user $USER $PASS |
OlderNewer