./setup.sh:

#!/usr/bin/env bash
# https://sipb.mit.edu/doc/safe-shell/
set -euf -o pipefail
# set -x
# set -euo pipefail
# set -euxo pipefail












#!/usr/bin/env zsh

#!/usr/bin/env bash
# Tested against Bash 4.4.23(1)-release

set -eu -o pipefail

set -o noclobber    # Avoid overlay files (echo "hi" > foo)
set -o errexit      # Used to exit upon error, avoiding cascading errors
set -o pipefail     # Unveils hidden failures
set -o nounset      # Exposes unset variables

# # set -o nullglob     # Non-matching globs are removed  ('*.foo' => '')
# shopt -s nullglob   # Non-matching globs are removed  ('*.foo' => '')
# # set -o failglob     # Non-matching globs throw errors
# shopt -s failglob   # Non-matching globs throw errors
# # set -o nocaseglob   # Case insensitive globs
# shopt -s nocaseglob # Case insensitive globs
# # set -o globstar     # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')
# shopt -s globstar # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')

# For zsh
setopt -s nullglob   # Non-matching globs are removed  ('*.foo' => '')
setopt -s failglob   # Non-matching globs throw errors
setopt -s nocaseglob # Case insensitive globs
setopt -s globstar # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')

#!/bin/sh

# # sudo apt-get update && sudo apt upgrade && sudo apt install zsh
# sudo apt-get install zsh powerline fonts-powerline zsh-syntax-highlighting
# git clone git@github.com:robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
# cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
# echo 'ZSH_THEME="agnoster"' >> ~/.zshrc
# chsh -s /bin/zsh
# # sudo usermod -s /usr/bin/zsh $(whoami)


# mkdir --verbose ~/.fonts/
# # cp ./fonts/Cascadia.ttf ~/.fonts/
# # fc-cache --force --verbose --really-force


# # sudo apt-get update
# # sudo apt-get -y upgrade


# # sudo dpkg --install ./browsers/google-chrome-stable_current_amd64.deb
# # sudo dpkg --install ./communications/slack-desktop-4.1.2-amd64.deb
# # sudo dpkg --install ./dev/code_1.40.0-1573064499_amd64.deb

# sudo apt install -y \
#     wget curl \
#     git git-core \
#     openssh-server openssh-client \
#     make parallel \
#     vim \
#     lm-sensors \
#     bat \
#     bonnie++ iozone3 hdparm \
#     docker.io docker-compose \
#     apt-transport-https \
#     ca-certificates \
#     curl \
#     gnupg-agent \
#     software-properties-common


# sudo systemctl start docker
# sudo systemctl enable docker
# sudo groupadd docker
# sudo usermod -aG docker "${USER}"
# newgrp docker
# docker version
# docker run hello-world


# sudo systemctl status ssh
# eval "$(ssh-agent -s)"
# chmod 600 ~/.ssh/id_rsa
# ssh-add ~/.ssh/id_rsa
# ssh -T git@github.com


# curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
# echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
# sudo apt update && sudo apt install signal-desktop


# cd /mnt/sata5_fat32/linux/dev/

# # Google has a Linux installer to install go on linux: https://storage.googleapis.com/golang/getgo/installer_linux
# # https://packages.ubuntu.com/bionic/golang

# sudo tar -C /usr/local -xzf ../dev/go1.13.4.linux-amd64.tar.gz
# # # export PATH="${PATH}:/usr/local/go/bin"
# # # # export GOROOT="${HOME}/go"
# # # export GOPATH="${HOME}/go"
# # # source $HOME/.profile
# echo '

# # Large history file
# HISTSIZE=1000000
# SAVEHIST="${HISTSIZE}"

# export PATH="${PATH}:/usr/local/go/bin"
# # export GOROOT="${HOME}/go"
# export GOPATH="${HOME}/go"

# ' >> ~/.zshrc
# mkdir "${HOME}/go"
# source ~/.zshrc

# mkdir --verbose ~/work || true
# # ssh -T git@github.com
# cd ~/work
# git clone git@bitbucket.org:openbankingteam/conformance-suite.git
# git clone git@bitbucket.org:openbankingteam/conformance-dcr.git

(cd ~/work/conformance-suite && make && pwd && make build && make test)
(cd ~/work/conformance-dcr && make && pwd && make build && make test)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Last Updated: Tuesday, 4 August 2020