foo@bar:~$ docker run \
--detach \
--name sentry-redis \
redis:alpine
foo@bar:~$ docker run \
--detach \
--name sentry-postgres \
--env POSTGRES_PASSWORD=<password> \
--env POSTGRES_USER=<username> \
This file contains hidden or 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 | |
echo "Install dependencies now..." | |
sudo -- sh -c "apt update && apt install -y curl fzf gawk git python3-pygments sqlite3 ssh-askpass wget zsh" | |
if [ -f ~/.zshrc ]; then | |
mv ~/.zshrc ~/.zshrc.`date +%s`.bak | |
fi | |
if [ -d ~/.oh-my-zsh ]; then | |
echo "Oh My ZSH exists, update it now..." | |
git -C ~/.oh-my-zsh pull |
This file contains hidden or 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
" =========================================================================== " | |
" Github URL | |
" https://gist.githubusercontent.com/grammy-jiang/162f271c59a97a424d228f0de10d05e9/raw | |
" Shorten URL | |
" https://git.io/JvpSM | |
" =========================================================================== " | |
set encoding=utf-8 | |
if empty(glob('~/.vim/autoload/plug.vim')) |
sudo apt install --yes xinit xterm x11-xserver-utils i3 xss-lock xdg-utils
This file contains hidden or 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
# firewalld config file | |
# default zone | |
# The default zone used if an empty zone string is used. | |
# Default: public | |
DefaultZone=public | |
# Minimal mark | |
# Marks up to this minimum are free for use for example in the direct | |
# interface. If more free marks are needed, increase the minimum |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<zone> | |
<short>Public</short> | |
<description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description> | |
<interface name="eth0"/> | |
<service name="dhcpv6-client"/> | |
<service name="mosh"/> | |
</zone> |
This file contains hidden or 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
[options] | |
UseSyslog | |
[opencloseSSH] | |
sequence = 7000,8000,9000 | |
seq_timeout = 5 | |
tcpflags = syn | |
start_command = /usr/bin/firewall-cmd --zone=public --add-service=ssh | |
cmd_timeout = 10 | |
stop_command = /usr/bin/firewall-cmd --zone=public --remove-service=ssh |
This file contains hidden or 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
# control if we start knockd at init or not | |
# 1 = start | |
# anything else = don't start | |
# PLEASE EDIT /etc/knockd.conf BEFORE ENABLING | |
START_KNOCKD=1 | |
# command line options | |
KNOCKD_OPTS="--interface eth0" |
This file contains hidden or 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
" ============================================================================= | |
" Github URL | |
" https://gist.githubusercontent.com/grammy-jiang/ae2218062be5f493e24492ad6b62b3a2/raw | |
" Shorten URL | |
" https://git.io/JvpS2 | |
" ============================================================================= | |
set nocompatible | |
" Vim5 and later versions support syntax highlighting. Uncommenting the next |
foo@bar:~$ sudo -- sh -c "timedatectl set-timezone Australia/Sydney && date" && \
sudo -- sh -c "apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoremove -y" && \
sudo -- sh -c "apt-get install -y vim-nox && wget --output-document=/etc/vim/vimrc.local https://git.io/JvpS2" && \
sudo -- sh -c "apt-get install -y curl direnv exa git lnav mosh tig tree vifm watchman" && \
sudo -- sh -c "apt-get install -y python3-pip python3-testresources python3-pywatchman"