Skip to content

Instantly share code, notes, and snippets.

@dantuck
dantuck / encode.sh
Created March 13, 2017 00:03 — forked from lisamelton/encode.sh
This is the shell script I use to drive HandBrakeCLI to re-encode video files in a format suitable for playback on Apple TV, Roku 3, iOS, OS X, etc.
#!/bin/bash
# encode.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 7, 2013.
#
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3,
# iOS, OS X, etc.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>The title of the page</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css">
<!-- Content -->
<div class="row">
<!-- Sidebar -->
<div class="four columns push-eight">
<div class="panel radius" style="box-shadow: 10px 10px 10px 0px #4A4A4A; text-align: center;">
<dl class="tabs vertical">
<dd class="active"><a href="#[[*alias]]">[[*pagetitle]]</a></dd>
[[!getResources? &tpl=`tabTpl` &parents=`[[*id]]` &limit=`0` &includeContent=`1` &showHidden=`1` &includeTVs=`1` &processTVs=`1` &sortby=`FIELD(modResource.id, 69,14,49,15,13 )` &sortdir=`ASC`]]
</dl>
@dantuck
dantuck / conky.sh
Created February 2, 2013 19:57
Place conky.sh in your home folder. The rest of the files are placed in a folder named conkyrc. Special fonts are required: PizzadudeBullets.ttf, Pizzadudestars.ttf, poky.ttf, rsbillsd.ttf.
#!/bin/bash
# Kill Conky If Running
test -z "`pgrep conky`" || killall -9 conky
# The directory of conkyrcs
conky_dir="./conkyrc"
# The command for start conkys
START="conky -d -c"
@dantuck
dantuck / jquery-boilerplate.js
Last active October 13, 2015 20:28
jquery plugin boilerplate
+function ($, window, undefined) {
"use strict"; // jshint ;_;
/* MYPLUGIN PUBLIC CLASS DEFINITION
* ================================ */
var MyPlugin = function (element, options) {
this.$element = $(element);
@dantuck
dantuck / chromeSuiteLinks.example.js
Created October 30, 2012 21:02
Enables adding links to the SharePoint 2012 chrome navigation
@dantuck
dantuck / TransactionManagement.sql
Created September 16, 2011 14:52
TSQL Transaction Management
DECLARE @ERRORCODE INT
BEGIN TRANSACTION
-- do action
-- check for errors after each transaction if desired
SELECT @ERRORCODE = @@ERROR
IF (@ERRORCODE <> 0) GOTO PROBLEM