Skip to content

Instantly share code, notes, and snippets.

@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

/*
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 / .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
@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 / .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 / 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 / Laravel4 Setup
Last active August 29, 2015 14:05
Creating Laravel4 Application
setp 1 : create laravel project
composer create-project laravel/laravel --prefer-dist
note: composer gives two options, --prefer-source and --prefer-dist when install packages
the main difference between these two options ins that with the dist option, composer will favor stable releases and avoid downloading the entire git histroy if possible.
setup 2: composer install
@thomasbabuj
thomasbabuj / Homestead Setup
Last active November 10, 2015 21:48
Laravel Homestead Setup
Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine.
Pre Included Softwares
Ubuntu 14.04
PHP 5.5
Nginx
MySQL
Postgres
Node (With Bower, Grunt, and Gulp)