Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'erb'
require 'ipaddr'
class HostParseError < StandardError; end
class Host
attr_accessor :fqhn, :port, :user, :name, :proxy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>se.protomou.unspotlight</string>
<key>Program</key>
<string>/usr/local/sbin/unspotlight</string>
#!/usr/bin/perl
# ************************************************************
# * gifmaker - A tool for making animated GIFs from video
# files. This works as a wrapper around
# FFmpeg and ImageMagick's convert.
#
# For more details see:
# http://www.leshylabs.com/blog/dev/2013-08-04-Making_Animated_GIFs_from_the_Linux_Command_Line.html
# ************************************************************
#!/bin/bash
sed_inplace() {
tmpfile=$(mktemp "$TMPDIR/unfuglify-textmate.XXXXXX")
cp "$2" "$tmpfile"
sed -E "$1" "$tmpfile" > "$2"
rm -f "$tmpfile"
}
if [ $# != 3 ]; then
[
{
"StackId": "arn:aws:cloudformation:eu-west-1:123456789123:stack/deis/03787040-3509-11e4-83d2-507bb00bdca0",
"EventId": "e5e454a0-3511-11e4-8f4c-50d500f62a00",
"ResourceStatus": "ROLLBACK_COMPLETE",
"ResourceType": "AWS::CloudFormation::Stack",
"Timestamp": "2014-09-05T15:32:51.428Z",
"StackName": "deis",
"PhysicalResourceId": "arn:aws:cloudformation:eu-west-1:123456789123:stack/deis/03787040-3509-11e4-83d2-507bb00bdca0",
"LogicalResourceId": "deis"
@m87h
m87h / BackupPerforce.ini
Created July 29, 2014 14:39
Perforce backup PowerShell script
BackupBucket=backup-bucket
BackupRegion=eu-west-1
BackupIntervalFull=1W
BackupRetention=1Y
BackupEncryptionPassphrase=MYSECRET
AwsAccessKeyId=MYACCESSKEYID
AwsSecretAccessKey=MYSECRETACCESSKEY
#!/usr/bin/env ruby
require 'openssl'
require 'highline/import'
module Builder
class << self
include OpenSSL
--- a/disasm.cc 2014-05-29 21:52:40.000000000 +0200
+++ b/disasm.cc 2014-05-29 21:52:51.000000000 +0200
@@ -2,6 +2,7 @@
#include <vector>
#include <string>
#include <cstring>
+#include <cstdlib>
#include <map>
/* This program disassembles an IPS file. */

Flying Widgets adds CSS3 transitions to your dashboard, allowing you to cycle through multiple widget sets on a single TV without page reloads, using stylish CSS3 transitions. You can even still re-order your widgets and save their locations!

Note that sinatra-cyclist is a potential alternative if the machine you use to display your dashboards is lacking in graphics horsepower.

To use, put this file in assets/javascripts/cycleDashboard.coffee. Then find this line in application.coffee:

    $('.gridster ul:first').gridster
#!/usr/bin/env python
import sys, os, types, errno, shutil
import pkg.server.depot as ds
import pkg.server.repository as sr
# monkeypatch pkg.server.face.init (noop)
import pkg.server.face
pkg.server.face.init = lambda depot: None