Skip to content

Instantly share code, notes, and snippets.

echo "This script requires superuser access to install packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# installing apache
echo ">>> Installing Apache2."
sagar-webonise / TcpdfHelper.php
Created December 5, 2012 06:17
This helper is useful when using the TCPDF to generate pdfs
// File name : TcpdfHelper.php
// Created by : Sagar Sgirsath
// Email :
// Created On : 5 december 2012
App::uses('AppHelper', 'View/Helper');
sagar-webonise /
Created July 25, 2012 09:12
Python script for taking mysqldump
#!/usr/bin/env python
import ConfigParser
import os
import time
import getpass
def get_dump():
print "Enter user:"
user = raw_input()