Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | 
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/bin/bash | |
| # | |
| # NOTE: This must be run as root! | |
| # | |
| # Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image. | |
| # | |
| # This should really be put in some automated deployment system, but it's a | |
| # good reference point for trying out fig and docker on an AWS or similar cloud. | |
| # | |
| # You can also use this to ensure that your development machine is up and running | 
| input { | |
| file { | |
| #if you are reading files that syslog-ng has written to. | |
| path => ["/var/log/syslog-ng.log"] | |
| type => "syslog" | |
| tags => [ "network" ] | |
| } | |
| tcp { | |
| #if syslog-ng is relaying to logstash on TCP/514 | |
| port => 514 | 
| #!/usr/bin/env sh | |
| open "tel://$*" | 
| #!/bin/bash | |
| # Install Splunk 6.2 on CentOS 7 as a non-root user service that runs on boot with | |
| # systemd. This script also opens the firewall to allow syslog on UDP port 514. Since | |
| # we're running Splunk as non-root, this port is then forwarded to 5514. Configuring a | |
| # syslog input in slunk on UDP 514 will gather this data. Must be run as root | |
| # Create Account | |
| useradd splunk | |
| groupadd splunk | 
| # | |
| # According to AWS Docs - http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html | |
| # | |
| # Rewrites all sender addresses to a single canonical ses verified address. | |
| # | |
| # Expects a vars files at ../vars/PostfixSES-vars.yml with the following variables: | |
| # - ses_host: email-smtp.us-west-x.amazonaws.com | |
| # - ses_port: 587 | |
| # - ses_username: ses-smtp-username | |
| # - ses_password: ses-smtp-password | 
| # | |
| # INPUT - Logstash listens on port 8514 for these logs. | |
| # | |
| input { | |
| udp { | |
| port => "8514" | |
| type => "syslog-cisco" | |
| } | |
| #!/usr/bin/env bash | |
| echo ">>> Installing Mailhog" | |
| # Download binary from github | |
| wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 | |
| # Make it executable | |
| chmod +x ~/mailhog | 
| // Moved to a new home at https://github.com/biinari/zonefile-extract/tree/master/123-reg |