Skip to content

Instantly share code, notes, and snippets.

View gabrielloliveira's full-sized avatar
💻
Resolvendo problemas.

Gabriell Oliveira gabrielloliveira

💻
Resolvendo problemas.
View GitHub Profile
@brenopolanski
brenopolanski / export-svg-inkscape.md
Created December 26, 2017 13:29
Exporting an object as svg from inkscape
  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web
@RavenXce
RavenXce / dokku-postgres-backup-daily.sh
Last active December 27, 2020 14:18
Daily postgres backup for dokku
#! /bin/bash
# directory to save backups in, must be rwx by postgres user
BASE_DIR="/var/backups/dokku-postgres"
YMD=$(date "+%Y-%m-%d")
DIR="$BASE_DIR/$YMD"
# make dir if it doesn't exist
mkdir -p $DIR
cd $DIR