Skip to content

Instantly share code, notes, and snippets.

View gayanhewa's full-sized avatar
🐢

Gayan Hewa gayanhewa

🐢
View GitHub Profile
default:
extensions:
Behat\MinkExtension:
base_url: http://adam-bdd-with-behat.ngrok.io
goutte: ~
selenium2: ~
suites:
default:
contexts:
@gayanhewa
gayanhewa / pedantically_commented_playbook.yml
Created December 4, 2015 05:46 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@gayanhewa
gayanhewa / iterm2-solarized.md
Created November 16, 2015 07:30 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + oh my zsh + solarized + Meslo powerline font (OSX)

Solarized

@gayanhewa
gayanhewa / Guide
Created August 28, 2015 18:11
Arch Linux Installation - UEFI Configuration steps
Simple steps for me to remember how I did this
==============================================
1. Partition
/root - /dev/sdx2 - Ext4 parition
/boot/efi - /dev/sdx1 - EFI partition
2. Install the system
3. chroot to the system
@gayanhewa
gayanhewa / cracking.md
Last active August 29, 2015 14:27 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@gayanhewa
gayanhewa / .vimrc
Last active August 29, 2015 14:20 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@gayanhewa
gayanhewa / signature-get-requests.php
Created February 6, 2015 03:21
Signature ( GET requests )
<?php
/**
* This snippet implements the logic behing https://github.com/philipbrown/signplz , simply to explain the functionality of generating the auth signature
* for non-php programmers so that they can authenticate with the API without a problem.
**/
$api_key = "";
$api_sec = "";
$url = "http://abc.com/programs/1";
// Method specific options
@gayanhewa
gayanhewa / signature.php
Created January 19, 2015 03:48
Signature ( POST with json_encode )
<?php
/**
* This snippet implements the logic behing https://github.com/philipbrown/signplz , simply to explain the functionality of generating the auth signature
* for non-php programmers so that they can authenticate with the API without a problem.
**/
$api_key = "key";
$api_sec = "sec";
$url = "http://abc.com/api/signin";
<?php
$databasehost = "localhost";
$databasename = "db";
$databasetable = "temp";
$databaseusername ="root";
$databasepassword = "root";
$fieldseparator = ",";
$lineseparator = "\n";
$csvfile = "csv.csv";
@gayanhewa
gayanhewa / server.block
Created November 18, 2014 09:22
Nginx Server Block
server {
listen 80;
root /vagrant/public;
index index.html index.htm index.php app.php app_dev.php;
# Make site accessible from ...
server_name customer1.abc.com 192.168.22.10.xip.io vaprobash.dev;
access_log /var/log/nginx/vagrant.com-access.log;