Skip to content

Instantly share code, notes, and snippets.

View igun's full-sized avatar

Gunawan Prasetia igun

View GitHub Profile

Learning Plan for Design Patterns and Principles of Good Design

These learning resources primarily focus on programming using Good Design Principles and Design Patterns

  • There is an emphasis on learning using PHP, although most patterns are universal to every object orientated language.

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)
@igun
igun / cheatsheet-elasticsearch.md
Created April 14, 2020 05:50 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@igun
igun / resize-tmp-cpanel.md
Last active September 12, 2017 08:40
Resize /tmp on cpanel server
  • Step 1: Remove the old tmp space
service httpd stop
service mysql stop
rm -rf /usr/tmpDSK
  • Step 2, edit the script used to create tmp space
nano /scripts/securetmp
@igun
igun / ansible-bootstrap-ubuntu-16.04.yml
Created July 21, 2017 07:14 — forked from gwillem/ansible-bootstrap-ubuntu-16.04.yml
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# [email protected]
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static