Skip to content

Instantly share code, notes, and snippets.

aguslr /
Last active Dec 20, 2015
Grub2 loopback multiboot pen drive to boot from ISO
jhass / mod_auth_diaspora.lua
Last active Mar 15, 2018
Prosody authentication for Diaspora. Tested with Prosody 0.9.4. See
View mod_auth_diaspora.lua
-- Based on Simple SQL Authentication module for Prosody IM
-- Copyright (C) 2011 Tomasz Sterna <>
-- Copyright (C) 2011 Waqas Hussain <>
-- 25/05/2014: Modified for Diaspora by Anahuac de Paula Gil -
-- 06/08/2014: Cleaned up and fixed SASL auth by Jonne Haß <>
-- 22/11/2014: Allow token authentication by Jonne Haß <>
local log = require "util.logger".init("auth_diaspora")
local new_sasl = require "util.sasl".new
trajakovic / BootstrapFormHelper.php
Last active Dec 16, 2018
This file is taken from, and slightly modified/extended. Added support for has-error bs3 validation error class.
View BootstrapFormHelper.php
* CakePHP(tm) : Rapid Development Framework (
* Licensed under The MIT License
* Copyright (c) La Pâtisserie, Inc. (
* @license MIT License (
App::uses('FormHelper', 'View/Helper');
ageis /
Last active Nov 19, 2020
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

statico / gist:3172711
Created Jul 24, 2012
How to use a PS3 controller on Mac OS X 10.7 (Lion)
View gist:3172711

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

You can’t perform that action at this time.