Skip to content

Instantly share code, notes, and snippets.

View Dillie-O's full-sized avatar

Sean Patterson Dillie-O

View GitHub Profile
@Dillie-O
Dillie-O / gist:d0319e5f794857cc954c
Last active August 29, 2015 14:01
WordPress template that displays just the content. No headers/footers/widgets are rendered.
<?php
/**
Template Name: Content Only
*/
?>
<html>
<head>
<title><?php wp_title( '|', true, 'right' ); bloginfo('url'); ?></title>
<style>
html,body,div,iframe {height:100%;}
@Dillie-O
Dillie-O / gist:7af848830f112b6252ef
Created May 13, 2014 21:33
jQuery iFrame busting code - updates any links/forms to have iFrame busting target.
<script type="text/javascript">
$(document).ready(function() {
if(top.location != location) {
$('a, form').each(function() {
if(!this.target) {
this.target = '_top';
}
});
}
});
<iframe src="http://www.example.com"></iframe>
@Dillie-O
Dillie-O / gist:cbce5fe837d26a0986d5
Created May 19, 2014 17:20
KitchenPlan Sample Config
recipes:
global:
- dotfiles::gitconfig
- applications::sass
- applications::ssh_config
- dotfiles::vim
- applications::composer
- applications::postgresql
- applications::mysql
- applications::php55
@Dillie-O
Dillie-O / dillieo-boxstarter.config
Last active May 5, 2016 20:15
Boxstarter Config
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
cinst dotnet4.5
cinst git
cinst git-credential-winstore
cinst poshgit
cinst windowsazurepowershell
@Dillie-O
Dillie-O / gist:ae09983bf26427908e9e
Created May 29, 2014 06:49
Zurb Foundation 5 Laravel Layout
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@yield('title')</title>
{{ HTML::style('css/foundation.css') }}
{{ HTML::style('css/app.css') }}
@Dillie-O
Dillie-O / gist:1667f71ffa4c082770bd
Last active August 29, 2015 14:02
Azure WebJob Import Example
using System;
using System.Configuration;
using System.IO;
using Microsoft.WindowsAzure.Jobs;
namespace dataimportwebjob
{
partial class Program
{
public static JobHost Host;
@Dillie-O
Dillie-O / gist:e657c875f6d498c86344
Created June 9, 2014 16:37
Read Text From Azure Blob Container
var storageConnection = CloudConfigurationManager.GetSetting("StorageConnectionString");
var containerName = CloudConfigurationManager.GetSetting("StorageContainerName");
var storageAccount = CloudStorageAccount.Parse(storageConnection);
var blobClient = storageAccount.CreateCloudBlobClient();
var container = blobClient.GetContainerReference(containerName);
var blobLog = container.GetBlockBlobReference(id);
string logText;
@Dillie-O
Dillie-O / gist:f5286e77eb37b95281bd
Last active August 29, 2015 14:03
Delete old files in Azure container
Console.WriteLine("Starting Clean Containers WebJob...");
try
{
var removeThreshold = int.Parse(ConfigurationManager.AppSettings["RemoveThresholdDays"]);
var storageConnectionString = CloudConfigurationManager.GetSetting("StorageConnectionString");
var dataContainerName = CloudConfigurationManager.GetSetting("StorageContainerDataName");
var storageAccount = CloudStorageAccount.Parse(storageConnectionString);
var blobClient = storageAccount.CreateCloudBlobClient();
@Dillie-O
Dillie-O / gist:a2068b6006d1caf8b45a
Created August 19, 2014 15:46
Windows Phone 8 Web Site Live Tile Using AngularJS
<div id="TileOverlay" ng-show="tileIsVisible" style='background-color: Highlight; height: 100%; width: 100%; top: 0px; left: 0px; position: fixed; color: black; z-index: 99999;'>
<img src="/Content/img/app_tile.png" width="320" height="320" />
<div style='margin-top: 40px'>
Tap the menu bar ('...') and then select "Pin to Start" to add your start screen.
</div>
</div>