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
services: | |
db: | |
image: postgres:16 | |
healthcheck: | |
test: ["CMD-SHELL", "su", "-", "postgres", "-c", "pg_isready", "-d", "postgres"] | |
interval: 1s | |
timeout: 3s | |
retries: 10 | |
start_period: 10s |
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
function handler(event) { | |
var request = event.request; | |
var headers = request.headers; | |
// basic auth | |
var authUser = 'username'; // Specify any value | |
var authPass = 'password!'; // // Specify any value | |
var authString = 'Basic ' + (authUser + ':' + authPass).toString('base64'); | |
if (typeof headers.authorization == 'undefined' || headers.authorization.value != authString) { |
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
sudo yum update -y | |
sudo yum install -y docker | |
sudo usermod -a -G docker ec2-user | |
newgrp docker | |
sudo chkconfig docker on | |
docker swarm init | |
echo '{"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"], "tlsverify": true, "tlscacert":"/home/ec2-user/ca.pem","tlscert":"/home/ec2-user/server-cert.pem","tlskey":"/home/ec2-user/server-key.pem"}' | sudo tee /etc/docker/daemon.json | |
sudo cp /lib/systemd/system/docker.service /etc/systemd/system/ | |
sudo sed -i 's/\ -H\ fd:\/\///g' /etc/systemd/system/docker.service | |
sudo systemctl daemon-reload |
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
EXEC sp_MSForEachDB 'USE [?]; IF DB_NAME() LIKE ''easyfis%'' | |
BEGIN | |
Select DB_NAME() | |
END | |
' |
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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGKIIyNyRUdxb66K4VusveHaDQ/mtk9b7Fl9WQFEtqiL claude@equinox |
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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG7f6XzqXqOQOR1h6NV0cOaUYsoDDSYp4N8Se0He8Hq5 claude@hyron |
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
git fetch -a --prune && \ | |
git branch --remote --merged origin/master | \ | |
grep -v -e "origin/master" -e "origin/develop" | \ | |
sed -s 's/\ \ //g' | \ | |
sed -s 's/origin\///' | \ | |
xargs -P 8 -i git push --delete origin {} |
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
alias genpass="strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo" |
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
This is a test gist. |