Skip to content

Instantly share code, notes, and snippets.

Avatar

Hans Nielsen rawzone

View GitHub Profile
@rawzone
rawzone / i3conf
Last active Apr 18, 2017
mpv playit script
View i3conf
# Play in fullscreen (url in clipboard via mpv, requires xclip)
bindsym $mod+m exec --no-startup-id "~/.i3/playit.sh"
bindsym $mod+Shift+m exec --no-startup-id "~/.i3/playit-fullscreen.sh
@rawzone
rawzone / html5-form-elements.html
Last active Sep 27, 2015
Form element with every HTML5 element
View html5-form-elements.html
@extends('layouts.main')
@section('content')
<form action="/">
<fieldset>
<legend>A Sample Form Legend</legend>
<div class="form__row">
<label for="name">Name: </label>
@rawzone
rawzone / pre-commit
Created Oct 14, 2013
pre-commit hook for git to dumpt mysql database and add to repo.
View pre-commit
#!/bin/bash
DBUSER="<USERNAME>"
DBPASS="<PASSWORD>"
DB="<DATABASE>"
HOST="<DATABASE HOST>"
mysqldump -u $DBUSER -p$DBPASS $DB > db/$DB.sql
git add db/$DB.sql