r.dbCreate('mydb')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## --------------------------------------------------------------------------------- | |
## Get helmfile binary: https://github.com/roboll/helmfile/releases/latest | |
## Run it: | |
## $ helmfile --namespace ${NAMESPACE} -f ./demo_helmfile.yaml --interactive apply | |
## --------------------------------------------------------------------------------- | |
repositories: | |
- name: nicholaswilde | |
url: https://nicholaswilde.github.io/helm-charts/ | |
- name: bitnami |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# accesslog2csv: Convert default, unified access log from Apache, Nginx | |
# servers to CSV format. | |
# | |
# Original source by Maja Kraljic, July 18, 2017 | |
# Modified by Joshua Wright to parse all elements in the HTTP request as | |
# different columns, December 16, 2019 | |
import csv | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
... | |
id_rsa_pub = File.read("#{Dir.home}/.ssh/id_rsa.pub") | |
config.vm.provision "copy ssh public key", type: "shell", | |
inline: "echo \"#{id_rsa_pub}\" >> /home/vagrant/.ssh/authorized_keys" | |
end |