Skip to content

Instantly share code, notes, and snippets.

View miguelcostero's full-sized avatar
💻

Miguel Costero miguelcostero

💻
View GitHub Profile
@miguelcostero
miguelcostero / Vagrantfile
Last active October 22, 2017 23:15
Ubuntu 16.04 LTS server, Apache 2 PHP 7 MySQL 5.6
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
@script = <<SCRIPT
# Script Configuration
WEBSITENAME="WEBSITE_NAME_HERE"
MYSQL_PASSWORD="MYSQL_ROOT_USER_PASSWORD"
@miguelcostero
miguelcostero / countries.json
Created July 17, 2017 15:04 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@miguelcostero
miguelcostero / .bash_profile
Created June 25, 2017 01:48
custom bash prompt for linux rastafari
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\e[1;32m\][\u\[\e[1;33m\]@\[\e[1;31m\]\h]\[\e[1;33m\]: \[\e[1;37m\]\w\[\e[1;33m\] \$(parse_git_branch)\n\[\e[1;33m\]-> \[\e[0m\]"