Skip to content

Instantly share code, notes, and snippets.

View GhostLT's full-sized avatar

Javier Viveros GhostLT

View GitHub Profile
@GhostLT
GhostLT / pgsql_backup.sh
Created March 27, 2018 06:58 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres
@GhostLT
GhostLT / blog.php
Created January 22, 2018 04:38 — forked from weatheredwatcher/blog.php
How to Build a Blog in 15 Minutes (using Codeigniter)
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Blog extends CI_Controller {
function __construct()
{
parent::__construct();
}
function index()