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
cd /var/www/mautic | |
mkdir app/spool/ | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
chmod -R g+w app/cache/ | |
chmod -R g+w app/logs/ | |
chmod -R g+w app/config/ | |
chmod -R g+w media/files/ | |
chmod -R g+w media/images/ | |
chmod -R g+w translations/ |
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
### IMPROVE SYSTEM MEMORY MANAGEMENT ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness=10 | |
vm.vfs_cache_pressure = 50 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
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
# | |
# /etc/monit.d/beanstalkd | |
# | |
# CentOS notes: | |
# CentOS beanstalkd doesn't have pid file. | |
# in /etc/init.d/beanstalkd modify the daemonize line with a -p /var/run/beanstalk.d | |
# daemon /usr/sbin/daemonize -p /var/run/beanstalkd.pid -u ${BEANSTALKD_USER} $exec $options | |
# | |
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 { | |
server_name cdn.example.com; | |
listen 80; | |
access_log /var/log/nginx/cdn.example.com-access.log; | |
error_log /var/log/nginx/cdn.example.com-error.log info; | |
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; | |
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; |
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
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
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
#!/usr/bin/python | |
import requests | |
import re | |
url = 'https://www.facebook.com/zuck' | |
idre = re.compile('"entity_id":"([0-9]+)"') | |
page = requests.get(url) | |
print idre.findall(page.content) |
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
DELIMITER // | |
DROP PROCEDURE IF EXISTS `auto_partition_manager`; | |
CREATE DEFINER = `root` @`localhost` PROCEDURE `auto_partition_manager`( | |
in partition_frequency varchar(100), | |
in db_schema varchar(100), | |
in input_table_name varchar(100), | |
in partition_column varchar(100) | |
) BEGIN -- Author - Code Monk |
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
a | |
ai | |
am | |
an | |
ang | |
anh | |
ao | |
au | |
ay | |
ba |
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
a | |
ai | |
am | |
an | |
ang | |
anh | |
ao | |
au | |
ay | |
ba |
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
#!/usr/bin/env node | |
/** | |
* Install: | |
* | |
* Download this file and give it executuable persmissions | |
* | |
* Usage: | |
* | |
* Uploading documents |