Skip to content

Apps

Chrony

Server

sudo apt install chrony
sudo service chrony restart
# /etc/chrony/chrony.conf
confdir /etc/chrony/conf.d
pool 2.debian.pool.ntp.org iburst
sourcedir /run/chrony-dhcp
sourcedir /etc/chrony/sources.d
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
ntsdumpdir /var/lib/chrony
logdir /var/log/chrony
maxupdateskew 100.0
rtcsync
makestep 1 3
leapsectz right/UTC
allow 192.168.1.0/24
authselectmode ignore
manual

Client

sudo apt install chrony
sudo service chrony restart
# Check that server is running
sudo chronyc sources -v -a
sudo chronyc clients
sudo chronyc ntpdata <Server IP>
# Check that port 123 is running
nc -zvu <Server IP> 123
chronyc activity
chronyc tracking
# /etc/chrony/chrony.conf
server 192.168.1.198 iburst trust
authselectmode ignore
confdir /etc/chrony/conf.d
pool ntp.ubuntu.com        iburst maxsources 4
pool 0.ubuntu.pool.ntp.org iburst maxsources 1
pool 1.ubuntu.pool.ntp.org iburst maxsources 1
pool 2.ubuntu.pool.ntp.org iburst maxsources 2
sourcedir /run/chrony-dhcp
sourcedir /etc/chrony/sources.d
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
ntsdumpdir /var/lib/chrony
logdir /var/log/chrony
maxupdateskew 100.0
rtcsync
makestep 1 3
leapsectz right/UTC

Ubuntu

sudo apt install unzip build-essential

brew

(
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
  echo >> /home/nicholas/.bashrc && \
  echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/nicholas/.bashrc && \
  eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
  brew install gcc
)
# should add this to dotfiles
brew leaves > my_brew.txt
xargs brew install < my_brew.txt

Chrome OS

export CI=1
sudo chmod -R nicholas:nicholas /home/linuxbrew

gh

brew install gh

mc

brew install minio/stable/mc

Snyk

sudo npm install -g snyk
snyk auth

nanorc

wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
echo "set tabsize 2" >> ~/.nanorc
echo "set tabstospaces" >> ~/.nanorc

Chromebook

curl "https://chromium.googlesource.com/apps/libapps/+/master/hterm/etc/hterm-notify.sh?format=TEXT"| base64 --decode | sudo tee /usr/bin/notify && sudo chmod +x /usr/bin/notify
curl "https://chromium.googlesource.com/apps/libapps/+/master/hterm/etc/hterm-show-file.sh?format=TEXT"| base64 --decode | sudo tee /usr/bin/show-file && sudo chmod +x /usr/bin/show-file
curl "https://chromium.googlesource.com/apps/libapps/+/master/hterm/etc/osc52.sh?format=TEXT"| base64 --decode | sudo tee /usr/bin/copy && sudo chmod +x /usr/bin/copy

semver

sudo wget -O /usr/bin/semver https://github.com/fsaintjacques/semver-tool/raw/master/src/semver
sudo chmod +x /usr/bin/semver

pre-commit

brew install pre-commit

PowerShell

# Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of packages after we added packages.microsoft.com
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh

mkdocs

(
  wget https://bootstrap.pypa.io/get-pip.py
  python get-pip.py
  pip install mkdocs
)

mkdocs-material

pip install mkdocs-material mkdocs-minify-plugin

2