View refresh-gpg-keys.sh
#!/bin/sh
pacman -Scc
pacman-key --refresh-keys
pacman -Syu
View python3.6-ubuntu.sh
apt update
apt install python3.6 python3.6-dev python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
python3.6 get-pip.py
View virtualbox-hostonly.md

Create a host only network

Create a host only network with adapter address 192.168.56.1 and range from 192.168.56.101

Inside the guest

ifconfig eth1 192.168.56.101 netmask 255.255.255.0 up

And setup in /etc/network/interfaces:

View pg_hba.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
View git-alias-adog.sh
#!/bin/sh
git config --global alias.adog "log --all --decorate --oneline --graph"
View swap-file-creation.md

Swap file creation

As root use fallocate to create a swap file the size of your choosing (M = Mebibytes, G = Gibibytes). For example, creating a 512 MiB swap file:
fallocate -l 512M /swapfile

Note: fallocate may cause problems with some file systems such as F2FS or XFS.[1] As an alternative, using dd is more reliable, but slower:
dd if=/dev/zero of=/swapfile bs=1M count=512

Set the right permissions (a world-readable swap file is a huge local vulnerability)
chmod 600 /swapfile

View pypy-ubuntu.md

Get Pypy 5.8 (Python 2.7 compatible)

sudo mkdir -p /opt/pypy
cd /opt/pypy 
sudo wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2
sudo tar -xvf pypy2-v5.8.0-linux64.tar.bz2
sudo chmod -R 775 /opt/pypy
sudo rm -rf pypy2-v5.8.0-linux64.tar.bz2

# va para o diretorio do projeto
View pillow-install.sh
#!/bin/sh
# update pip
pip install -U pip
pip install requests[security]
#apt install -y libxml2-dev libxslt1-dev python-dev zlib1g-dev libjpeg-dev