LiveView Signing Salt
$ mix phx.gen.secret 32Secret Key Base
$ mix phx.gen.secretLiveView Signing Salt
$ mix phx.gen.secret 32Secret Key Base
$ mix phx.gen.secret| [{"id":3911739,"body":"Started by user King'ori\r\nRunning as SYSTEM\r\n[EnvInject] - Loading node environment variables.\r\n[EnvInject] - Preparing an environment for the build.\r\n[EnvInject] - Keeping Jenkins system variables.\r\n[EnvInject] - Keeping Jenkins build variables.\r\n[EnvInject] - Injecting as environment variables the properties content \r\nAWS_ACCOUNT_ID=659153740712\r\nAWS_REGION=us-east-1\r\nAPPLICATION_SLUG=sample\r\n\r\n[EnvInject] - Variables injected successfully.\r\n[EnvInject] - Injecting contributions.\r\nBuilding remotely on EC2 (JenkinsEC2) - Ubuntu - Spot (sir-84asktyj) (spot-instance docker) in workspace /home/ubuntu/workspace/deploy-sample\r\nusing credential zappi-ci-github-auth\r\nCloning the remote Git repository\r\nCloning repository https://github.com/Intellection/zappi-sample\r\n \u003e git init /home/ubuntu/workspace/deploy-sample # timeout=10\r\nFetching upstream changes from https://github.com/Intellection/zappi-sample\r\n \u003e git --version # timeout=10\r\nusing GIT_ |
verify-weave.sh - Goes through all weave pods in the cluster, computes a checksum on the 'status ipam' list and tells you if there are any weave pods that disagree on their peer list. It was used this to identify the different groups of pods in the cluster and decide which we wanted to preserve and which ones we wanted to reset/restart. Another quick script
bump-weave.sh - Used to remove the db file and restart for those weave pods we wished to reset.
database-sizes.sql - To determine the sizes of all of your databases.table-sizes.sql - To determine the sizes of all of the tables in a specific
database. Replace database_name with the name of the database that you want
to check.new-database-with-user.sql - To create a new database and a user that has
access to that database.| # modified from https://github.com/stefanprodan/k8s-prom-hpa/blob/617a98c5d921c3413599bbbb1438dfb125e3bd21/Makefile | |
| SHELL=bash | |
| UNAME := $(shell uname) | |
| PURPOSE:=custom-metrics-adapter | |
| SERVICE_NAME:=custom-metrics-apiserver | |
| ALT_NAMES:="custom-metrics-apiserver.kube-system","custom-metrics-apiserver.kube-system.svc" | |
| SECRET_FILE:=custom-metrics-adapter-serving-certs.yml | |
| certs: gensecret rmcerts |
Running ./test.sh gives the below output:
test1 is empty
test2 is set (empty string)
test3 is set (has string though)
test4 is not set (does not exist at all)
The underlying file system on my machine (Mac OS X) is case sensitive (i.e. "foo" and "Foo" are considered to be different files). Mounting a shared directory (e.g. docker run -i -t -v ~/git:/code imagename) should mount as case sensitive, as well.
| # See https://forums.aws.amazon.com/thread.jspa?threadID=222215 | |
| aws_login=$(aws ecr get-login --region us-east-1); | |
| if echo "$aws_login" | grep -q -E '^docker login -u AWS -p \S{1092} -e none https://[0-9]{12}.dkr.ecr.\S+.amazonaws.com$'; then $aws_login; fi |
| #!/usr/bin/env ruby | |
| # | |
| # Updating a gem normally leads to it's dependencies being updates as well. | |
| # This script only removes the gem itself from the lockfile, allowing to update it without | |
| # touching anything else. | |
| # | |
| # bundle-unlock foobar && bundle | |
| # Source: https://github.com/grosser/dotfiles/blob/master/bin/bundle-unlock |