Skip to content

Instantly share code, notes, and snippets.

View chaoflow's full-sized avatar

Florian Friesdorf chaoflow

View GitHub Profile
@ladinu
ladinu / encryptedNixos.md
Last active March 1, 2024 07:19
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@dnouri
dnouri / gist:1600408
Created January 12, 2012 13:06
Use pyquery to search zope.testbrowser contents
from zope.testbrowser.browser import Browser
def _zope_testbrowser_pyquery(self):
from pyquery import PyQuery
return PyQuery(self.contents)
Browser.pyquery = property(_zope_testbrowser_pyquery)
# This will allow you to do in your tests:
# >>> "Home" in browser.pyquery('#navigation').text()
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {