Skip to content

Instantly share code, notes, and snippets.

View flaviocarmo's full-sized avatar
🖖
Boldly going

Flávio Carmo flaviocarmo

🖖
Boldly going
View GitHub Profile
@flaviocarmo
flaviocarmo / script.sh
Created September 13, 2019 20:47 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@flaviocarmo
flaviocarmo / export_db_structure.sh
Created September 13, 2019 20:46 — forked from dantheman213/export_db_structure.sh
Batch backup and export your Postgres or PostgreSQL table schemas and stored functions or procedures into individual *.sql files --the easy way!
#!/bin/sh
# AUTHOR
# DANIEL E. GILLESPIE (2016)
# https://github.com/dantheman213
# DESCRIPTION
# Export your app's table schemas and stored functions from a PostgreSQL
# database into individual *.sql files for easy management and source control.
@flaviocarmo
flaviocarmo / notes.md
Created September 5, 2018 18:29 — forked from matthewjberger/notes.md
How to make an electron app using Create-React-App and Electron with Electron-Builder.
@flaviocarmo
flaviocarmo / printing_python_qgis.py
Created October 25, 2016 21:07 — forked from alexanno/printing_python_qgis.py
Printing with Python and QGIS
#http://kartoza.com/how-to-create-a-qgis-pdf-report-with-a-few-lines-of-python/
# coding=utf-8
# A simple demonstration of to generate a PDF using a QGIS project
# and a QGIS layout template.
#
# This code is public domain, use if for any purpose you see fit.
# Tim Sutton 2015