Skip to content

Instantly share code, notes, and snippets.

View WoodenDoors's full-sized avatar

Mathias We WoodenDoors

  • Dortmund
View GitHub Profile
@WoodenDoors
WoodenDoors / sv.bash
Created September 22, 2017 07:30
/etc/bash_completion.d/sv
_runit_sv() {
local cur prev commands opts services
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
commands="status up down once \
pause cont hup alarm interrupt quit 1 2 term kill exit \
start stop reload restart shutdown \
@WoodenDoors
WoodenDoors / laravel_install_and_config.md
Created January 5, 2015 20:54
laravel basic install and config

prerequisites

  • Install Composer (https://getcomposer.org/)
  • run composer install in your application's root folder (downloads dependencies and puts them in vendor/)

config and setup

  • edit boostrap/start.php and change in the detectEnvironment-callback 'local' => array('WoodenDoors'), to include the name of your computer
  • edit app/config/local/database.php to match an existing mysql user and database on your machine (the datbase must be empty and match the collation in the database configuration)
  • start a command-prompt in your application's root folder