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 / .zshrc
Created August 13, 2014 02:54 — forked from buzzedword/.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

# ANDROID / ECLIPSE
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files