gpg --gen-key
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
// Taken from: | |
// http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript | |
stringToBoolean = function(string) { | |
switch(string.toLowerCase()){ | |
case "true": case "yes": case "1": return true; | |
case "false": case "no": case "0": case null: return false; | |
default: return Boolean(string); | |
} | |
} |
upstream www { | |
server 127.0.0.1:9999; | |
} | |
upstream redis { | |
server 127.0.0.1:6379; | |
keepalive 1024; | |
} | |
lua_shared_dict srcache_locks 100k; | |
server { |
--- | |
### | |
# Elasticsearch Rolling restart using Ansible | |
### | |
## | |
## Why is this needed? | |
## | |
# | |
# Even if you use a serial setting to limit the number of nodes processed at one |
#!/bin/bash | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Mathias Leppich <[email protected]> | |
# | |
# 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 |