As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
Homebrew build logs for libspatialite on macOS 10.10.5 | |
Build date: 2018-12-22 23:11:38 |
/* ================================================================================ Pivot example with variable number of columns in the output. ================================================================================ example data is straight forward, imagine a table with a customer identifier, an invoice date and an amount. */ DROP TABLE IF EXISTS invoice;
#!/bin/bash | |
set -e | |
# Update to latest version of code | |
cd /home/<YOUR_USERNAME>/my_app | |
git fetch | |
git reset --hard origin/main | |
mix deps.get --only prod | |
# Optional CI steps |
#!/bin/bash | |
set -e | |
# Navigate to app directory | |
cd /home/<YOUR_USERNAME>/my_app | |
# Find the current release and the second newest release | |
current_release=$(ls ../releases | sort -nr | head -n 1) | |
previous_release=$(ls ../releases | sort -nr | tail -n +2 | head -n 1) |