Skip to content

Instantly share code, notes, and snippets.

View dugger's full-sized avatar

Alex Dugger dugger

View GitHub Profile
@dugger
dugger / gist:1015379
Created June 8, 2011 20:56
How to create a User record via the Haiku LMS API, using C#.
using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Web;
using System.IO;
using System.Collections.Specialized;
// Program start class
Verifying my Blockstack ID is secured with the address 16jNFxWd39qePok4kF1NPziZrw7RFDQLFF https://explorer.blockstack.org/address/16jNFxWd39qePok4kF1NPziZrw7RFDQLFF

Keybase proof

I hereby claim:

  • I am dugger on github.
  • I am thedugger (https://keybase.io/thedugger) on keybase.
  • I have a public key ASAoIWTio9L2Vdcn1IODvplm_2OClM_7TZyMdsxmbKVF9Qo

To claim this, I am signing this object:

@dugger
dugger / Digital Films Embed
Created November 22, 2013 20:09
This is a properly formatted version of this embed code, without the stupid line brakes.
<div id="emb53086"></div>
<script type="text/javascript">function addLoadEvent(func) {var oldonload = window.onload;if (typeof window.onload != 'function') {window.onload = func} else {window.onload = function() {if (oldonload) {oldonload()}func()}}}</script>
<script type="text/javascript">addLoadEvent(function T53086(){document.getElementById("emb53086").innerHTML = "<iframe height='350' frameborder='0' style='border:1px solid #ddd;' width='420' src='http://digital.films.com/OnDemandEmbed.aspx?Token=53086&aid=26717&Plt=CVOD&loid=0&w=400&h=300&ref=" + window.location.href + "'>&nbsp;</iframe>";});</script>
Verifying that +alexdugger is my blockchain ID. https://onename.com/alexdugger
@dugger
dugger / gist:3622949
Created September 4, 2012 16:14
gnutar error
$ gnutar xvfz august_18_backup.tar.gz
./
./ibdata1
gnutar: Skipping to next header
\302
gnutar: \302: Unknown file type `
', extracted as normal file
gnutar: ?: implausibly old time stamp 1969-12-31 19:00:00
gnutar: Skipping to next header
@dugger
dugger / my_hash.rb
Created October 2, 2015 18:53
Lets create a hash that can handle missing keys (treat them as nil)! 😉
class MyHash < Hash
def []=(key=nil, value)
super(key,value)
end
def [](key=nil)
super(key)
end
end
@dugger
dugger / Tumblr_Embed_Issue.html
Created October 10, 2011 17:57
Tumblr Embed Issue
<meta http-equiv="x-dns-prefetch-control" content="off">
<ol class="tumblr_posts">
<li class="tumblr_post tumblr_video_post">
<div class="tumblr_video">
<script type="text/javascript" language="javascript" src="http://assets.tumblr.com/javascript/tumblelog.js?655"></script>
<div id="photoset_11102153645" class="html_photoset">
<iframe class="photoset" scrolling="no" frameborder="0" height="150" width="400" style="border:0px; background-color:transparent; overflow:hidden;" src="/post/11102153645/photoset_iframe/manchesterschools/tumblr_lsni8m1LDw1r4svfs/400">
</iframe>
</div>
</div>
@dugger
dugger / Molecule of the Week Widget
Created September 2, 2011 17:54
Molecule of the Week Widget
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script>
<script type="text/javascript">if (WIDGETBOX) WIDGETBOX.renderWidget('c4346013-0635-415e-8973-d217e42527e5');</script>
@dugger
dugger / gist:1163082
Created August 22, 2011 18:18
RSS Embed
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" width="400px" height="343px" id="InsertWidget_dcee9c53-86cd-4815-a75e-c5c556cd4613" align="middle">
<param name="movie" value="http://www.widgetserver.com/syndication/flash/wrapper/InsertWidget.swf"/>
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="false" />
<param name="flashvars" value="r=2&appId=dcee9c53-86cd-4815-a75e-c5c556cd4613" />
<embed src="http://www.widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" name="InsertWidget_dcee9c53-86cd-4815-a75e-c5c556cd4613" width="400px" height="343px" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" flashvars="r=2&appId=dcee9c53-86cd-4815-a75e-c5c556cd4613" >
</embed>
</object>