Skip to content

Instantly share code, notes, and snippets.

@thomasbabuj
thomasbabuj / Laravel 4 quick start guide
Last active August 29, 2015 14:07
Laravel 4 Quick start ( With auth ) Guide
1) Install composer locally
$ curl -s https://getcomposer.org/installer | php
2) Create a new Laravel project
// create a new laravel project with latest stable inside of directory "myproject"
$ composer create-project laravel/laravel myproject
3) Config
@thomasbabuj
thomasbabuj / .bashrc
Last active August 29, 2015 14:19 — forked from vsouza/.bashrc
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@thomasbabuj
thomasbabuj / git.css
Last active August 29, 2015 14:22 — forked from neilgee/git.css
/* Set up Git Configuration */
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global core.editor "vi"
git config --global color.ui true
@thomasbabuj
thomasbabuj / .tmux.conf
Created December 16, 2015 02:40 — forked from peanav/.tmux.conf
My tmux.conf
# Make ESC work right
set -sg escape-time 0
# Make the colors work right
set -g default-terminal "screen-256color"
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@thomasbabuj
thomasbabuj / golang-tls.md
Created May 2, 2016 05:53 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Generated private key

openssl genrsa -out server.key 2048

To generate a certificate

openssl req -new -x509 -key server.key -out server.pem -days 3650

https

// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@thomasbabuj
thomasbabuj / fulcrum-email-notification.gs
Created May 29, 2016 15:16 — forked from bmcbride/fulcrum-email-notification.gs
Fulcrum Email Notification Webhook (Google Apps Script)
// Special Apps Script function to process HTTP POST request
function doPost(e){
return handleResponse(e);
}
function handleResponse(e) {
// Parse JSON webhook payload
var jsonString = e.postData.getDataAsString();
var payload = JSON.parse(jsonString);