Skip to content

Instantly share code, notes, and snippets.


Idham Hafidz Ismail (Apit John Kedekut) idhamhafidz

View GitHub Profile
View malaysia_postcode_list.json
"prepared_by": "Zulhilmi Zainudin",
"last_update": "21 June 2016",
"data": [
"state": "Selangor",
"codes": [
idhamhafidz / DbmigrateController.php
Created Jun 29, 2016 — forked from bruceoutdoors/DbmigrateController.php
Laravel 4 Convert existing MySQL database to migrations. This is a fork of Christopher Pitt's work, which is based off michaeljcalkins's work at His original source code doesn't really work out of the box in my…
View DbmigrateController.php
/* * **
* This script converts an existing MySQL database to migrations in Laravel 4.
* 1. Place this file inside app/controllers/
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table
idhamhafidz /
Created Jan 6, 2016 — forked from ckalima/
Shell Script to Create a Remote Git Repository
# Creates a remote git repository from the current local directory
# Configuration
# Replace SSH_USERNAME, SSH_HOST, SSH_GIT_PATH with your details
idhamhafidz /
Created Jan 6, 2016 — forked from motemen/
Shell script to setup/push GitHub pages
# usage: push-gh-pages DIRECTORY # DIRECTORY is where GitHub pages contents are in (eg. build)
set -e
remote=$(git config remote.origin.url)
described_rev=$(git rev-parse HEAD | git name-rev --stdin)
idhamhafidz /
Created Dec 31, 2015 — forked from bgallagh3r/
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
#!/bin/bash -e
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Do you need to setup new MySQL database? (y/n)"
read -e setupmysql
if [ "$setupmysql" == y ] ; then
echo "MySQL Admin User: "
read -e mysqluser
idhamhafidz / Install
Created Oct 8, 2015 — forked from janikvonrotz/Install
Ubuntu: Install automysqlbackup #MySQL #Markdown
View Install


AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.


  • Ubuntu server
  • MySQL