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 / vpnclient
Created October 11, 2019 13:03 — forked from legokichi/vpnclient
softether vpn client for ubuntu /etc/init.d/vpnclient
#! /bin/sh
### BEGIN INIT INFO
# Provides: vpnclient
# Required-Start: $all
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VPN Client at boot time
# chkconfig: 345 44 56
# description: Start VPN Client at boot time.
@flaviocarmo
flaviocarmo / cloudSettings
Last active February 6, 2020 20:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-06T20:47:48.918Z","extensionVersion":"v3.4.3"}
@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