Skip to content

Instantly share code, notes, and snippets.

View KevinGimbel's full-sized avatar
🤳
GitHub Stories when?

Kevin Gimbel KevinGimbel

🤳
GitHub Stories when?
View GitHub Profile
@KevinGimbel
KevinGimbel / raddit.service
Created February 19, 2019 10:00 — forked from Artemmkin/raddit.service
Raddit unit file
[Unit]
Description=Raddit application
After=network.target
[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu/raddit
ExecStart=/bin/bash -lc 'puma'
Restart=always
@KevinGimbel
KevinGimbel / bash_profile.sh
Created November 17, 2015 09:48 — forked from mislav/bash_profile.sh
Simple bash prompt that shows current git branch (if any) and colors the dollar sign in red if the last command exited with a nonzero status.
_git_prompt() {
local ref="$(command git symbolic-ref -q HEAD 2>/dev/null)"
if [ -n "$ref" ]; then
echo " (${ref#refs/heads/})"
fi
}
_failed_status() {
[ "$PIPESTATUS" -ne 0 ] && printf "$"
}
@KevinGimbel
KevinGimbel / vhost
Last active August 29, 2015 14:20 — forked from gistwebdev/vhost
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local
<?php # -*- coding: utf-8 -*-
/**
* Create a nav menu with very basic markup.
*
* @author Thomas Scholz http://toscho.de
* @version 1.0
*/
class T5_Nav_Menu_Walker_Simple extends Walker_Nav_Menu
{
/**

We Love Icon Fonts search

The search on We Love Icon Fonts is a long requested issue.

To use the search, just drag'n'drop the js file (minfied or unminified) in the bookmarks bar.

You can watch an installation video here: https://vimeo.com/94447449.