Skip to content

Instantly share code, notes, and snippets.

View gin1314's full-sized avatar

gin1314

  • SmartCharts
  • Philippines
View GitHub Profile
@jdowning
jdowning / vagrant-clean.sh
Last active December 13, 2021 06:59
Script to clean up Ubuntu Vagrant box before packaging
#!/bin/bash
# This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box.
# Run the following command in a root shell:
#
# bash <(curl -s https://gist.github.com/justindowning/5670884/raw/vagrant-clean.sh)
function print_green {
echo -e "\e[32m${1}\e[0m"
}
@gin1314
gin1314 / gist:4248228
Created December 10, 2012 03:33
PHP: CI: bootstrap pagination boilerplate code
<?php
$config = array(
'base_url' => site_url("csi_division/index"),
'total_rows' => 200,
'per_page' => 20,
'first_link' => 'First',
'first_tag_open' => '<li>',
'first_tag_close' => '</li>',