Skip to content

Instantly share code, notes, and snippets.

@vsharmanov
vsharmanov / CodeMonk#pg_backup.bat
Created February 3, 2020 03:48 — forked from CodMonk/CodeMonk#pg_backup.bat
Batch file to backup PostgreSQL DB
@echo off
goto comment
Author: Code Monk
Description: This file use to backup the database using PostgreSQL backup utility "pg_dump".
Backup parameters should be setup before executing this file
File Format flags :
c = Custom
t = Tar
@vsharmanov
vsharmanov / mail-setup.sh
Created December 10, 2019 07:30 — forked from trungpv93/mail-setup.sh
Install Postfix, Dovecot, RoundCube on Ubuntu 14.04
#!/usr/bin/env bash
ESC_SEQ="\x1b["
COL_RESET=$ESC_SEQ"39;49;00m"
COL_RED=$ESC_SEQ"31;01m"
COL_GREEN=$ESC_SEQ"32;01m"
COL_YELLOW=$ESC_SEQ"33;01m"
DOMAIN="xxx.vn"
PASS_DB_ROUNDCUBE="xxx"