/etc/rc.conf.local
apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"
#!/bin/sh | |
# Yet Another bhyve Script v0.4 | |
# Use this to try and boot 9front, the Plan9 fork. | |
# Virtio emulation works better (ported drivers) | |
# PS/2 Mouse emulation requires updated bhyve(8) | |
# If you don't have it, patch is uploaded with this Gist | |
# When partitioning, I have had more success with MBR | |
# GPT may work for some people |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
#!/bin/bash | |
# Bash script for setting or clearing touch requirements for | |
# cryptographic operations the OpenPGP application on a YubiKey 4. | |
# | |
# Author: Alessio Di Mauro <[email protected]> | |
GCA=$(which gpg-connect-agent) | |
DO=0 | |
UIF=0 |
/** | |
* Just intonation MIDI keyboard with SuperCollider | |
*/ | |
MIDIIn.connect; | |
s.boot; | |
( | |
SynthDef("umbSimpleFM",{ | |
arg freq=440, gate=1, amp=1, pan=0; |
/** | |
* A simple example of MIDI Keyboard for SuperCollider 3.6.x | |
*/ | |
MIDIIn.connect; | |
s.boot; | |
( | |
SynthDef("umbSinewave",{ | |
arg freq=440, gate=1, amp=1, pan=0; |
#!/bin/sed -rf | |
# How to run: | |
# echo 'A A<1+B1-C>B<1-A1+B>D<1-B1qC> 0<0>0' | |
# Note: Your local sed may use a different flag for "extended" regexes; this is written for GNU sed. | |
# | |
# tape: [active-state] " " (state-name "<" (write move next-state)_0 (write move next-state)_1 ">")* " " tape... "<" curpos ">" tape... | |
# State names can be any character not in " <>". | |
# The tape consists of 0's and 1's. | |
# The "move" field can be "-" to move left, "+" to move right, or "q" to halt. |
Prerequisites:
Software components used:
#include "tweetnacl.h" | |
#define FOR(i,n) for (i = 0;i < n;++i) | |
#define sv static void | |
typedef unsigned char u8; | |
typedef unsigned int u32; | |
typedef unsigned long long u64; | |
typedef long long i64; | |
typedef i64 gf[16]; |
#!/usr/bin/env python2 | |
from gi.repository import Gtk, GObject, GLib | |
import os | |
import os.path | |
class File(object): | |
def __init__(self, file_name, place_holder=False, directory=True, root=False, empty=False): | |
self.file_name = file_name |