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
| +-------+--------+------+-----+---------+-------+ | |
| | Field | Type | Null | Key | Default | Extra | | |
| +-------+--------+------+-----+---------+-------+ | |
| | a | bit(1) | YES | | NULL | | | |
| | b | bit(1) | YES | | NULL | | | |
| | c | bit(1) | YES | | NULL | | | |
| +-------+--------+------+-----+---------+-------+ | |
| +------+------+------+ | |
| | a | b | c | | |
| +------+------+------+ |
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
| #!/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 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
| // 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 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| | |
| 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 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
| 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 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
| 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 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
| 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" \ |