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 |
autoload -U compinit colors vcs_info | |
colors | |
compinit | |
REPORTTIME=3 | |
HISTFILE=~/.zhistory | |
HISTSIZE=5000 | |
SAVEHIST=5000 | |
setopt INC_APPEND_HISTORY | |
setopt EXTENDED_HISTORY |
Create file /etc/systemd/system/[email protected]
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
# Sensible, short .zshrc | |
# Gist page: git.io/vSBRk | |
# Raw file: curl -L git.io/sensible-zshrc | |
# GNU and BSD (macOS) ls flags aren't compatible | |
ls --version &>/dev/null | |
if [ $? -eq 0 ]; then | |
lsflags="--color --group-directories-first -F" | |
else | |
lsflags="-GF" |
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\
is your /
directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git
, the mingw64
in this directory is your root. Find it by using pwd -W
).
If you go to that directory, you will find the typical linux root folder structure (bin
, etc
, lib
and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
# THIS HAS BECOME OBSOLETE. IN BUILD 14342 THIS IS SOLVED, PLEASE USE THAT BUILD INSTEAD (OR MORE RECENT ONES) | |
# See https://github.com/Microsoft/BashOnWindows/issues/91#issuecomment-218379746 | |
# Workaround to build ZSH on #BashOnUbuntuOnWindows. | |
# See https://github.com/Microsoft/BashOnWindows/issues/91#issuecomment-208077623 | |
# RUN EACH LINE INDEPENDENTLY. THIS IS NOT AN AUTOMATIC BASH SCRIPT. | |
# Install dependencies | |
apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo checkinstall |
-- Resource: https://github.com/timotta/wrk-scripts/blob/master/multiplepaths.lua | |
-- Initialize the pseudo random number generator | |
-- Resource: http://lua-users.org/wiki/MathLibraryTutorial | |
math.randomseed(os.time()) | |
math.random(); math.random(); math.random() | |
-- Shuffle array | |
-- Returns a randomly shuffled array | |
function shuffle(paths) |
require 'openssl' | |
# Generate X509 CSR (certificate signing request) with SAN (Subject Alternative Name) extension and sign it with the RSA key | |
def generate_csr(common_name, organization, country, state_name, locality, domain_list) | |
# create signing key | |
signing_key = OpenSSL::PKey::RSA.new 2048 | |
# create certificate subject | |
subject = OpenSSL::X509::Name.new [ | |
['CN', common_name], |
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |