For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| #!/bin/bash | |
| # Author: Alexander Schulz | |
| VHOSTEN="/etc/nginx/sites-enabled/" | |
| if [[ $1 == "-h" ]] || [[ $1 == "--help" ]] | |
| then | |
| echo 'Usage: n2dissite VHOST' | |
| echo 'Disables Nginxs virtualhost VHOST.' | 
| ################################################################## | |
| # /etc/elasticsearch/elasticsearch.yml | |
| # | |
| # Base configuration for a write heavy cluster | |
| # | |
| # Cluster / Node Basics | |
| cluster.name: logng | |
| # Node can have abritrary attributes we can use for routing | 
disable_flush and disable_recovery (TD)| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | 
| # make CTRL+a the 'prefix' ala screen. | |
| bind C-a send-prefix | |
| set -g prefix C-a | |
| # get rid of the tmux standard of CTRL+b | |
| unbind C-b | |
| set -s escape-time 1 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # make it easy to reload the config (CTRL+r) | 
This gist assumes:
| #!/bin/sh | |
| # OPTIONAL FLAGS: | |
| # | |
| # -geoip true | |
| # this will install maxmind geoip and auto update crontab file | |
| # | |
| # -cloudwatch true | |
| # this will install aws cloud watch metrics and send them to aws dashboard | |
| # | 
| <?php namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| /** | |
| * If the incoming request is an OPTIONS request | |
| * we will register a handler for the requested route | |
| */ | |
| class CatchAllOptionsRequestsProvider extends ServiceProvider { |