start new:
tmux
start new with session name:
tmux new -s myname
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local1 notice | |
| #log loghost local0 info | |
| maxconn 4096 | |
| #chroot /usr/share/haproxy | |
| user haproxy | |
| group haproxy | |
| daemon | |
| #debug |
| # Source accepts http/https or the protocol region:// with the host as the bucket | |
| # access_key_id and secret_access_key are just that | |
| # Note resource name has changed from s3_file to s3_aware_remote_file | |
| # for the eu-west-1 region: | |
| s3_aware_remote_file "/var/bulk/the_file.tar.gz" do | |
| source "s3-eu-west-1://your.bucket/the_file.tar.gz" | |
| access_key_id your_key | |
| secret_access_key your_secret | |
| owner "root" |
| require 'rubygems' | |
| require 'chef/encrypted_data_bag_item' | |
| secret = Chef::EncryptedDataBagItem.load_secret('data_bag_key') | |
| data = {"id" => "mysql", "root" => "some secret password"} | |
| encrypted_data = Chef::EncryptedDataBagItem.encrypt_data_bag_item(data, secret) | |
| FileUtils.mkpath('data_bags/passwords') | |
| File.open('data_bags/passwords/mysql.json', 'w') do |f| | |
| f.print encrypted_data.to_json |
| { | |
| "template": "logstash-*", | |
| "settings" : { | |
| "number_of_shards" : 1, | |
| "number_of_replicas" : 0, | |
| "index" : { | |
| "query" : { "default_field" : "@message" }, | |
| "store" : { "compress" : { "stored" : true, "tv": true } } | |
| } | |
| }, |
From https://gist.github.com/3050224
From http://blog.smartcore.net.au/smartos-the-basics/
| hostssl replication replicator 5.6.7.8 md5 |
| #!KAMAILIO | |
| # | |
| # sample config file for dispatcher module | |
| # - load balancing of VoIP calls with round robin | |
| # - no TPC listening | |
| # - don't dispatch REGISTER and presence requests | |
| # | |
| # Kamailio (OpenSER) SIP Server v3.2 | |
| # - web: http://www.kamailio.org | |
| # - git: http://sip-router.org |
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerName elasticsearch.domain.tld | |
| ServerAlias kibana.domain.tld | |
| DocumentRoot /path/to/kibana/docroot | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride None | |
| </Directory> | |
| <Directory /path/to/kibana/docroot> |
| #!/bin/bash | |
| read -e -n1 -p "flash pfSense to CF card [y/N]: " OPTION | |
| if [ "$OPTION" == "y" ]; then | |
| imgfile=pfSense-2.1-RELEASE-1g-i386-nanobsd.img.gz | |
| if [ ! -f $imgfile ]; then | |
| read -e -n1 -p "download $imgfile [y/N]: " OPTION | |
| if [ "$OPTION" == "y" ]; then |