Skip to content

Instantly share code, notes, and snippets.

@gistwebdev
gistwebdev / config.php
Last active December 18, 2015 10:49
basset config test
'collections' => array(
'public' => function($collection)
{
// Switch to the stylesheets directory.
$directory = $collection->directory('assets/stylesheets', function($collection)
{
$collection->add('less/bootstrap/bootstrap.less')->apply('Less');
$collection->add('less/bootstrap/responsive.less')->apply('Less');
$collection->add('less/app.less')->apply('Less');
@gistwebdev
gistwebdev / vhost
Last active February 3, 2023 05:19
Script to create apache2 virtual hosts
#!/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
@gistwebdev
gistwebdev / sublime.desktop
Created May 24, 2013 03:27
Sublime 2 desktop shortcut
[Desktop Entry]
Encoding=UTF-8
Name=Sublime Text
Comment=Sublime Text 2
Exec=sublime_text
Icon=/opt/sublime/Icon/256x256/sublime_text.png
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;TextEditor;
StartupNotify=true
@gistwebdev
gistwebdev / sublime_text
Created May 24, 2013 03:26
Sublime text 2 shortcut
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export SUBLIME_HOME="/opt/sublime"
$SUBLIME_HOME/sublime_text "$*"
@gistwebdev
gistwebdev / template
Last active February 3, 2023 05:19
Apache 2 basic virtual host template
<VirtualHost *:80>
ServerAdmin template.email
ServerName template.url
DocumentRoot template.webroot
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory template.webroot/>
@gistwebdev
gistwebdev / gist:5552871
Last active December 17, 2015 04:48
HTML: Template Skeleton
<!DOCTYPE html>
<html class="no-js" lang="en"><!-- the "no-js" class is for Modernizr. -->
<head id="www-sitename-com" data-template-set="html5-skeleton">
<meta charset="UTF-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">