This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash +xe | |
# Assumes a sane-ish system with git and wget | |
pacman -S --noconfirm avahi libao openssl perl-crypt-openssl-rsa perl-io-socket-inet6 perl-libwww | |
wget https://aur.archlinux.org/packages/pe/perl-net-sdp/perl-net-sdp.tar.gz | |
tar -zxvf perl-net-sdp.tar.gz | |
pushd perl-net-sdp | |
makepkg -s --asroot | |
pacman -U perl-net-sdp-*.pkg.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash +x | |
# | |
# Compress video files into GIFs. | |
# | |
# Requirements: | |
# - ffmpeg | |
# - imagemagick | |
# - terminal-notifier | |
# - gifsicle | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tumblr bookmarklet script | |
javascript: | |
var%20d = document, | |
w = window, | |
e = w.getSelection, | |
k = d.getSelection, | |
x = d.selection, | |
s = (e?e():(k)?k():(x?x.createRange().text:0)), | |
f = 'http://www.tumblr.com/share', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
curl -L https://gist.githubusercontent.com/plasticine/86e189c42ac8ec7598a8/raw/b0a2c963c9e3cb5928157439976734860014914e/update_plex_connect.sh | bash & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Top Spenders OVERALL | |
The Hon Tony Abbott MP $ 1,057,673 | |
The Hon Julie Bishop MP $ 866,653 | |
Mr Tony Pasin MP $ 851,482 | |
Mr Tim Watts MP $ 556,863 | |
The Hon Andrew Robb AO MP $ 539,247 | |
The Hon Darren Chester MP $ 529,344 | |
Mr Wyatt Roy MP $ 526,258 | |
Senator the Hon Simon Birmingham $ 523,191 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ServerPath /repo/ | |
RewriteEngine On | |
RewriteRule ^(/repo/.*) /path/$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
jQuery.fn.commentform = function(){ | |
return this.each(function(){ | |
$("#slider").slideToggle("slow").toggleClass('open'); | |
$(this).toggleClass("active"); | |
if($(this).attr('id')){ | |
var replyData = /reply-([\d]{1,})-([\w]{1,})/.exec($(this).attr('id')); | |
var userSelection = getSelectedText(); | |
if(userSelection){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<script type="text/javascript" src="http://digitalmash.com/assets/js/jquery.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript" charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('input:file').each(function(index) { | |
$(this).wrap('<label class="file-input"></label>').wrap('<div class="file-wrapper" style="position:relative;"></div>'); | |
$('.file-wrapper').prepend('<span class="file-input-title">Upload file</span>').append('<span class="file-input-path">...</span>'); | |
$(this).css({'opacity':'0.0', 'position':'absolute', 'top':'0', 'left':'0'}); | |
$(this).change(function(){ | |
var value = $(this).val(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
from django.contrib.auth.decorators import user_passes_test | |
@user_passes_test(lambda u: u.has_perm('foo.bar'), login_url=settings.LOGIN_URL) | |
def widgetize(request): | |
""" Clever, clever, clever... """ | |
pass |
OlderNewer