This file contains 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
#!/bin/bash | |
# | |
# Sample for getting temp session token from AWS STS | |
# | |
# aws --profile youriamuser sts get-session-token --duration 3600 \ | |
# --serial-number arn:aws:iam::012345678901:mfa/user --token-code 012345 | |
# | |
# Based on : https://github.com/EvidentSecurity/MFAonCLI/blob/master/aws-temp-token.sh | |
# |
This file contains 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
// plugins/myplugin/Application.cfc | |
... | |
// ignore this variable and what it controls. i just didn't want developers inadvertently | |
// saving rc-scoped queries *on my project*, which could bloat the session | |
variables.framework.allowQueriesInFlashContext = true; | |
include template="/hudexchange_deployment_root/lib/org/framework/_fw1_override_mixin.cfm"; | |
... |
This file contains 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| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.define "vm1" do |machine| | |
machine.vm.hostname = "vm1" | |
machine.vm.network "private_network", ip: "192.168.50.77" | |
end | |
config.vm.define "vm2" do |machine| |
I can't seem to set a variable from a trigger which would be used by a provisioner. Here's a really ugly hack that seems to work.
This file contains 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
root@d53bce2e69a0:/# STR="My horse weighs 3000 kg but the car weighs more" | |
root@d53bce2e69a0:/# awk -v RS=[0-9]+ '{print RT+0;exit}' <<< "$STR" | |
0 | |
root@d53bce2e69a0:/# echo $RT | |
root@d53bce2e69a0:/# |
This is based on Ortus's version, but this returns native CFML arrays/structs.
This file contains 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
FROM jwilder/nginx-proxy | |
COPY ./nginx.tmpl.patch /tmp/ | |
RUN apt-get update && \ | |
apt-get install -y patch && \ | |
patch < /tmp/nginx.tmpl.patch && \ | |
apt-get remove patch -y && \ | |
apt-get autoremove && \ | |
apt-get clean && \ |
This file contains 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
FROM lucee/lucee52:latest | |
ENV DEPLOY_DIR=/opt/lucee/server/lucee-server/deploy | |
WORKDIR $DEPLOY_DIR | |
RUN echo download to deploy dir \ | |
&& curl -O https://raw.githubusercontent.com/Leftbower/cfspreadsheet-lucee-5/master/cfspreadsheet-lucee-5.lex | |
RUN ls -al "$DEPLOY_DIR" \ | |
&& echo "warmup plugin" \ |
Update: I'm using this strategy, at the moment: https://github.com/jamiejackson/docker-secret-hash
This is a helper script for updating a secret in a running service. It does cause the service containers to restart (there's no avoiding that), but it does so as elegantly/conveniently as I know how.
See the motivation for this script, as well as alternatives, here.
Caveat:
- Secret names with a length approaching 64 characters might exhibit weird behavior, as this relies on a version token being tacked onto the secret name. Since the secret name is truncated to 64 characters, a long name might result in a smaller (or nonexistent) version token, leading to uniqueness problems and unexpected behavior.