Notes:
- cannot be used for multiple leaders/quorum
- races between leader updates in servers/clients should be handled by message queuing and/or retry
| error_log logs/error.log debug; | |
| events { | |
| worker_connections 1024; | |
| } | |
| worker_processes 4; | |
| http { | |
| default_type application/octet-stream; |
| config.vm.provider :vmware_fusion do |vm| | |
| vdiskmanager = '/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager' | |
| dir = "#{ENV['HOME']}/vagrant-additional-disk" | |
| unless File.directory?( dir ) | |
| Dir.mkdir dir | |
| end |
| [2013-12-06:10:18:09 dcarter@hoth ~] | |
| $ hr | |
| --------------------------------------------------------------------------------------------------------------------------- | |
| [2013-12-06:10:18:12 dcarter@hoth ~] | |
| $ type hr | |
| hr is aliased to `for i in $(seq 1 $COLUMNS); do echo -n -; done' |
| ssl_certificate cert.pem; | |
| ssl_certificate_key cert.key.pem; | |
| ssl_trusted_certificate cert.ca.pem; | |
| ssl_dhparam cert.dh.pem; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL; | |
| ssl_prefer_server_ciphers on; | |
| ssl_session_cache shared:SSL:10m; |
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 |
| -- GithubAPI | |
| -- @Author : Hyro Vitaly Protago | |
| -- @Version : 1.0.0 | |
| --[[ | |
| INFOS : | |
| - Cannot delete an anonymous gist | |
| ]]-- | |
| GithubAPI = { |
| def has_nested_key?(key, hash) | |
| hash = hash.to_hash | |
| if has_indeterminate_key?(key, hash) | |
| return true | |
| end | |
| hash.values.each do |v| | |
| if v.is_a?(Hash) && has_nested_key?(key, v) | |
| return true | |
| end |
| Copyright (c) 2013 Couller Ltd. and Joseph Ray | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: |