Skip to content

Instantly share code, notes, and snippets.

@dajare
dajare / wolf_layout_loader.php
Created December 11, 2010 09:50 — forked from staydecent/wolf_layout_loader.php
WolfCMS Layout Loader plugin (by staydecent)
<?php
/**
* Loads any layout files(.php) contained inside the theme folders.
*
* @package wolf
* @subpackage plugin.layout_loader
*
* @author Adrian Unger <spam{at}staydecent.ca>
* @version 1.1
@dajare
dajare / dajare-wolfcms-plugins.xml
Created January 20, 2011 15:53
WolfCMS Plugins XML file
<wolf-plugins>
<wolf-plugin>
<id>ckeditor</id>
<version>1.2</version>
<status>stable</status>
</wolf-plugin>
</wolf-plugins>
@dajare
dajare / adv_find_pager.php
Created January 30, 2011 13:22
Advanced Find with Pagination
<?php
/**
* For use in a page with WolfCMS - http://www.wolfcms.org
* Uses mtylerb's Advanced Find, and the Pager helper to paginate results
* AdvancedFind - https://github.com/mtylerb/adv-find
* Pager - http://www.wolfcms.org/wiki/helpers:pager
*/
// USE THIS FOR DYNAMIC ADDITION OF BRANCHES TO ADVFIND
$categories = array();
@dajare
dajare / tag-page-code.php
Created April 29, 2011 13:45
Tag page code for Wolf CMS plugin Tagger - inserts date values into archive page URLs
<?php
$pages = $this->tagger->pagesByTag();
if($pages){
echo "<h3>Pages tagged with '".$this->tagger->tag()."':</h3>";
echo '<ul>';
foreach($pages as $slug => $page) {
// set number in next line to total characters of URL up to first slug:
$pageslugs = substr($slug, 28);
// if archive page, put date slugs into URI:
if ($this->find($pageslugs)->parent()->behavior_id == 'archive') {
@dajare
dajare / .conkyrc
Created May 30, 2012 21:14
My .conkyrc file
# Conky, a system monitor, based on torsmo
#
# /* ** USE IN CONJUCTION WITH THE FOLLOWING SCRIPT
# I put this in HOME/.bin/conky_delay_start : perms set to make executable:
# Add this script to Autostart to run conky at bootup
# 8< -------
##!/bin/bash
##Conky start-up delay script
##Source: http://ubuntuforums.org/showthread.php?t=778131
#
@dajare
dajare / rss2atom.xslt.xml
Created May 31, 2012 16:10
Convert RSS xml file to Atom format
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="channel">
<xsl:element name="feed" namespace="http://purl.org/atom/ns#" >
<xsl:attribute name="version">0.3</xsl:attribute>
<xsl:element name="title" namespace="http://purl.org/atom/ns#">
<xsl:value-of select="*[local-name()='title']" />
</xsl:element>
@dajare
dajare / html5_template.html
Last active March 1, 2023 15:00 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@dajare
dajare / .bashrc
Last active October 6, 2015 02:18
My .bashrc file
# ALIASES
####################
alias asaph='java -ea -jar ~/.bin/asaph/asaph.jar'
alias addfonts='sudo fc-cache -f -v'
alias bru='qmv -f do'
alias ps='ps auxf'
alias pg='ps aux | grep'
alias version='lsb_release -dc && echo "Desktop: $DESKTOP_SESSION" && uname -a'
@dajare
dajare / StraightQuotes2CurlyQuotes.bas
Last active September 3, 2016 15:23
LibreOffice Macro - straight quotes to curly
sub StraightQuotes2CurlyQuotes
' Thanks to Tintazul for refinements
' https://gist.github.com/Tintazul/deb5e137cabf86ddf4c2
' Now updated to work with LibreOffice Writer Version: 5.0.x
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
dim undo as object
@dajare
dajare / html5_template.html
Last active May 14, 2018 09:53 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<!-- link rel="stylesheet" href="" / -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.18.1/build/cssfonts/cssfonts-min.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.18.1/build/cssbase/cssbase-min.css">