Skip to content

Instantly share code, notes, and snippets.

@matheusmota
matheusmota / #wacom-setup-ubuntu.md
Last active June 20, 2022 09:12
My Wacom Intuos Tablet configuration (buttons) for Ubuntu

Installing docker and docker-compose

sudo apt install docker-compose

Create a Docker group.

sudo groupadd docker

Installation

sudo apt-get -y install python3-pip
sudo apt-get -y install npm nodejs
sudo npm install -g configurable-http-proxy
sudo pip3 install jupyterhub jupyterlab

Running jupyterhub as a system service

My settings for VSCode.

Path to the settings.json file:

  • Linux: ~/.config/Code/User on Linux
  • Windows 10: C:\Users\username\AppData\Roaming\Code\User
  • Mac OS X: ~/Library/Application Support/Code/User/
A step by step guide
My Ubuntu Gnome configurations
Best setup for fail2ban for hosts with ssh and apache
Jails (monitored services):
- apache - Blocks failed login attempts use the below jail
- apache-overflows - Blocks the remote host that is trying to request suspicious URLs, use the below jail
- apache-noscript - Block the remote host that is trying to search for scripts on the website to execute, use the below jail
- apache-badbots - Block the remote host that is trying to request malicious bot, use below jail
- http-get-dos - Stops DOS attack from remote host
- ssh - Blocks failed login attempts on the SSH server
export FROM_HOME_FOLDER=/home/matheus
export TO_BACKUP_FOLDER=/home/matheus/backup
cp $TARGET_HOME_FOLDER/.bashrc $TO_BACKUP_FOLDER/
cp $TARGET_HOME_FOLDER/.bash_history $TO_BACKUP_FOLDER/
cp $TARGET_HOME_FOLDER/.bash_aliases $TO_BACKUP_FOLDER/
cp $TARGET_HOME_FOLDER/.gitconfig $TO_BACKUP_FOLDER/
##ssh
cp $TARGET_HOME_FOLDER/.ssh $TO_BACKUP_FOLDER/ -R
@matheusmota
matheusmota / .bash_aliases
Last active March 13, 2019 19:10
my bash_aliases
We couldn’t find that file to show.