Skip to content

Instantly share code, notes, and snippets.

docker-carrier

Note: This is just a proof of concept (aka. crazy idea). Feedback is very welcome. Please share your thoughts.

docker-carrier makes it super easy to run containerized applications.

Features

  • Easily install and run containerized applications
  • Run multiple versions of the same application
#! /bin/bash
# node deactivation for an all-in-one (aka monolithic) PE master
# ignores mcollective deactivation
# read certnames from STDIN (one per line) and deactivate
while read certname; do
/opt/puppet/bin/puppet license 2>&1 | head - -n2
/bin/su - peadmin -c "/opt/puppet/bin/mco service stop pe-puppet -I $certname"
/opt/puppet/bin/puppet node deactivate $certname
/opt/puppet/bin/puppet cert revoke $certname
@rgaidot
rgaidot / docker-resources.md
Last active February 19, 2025 04:16
Docker Resources All In One - A collection of docker online resources
@plentz
plentz / nginx.conf
Last active May 5, 2026 07:20
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jazzychad
jazzychad / gist:3861848
Created October 9, 2012 22:28
git post-receive hook to tar the repo and send to s3 for backup
#!/bin/bash
# a post-receive hook for git servers to tar the current repo and send to s3 for backup
# save as 'post-receive' and put it in .git/hooks of desired repo(s), chmod +x
# assumes you have the s3cmd program installed and configured (sudo apt-get install s3cmd)
echo "thanks for the push. have a nice day."
# configure your S3BUCKET name, the rest should be automatic
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active April 25, 2026 07:50
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1