File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
This file contains 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 debian:jessie | |
ENV RUBY_VERSION 1.8.7-p374 | |
ENV PATH /usr/local/rvm/gems/ruby-${RUBY_VERSION}/bin:/usr/local/rvm/gems/ruby-${RUBY_VERSION}@global/bin:/usr/local/rvm/rubies/ruby-${RUBY_VERSION}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin | |
RUN set -ex \ | |
&& apt-get update && apt-get install -y curl \ | |
&& gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \ | |
&& curl -sSL https://get.rvm.io | bash -s stable --ruby=${RUBY_VERSION} |
This file contains 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
#!/usr/bin/env bash | |
set -euo pipefail | |
function fatal() { | |
log "$@" | |
exit 1 | |
} | |
function log() { | |
echo "$@" >&2 |
This file contains 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
.env |
This file contains 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 | |
set -euo pipefail | |
: ${DELETE_OLDER_THAN:=0} # When to delete tags by time (days) | |
: ${PROJECT:=${1:-}} # Which project to clean | |
COLOR_RED="\033[0;31m" | |
COLOR_GREEN="\033[0;32m" | |
COLOR_CYAN="\033[0;36m" | |
COLOR_YELLOW="\033[0;33m" |
This file contains 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
Section "InputClass" | |
Identifier "Touchpads" | |
Driver "mtrack" | |
MatchIsTouchpad "on" | |
Option "TrackpadDisable" "0" # Disables trackpad touch input. A value of 1 will enable the trackpad. | |
# A value of 1 will disable tapping and gestures but not movement. A value | |
# of 2 will disable all input. A value of 3 will also disable physical | |
# buttons. Integer. Default is 0. |
This file contains 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 | |
KEY=$1 | |
if [ -z "${KEY}" ] || ! (gpg --list-secret-keys | grep -q ${KEY}); then | |
echo "No key given or no secret key found for '${KEY}'" | |
exit 2 | |
fi | |
# Read password for this key |
- Set up the folder
~/.awsenv/
with the folder structure shown below - Create a
credentials.txt
for every environment folder (see an example below) - Ensure no other user than yourself can view those files
- Create the function
set_aws
in~/.config/fish/functions/set_aws.fish
(see an example below) - Now load any environment using
set_aws <environment>
likeset_aws private
This file contains 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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"gopkg.in/redis.v2" | |
_ "github.com/go-sql-driver/mysql" | |
) |
NewerOlder