Skip to content

Instantly share code, notes, and snippets.

@jstaffans
jstaffans / ebs-snapshot-for-volume.sh
Last active February 25, 2019 14:14 — forked from sap1ens/ebs-snapshot-for-volume.sh
Bash script for Automatic EBS Volume Snapshots and Cleanup on Amazon Web Services. Original - https://github.com/CaseyLabs/aws-ec2-ebs-automatic-snapshot-bash
#!/bin/bash
# Original was modified to do backup only for one specified volume.
set -ue
set -o pipefail
export PATH=$PATH:/usr/local/bin/:/usr/bin
## START SCRIPT
{:user {:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:creds {:username "USERNAME" :password "PASSWORD"}
:sign-releases false}]]}}
@jstaffans
jstaffans / tmux.conf
Last active August 29, 2015 13:58 — forked from shinzui/tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
@jstaffans
jstaffans / recipe.rb
Last active August 29, 2015 13:55 — forked from casualjim/recipe.rb
Chef recipe for downloading a file from Amazon S3.
# Source accepts the protocol region:// with the host as the bucket
# access_key_id and secret_access_key are just that
# for the eu-west-1 region:
s3_file "/var/bulk/the_file.tar.gz" do
source "s3-eu-west-1://your.bucket/the_file.tar.gz"
access_key_id your_key
secret_access_key your_secret
owner "root"
group "root"