Skip to content

Instantly share code, notes, and snippets.

Daniel Tucker dantuck

Block or report user

Report or block dantuck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dantuck
dantuck / encode.sh
Created Mar 13, 2017 — forked from donmelton/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.
View encode.sh
#!/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.
View index.html
<!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">
View main content
<!-- 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 Feb 2, 2013
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.
View conky.sh
#!/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 Oct 13, 2015
jquery plugin boilerplate
View jquery-boilerplate.js
+function ($, window, undefined) {
"use strict"; // jshint ;_;
/* MYPLUGIN PUBLIC CLASS DEFINITION
* ================================ */
var MyPlugin = function (element, options) {
this.$element = $(element);
@dantuck
dantuck / chromeSuiteLinks.example.js
Created Oct 30, 2012
Enables adding links to the SharePoint 2012 chrome navigation
View chromeSuiteLinks.example.js
@dantuck
dantuck / TransactionManagement.sql
Created Sep 16, 2011
TSQL Transaction Management
View TransactionManagement.sql
DECLARE @ERRORCODE INT
BEGIN TRANSACTION
-- do action
-- check for errors after each transaction if desired
SELECT @ERRORCODE = @@ERROR
IF (@ERRORCODE <> 0) GOTO PROBLEM
You can’t perform that action at this time.