Skip to content

Instantly share code, notes, and snippets.

@matheusmota
matheusmota / php7.2-apache-pgsql.Dockerfile
Last active September 6, 2018 20:14 — forked from ben-albon/php5.6-pgsql.Dockerfile
Docker PHP 7 Image with PostgreSQL Driver (pgsql)
FROM php:7.2.9-apache
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql pgsql
COPY src/ /var/www/html
@matheusmota
matheusmota / dataviz-reference.png
Last active June 15, 2019 18:43
References for DataViz - Choosing a good graph
dataviz-reference.png
@matheusmota
matheusmota / Python_Matplotlib_Cheat_Sheet.pdf
Created October 5, 2018 01:07
Python_Matplotlib_Cheat_Sheet.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matheusmota
matheusmota / Badger for binderhub.md
Last active June 6, 2019 19:51
My own badges for launching repositories at Binder (BinderHub mybinder.org) and Google Colaboratory ( Jupyter / Jupyter Lab / RStudio )

My library of badges for binderhub.

@matheusmota
matheusmota / .bash_aliases
Last active March 13, 2019 19:10
my bash_aliases
We couldn’t find that file to show.
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
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
My Ubuntu Gnome configurations
A step by step guide