Skip to content

Instantly share code, notes, and snippets.

View Fat83dotcom's full-sized avatar
🎯
Focusing

Fernando Mendes Fat83dotcom

🎯
Focusing
View GitHub Profile
@Fat83dotcom
Fat83dotcom / create-self-signed-ssl-certificates.sh
Created December 21, 2023 00:29 — forked from luizomf/create-self-signed-ssl-certificates.sh
create openssl self-signed certificates
cd /var/lib/postgresql/13/main
# Create a self-signed certificate
openssl req -new -nodes -text -out server.csr \
-keyout server.key -subj "/CN=postgresql.otaviomiranda.com.br"
openssl x509 -req -in server.csr -text -days 3650 \
-extfile /etc/ssl/openssl.cnf -extensions v3_ca \
-signkey server.key -out server.crt
@luizomf
luizomf / ambiente-dev-ubuntu-curso-python.sh
Created October 31, 2022 01:23
Instalação ambiente dev Ubuntu 22 do curso de Python
#!/bin/bash
# Executar comandos a seguir para atualizar os pacotes
sudo apt update -y
sudo apt upgrade -y
# Só o Python
sudo apt install python3.10-full python3.10-dev -y
# Instalar pacotes a seguir
@luizomf
luizomf / commands.sh
Last active May 14, 2024 18:17
Instalação Python 3.10 Ubuntu 22.04
sudo apt update -y
sudo apt upgrade -y
sudo apt install git curl build-essential -y
sudo apt install gcc make default-libmysqlclient-dev libssl-dev -y
sudo apt install python3.10-full python3.10-dev -y
@luizomf
luizomf / ambiente-dev-ubuntu.sh
Last active May 2, 2024 12:13
Ambiente de desenvolvimento Python no Ubuntu - Com VS Code, Google Chrome, ZSH, Oh-my-zsh, zsh-syntax-highlighting, zsh-autosuggestions e spaceship prompt.
#!/bin/bash
# Executar comandos a seguir para atualizar os pacotes
sudo apt update -y
sudo apt upgrade -y
# Só o Python
sudo apt install python3.10-full python3.10-dev -y
# Instalar pacotes a seguir
@kngvamxx
kngvamxx / Python-3.8.6.sh
Created November 23, 2020 06:43
Python-3.8.6 Installation Ubuntu 20.04 LTS
sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
sudo apt-get install build-essential checkinstall
sudo apt autoremove
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
cd /opt
sudo wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz
sudo tar xzf Python-3.8.6.tgz
ls -la
sudo rm -f Python-3.8.6.tgz
@fearofcode
fearofcode / libpqxx_test.cpp
Created November 9, 2018 08:39
working libpqxx example
#include <iostream>
#include <chrono>
#include <pqxx/pqxx>
int main(int, char *argv[])
{
pqxx::connection c("dbname=arete user=postgres password=postgres");
{
pqxx::work txn(c);
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active May 18, 2024 17:58 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"