Make it work locally
$ git flow init
Create a issue on github (e.g. Start blog application).
Form::macro('multiselect', function($name, $list = [], array $selected = [], $options = []) | |
{ | |
$options['name'] = $name; | |
$html = array(); | |
if (is_string($selected)) $selected[$selected] = $selected; | |
//dd($list, $selected); | |
foreach ($list as $value => $display) | |
{ | |
$sel = isset($selected[$value])?' selected="selected"':''; |
#!/usr/bin/env php | |
# or type `hostname` in bash | |
<?php | |
var_dump(gethostname()); |
This incorporates the file directory name I'm in (in purple), as well as the git branch I'm in (in green), in brackets | |
export PS1='\[\033[01;34m\]\W\[\033[00m\] [$(__git_ps1 "\[\033[01;32m\]%s\[\033[00m\]")] $ ' | |
Colorless | |
export PS1='\W [$(__git_ps1 "%s")] $ ' | |
Gray bold with green - the one I've settled on for now | |
export PS1='\[\033[01;02m\]\W\[\033[00m\] $(__git_ps1 "[\[\033[01;32m\]%s\[\033[00m\]]") $ ' |
# |
# ... pre-writing it down, but basically install the OS | |
# then update | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
# Ubuntu comes with tasksel, so going with that | |
sudo tasksel # choose openSSH server and LAMP, Basic Ubuntu Server will have already been chosen. These can also be chosen during the install process but I found it may make for a less smooth install process | |
# So I can install the iso and other things into the future |
# pulled from http://niallobrien.me/2013/03/installing-and-updating-laravel-4 which I referenced often | |
mkdir newinstall.dev | |
cd newinstall.dev | |
git clone [email protected]:laravel/laravel.git . | |
composer udpate # It's installed globally |
# Set prefix key to Ctrl-a | |
unbind-key C-b | |
set-option -g prefix C-a | |
# tell tmux to use 256 colour terminal | |
set -g default-terminal "screen-256color" | |
# Key bindings | |
# navigate panes using jk, and ctrl+jk (no prefix) |
Likely fake, but good stuff, and I thought I'd keep it here as well so I don't lose it. I originally found it over here but have seen it other places.
Below are 20 wise marriage tips from a man that was recently divorced. You wouldn’t normally think that a divorced man would give good advice on being a husband, but this man has been through enough hardship to know what is worth fighting for:
###MARRIAGE ADVICE I WISH I WOULD HAVE HAD:
Obviously, I’m not a relationship expert. But there’s something about my divorce being finalized this week that gives me perspective of things I wish I would have done different… After losing a woman that I loved, and a marriage of almost 16 years, here’s the advice I wish I would have had…
From http://passingcuriosity.com/2013/dnsmasq-dev-osx, a fantastic resource. Pasting below in case it goes away | |
Most web developers will be familiar with the process of updating your /etc/hosts file to direct traffic for coolproject.dev to 127.0.0.1. Most will also be familiar with the problems of this approach: | |
it requires a configuration change every time you add or remove a project; and | |
it requires administration access to make the change. | |
Installing a local DNS server like Dnsmasq and configuring your system to use that server can make these configuration changes a thing of the past. In this post, I’ll run through the process of: |