Skip to content

Instantly share code, notes, and snippets.

View cassler's full-sized avatar

Darin Cassler cassler

View GitHub Profile
@cassler
cassler / sidebar-selector.php
Last active December 23, 2015 01:49
Wordpress > Dynamic sidebar generator and selector UI.
<?php
## Replace Array of Sidebars with Your Choice of Names, Each will be generated
$dynamic_widget_areas = array(
/* rename or create new dynamic sidebars */
"Sidebar 01",
"Sidebar 02",
"Sidebar 03",
"Sidebar 04",
"Sidebar 05",
"Sidebar 06",
@cassler
cassler / php-fastcgi
Created March 28, 2012 02:15
php-fastcgi init.d
#!/bin/bash
### BEGIN INIT INFO
# Provides: php-fastcgi
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the php-fastcgi web server
# Description: starts php-fastcgi using start-stop-daemon
@cassler
cassler / gradiant-mixin.scss
Created January 19, 2012 10:05
SASS gradiant @mixin
// this mixin can be used in any sass template to easily deploy
// consistent gradients quickly. Just change the values of $start
// and $end to the colors you want your gradient to travel between.
// You can pass different colors when calling the mixin like this:
// > @include grad(#279333,#192566)
// Better still you can define color variables and do it like this
// > $yellow = #f30;