Skip to content

Instantly share code, notes, and snippets.

View mike-carey's full-sized avatar
🇺🇦
Sláva Ukrayíni!

Mike Carey mike-carey

🇺🇦
Sláva Ukrayíni!
View GitHub Profile
@mike-carey
mike-carey / params.yml
Last active March 26, 2018 21:00
Shows a concourse example of keeping a mirror in sync with its original
# Original
git_original_uri: # Fill in URI
git_original_branch: master # Change if need be
git_original_private_key: # Fill in SSH key
# Mirror
git_mirror_uri: # Fill in URI
git_mirror_branch: master # Change if need be
git_mirror_private_key: # Fill in SSH key
@mike-carey
mike-carey / docker-compose.yml
Created April 15, 2019 21:43
Proxying HTTP through SSH Tunnel (As local http port)
---
version: '3'
services:
ssh_server:
image: mcareysolstice/ssh
ports:
- "2222:22"
volumes:
- ./id_rsa.pub:/root/.ssh/authorized_keys
@mike-carey
mike-carey / cloudformation.yml
Created August 9, 2020 19:15
When attempting to create an ImageBuilder Recipe, sending duplicates results in a 500 Internal Server Error when passing duplicate components.
Resources:
ImageBuildRecipe:
Type: AWS::ImageBuilder::ImageRecipe
UpdateReplacePolicy: Retain
Properties:
Name: cause-500-error
Version: 1.0.0
Description: Causes a 500 Internal Server Error because there are duplicate components.
Components:
- ComponentArn: "arn:aws:imagebuilder:us-east-1:aws:component/update-linux/1.0.0"
@mike-carey
mike-carey / start-stop-daemon-template
Created August 20, 2020 21:39 — forked from bcap/start-stop-daemon-template
Template file for creating linux services out of executables using the start-stop-daemon
#!/bin/bash
### BEGIN INIT INFO
# Provides: <service name>
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <service description>
### END INIT INFO
@mike-carey
mike-carey / cats.json
Created August 2, 2023 18:37
Example using golang generics
[
{
"name": "Fluffy",
"declawed": false
},
{
"name": "Muffins",
"declawed": true
}
]