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 | |
mysql.server start | |
mysql -u root -e "SET PASSWORD FOR root@'localhost' = PASSWORD('admin');" |
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
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 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
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 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
https://www.unixmen.com/install-vsftp-with-virtual-users-on-centos-rhel-scientific-linux-6-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 | |
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 |
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 -r -np -nH -e robots=off -R index.html http://filedump.dl/ |
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 -m ftp://username:[email protected] | |
# you can use -N to ignore existing files in the destination, in case the original transfer was interrupted for some reason | |
# tip for windows users with slash domains: | |
wget -m ftp://brinkster%2Fusername:[email protected] |
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
https://certifytheweb.com/ |
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
ALTER TABLE countries CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; |
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
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | |
Connect-VIServer -server vcenter.test.com |