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
# https://www.cloudflare.com/ips replace the ips-v4 with ips-v6 if needed | |
# https://blog.cloudflare.com/cloudflare-now-supporting-more-ports/ | |
for ip in `wget -qO- http://www.cloudflare.com/ips-v4`; do | |
iptables -I INPUT -p tcp -m multiport --dports 80,443,8080,8443,2052,2053,2082,2083,2086,2087,2095,2096,8880 -s $ip -j ACCEPT | |
done |
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
arrowParens: "always" | |
bracketSpacing: true | |
endOfLine: "lf" | |
htmlWhitespaceSensitivity: "css" | |
jsxBracketSameLine: false | |
jsxSingleQuote: false | |
printWidth: 80 | |
proseWrap: "preserve" | |
quoteProps: "as-needed" | |
requirePragma: false |
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
# For 1 GB Linode | |
max_connections = 75 | |
key_buffer = 32M | |
max_allowed_packet = 1M | |
thread_stack = 128K | |
table_cache = 32 |
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
# Make sure these settings are as follows: | |
KeepAlive Off | |
... | |
# for a 2 gb ram linode | |
<IfModule mpm_prefork_module> | |
StartServers 4 | |
MinSpareServers 12 | |
MaxSpareServers 24 |
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
sudo service mysql stop | |
sudo killall -vw mysqld | |
## write stdout and stderr to resetMySql file | |
sudo mysqld_safe --skip-grant-tables >resetMySql 2>&1 & | |
## updates the password for root to whatever you enter in place of **NEW_PASSWORD** | |
sudo mysql mysql -e "UPDATE user SET Password=PASSWORD('**NEW_PASSWORD**') WHERE User='root';FLUSH PRIVILEGES;" | |
sudo killall -v mysqld | |
## Restart MySql Service | |
sudo service mysql restart |
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
## stop the daemon | |
# sudo /etc/init.d/clamav-freshclam stop | |
## manually start freshclam | |
# sudo freshclam -v | |
## restart daemon | |
# sudo /etc/init.d/clamav-freshclam start |
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
# domain: academicindexing.com | |
# public: /var/www/academicindexing.com/public/ | |
<VirtualHost *:80> | |
# Admin email, Server Name (domain name), and any aliases | |
ServerAdmin [email protected] | |
ServerName www.academicindexing.com | |
ServerAlias academicindexing.com | |
# Index file and Document Root (where the public files are located) |
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 Files by Date** | |
- `ll | grep '2014-12-27’` | |
- `ll | grep '2015-04-28’` | |
**Find Compressed Files** | |
- `find / -type f -exec file {} + | grep compress > compressed_files.txt` (prints to report file) |
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
{ | |
"aar": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] | |
}, | |
"aa": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] |
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
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
NewerOlder