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 | |
| # check root | |
| if [[ `id -u` -ne 0 ]] ; then | |
| echo "Please run this under root." | |
| echo 1 | |
| fi | |
| # Hardening SSH | |
| harden-ssh() { | |
| # backup |
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
| # This file contains important security parameters. If you modify this file | |
| # manually, Certbot will be unable to automatically provide future security | |
| # updates. Instead, Certbot will print and log an error message with a path to | |
| # the up-to-date file that you will need to refer to when manually updating | |
| # this file. | |
| SSLEngine on | |
| # Intermediate configuration, tweak to your needs | |
| SSLProtocol all -SSLv2 -SSLv3 |
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
| # This is an example of the Stack Exchange Tier 1 HAProxy config | |
| # The only things that have been changed from what we are running are: | |
| # 1. User names have been removed | |
| # 2. All Passwords have been remove | |
| # 3. IPs have been changed to use the example/documentation ranges | |
| # 4. Rate limit numbers have been changed to randome numbers, don't read into them | |
| userlist stats-auth | |
| group admin users $admin_user | |
| user $admin_user insecure-password $some_password |
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-NetFirewallRule -DisplayName "File and Sharing Printer (Echo Request - ICMPv4-In)" -Enabled True |
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
| Parameters: | |
| DomainName: | |
| Description: Beanstalk Domain Name of the Application | |
| Type: String | |
| Default: example.com | |
| ConstraintDescription: Must be a valid Domain Name | |
| DomainZoneId: | |
| Description: Domain Name Hosted Zone ID | |
| Type: String | |
| Default: Z2JEFNTHDAMUTJ |
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
| Parameters: | |
| DomainName: | |
| Description: Beanstalk Domain Name of the Application | |
| Type: String | |
| Default: example.com | |
| ConstraintDescription: Must be a valid Domain Name | |
| DomainZoneId: | |
| Description: Domain Name Hosted Zone ID | |
| Type: String | |
| Default: Z2JEFNTHDAMUTJ |
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
| # Python.h: No such file or directory | |
| When using pip to get or upgrade a binary, you get error | |
| > root/Desktop/pyodbc-3.0.3/src/pyodbc.h:41:20: error: Python.h: No such file or directory | |
| ### Root cause | |
| There might be two reasons: | |
| - Python headers were not fully installed yet | |
| ### What to check | |
| Check python versions in your system |
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
| Steps to have remote filesystem mounted locally | |
| Requires: | |
| brew | |
| Mac OS X | |
| Tested: | |
| Mac OSX Sierra | |
| Steps |
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
| Gearman is a generic application framework for farming out work to multiple machines or processes. It allows applications to complete tasks in parallel, to load balance processing, and to call functions between languages. The framework can be used in a variety of applications, from high-availability web sites to the transport of database replication events. | |
| This notes how to install gearman php extension using apt package management. If you want to use PECL, please goes here: http://php.net/manual/en/gearman.installation.php | |
| Ubuntu 14.04 | |
| this comes with PHP 5.6.x | |
| To get gearman, just install php5-gearman package: | |
| $ sudo apt-get install php5-gearman | |
| Ubuntu 16.04 |