- shutdown the mac
- start the mac holding the power on button indefinitly
diskutils list internal| // ********************************************************** | |
| // MARK: - AudioBus MIDI Input | |
| // ********************************************************** | |
| extension ParentViewController { | |
| func setupAudioBusInput() { | |
| midiInput = ABMIDIReceiverPort(name: "FM Player MIDI In", title: "FM Player MIDI In") { (port, midiPacketListPointer) in | |
| let events = AKMIDIEvent.midiEventsFrom(packetListPointer: midiPacketListPointer) |
| p (char *) object_getClassName(*(long*)($x0)) | |
| p (char *) $x1 | |
| p (char *) $x2 | |
| #!/bin/sh -x | |
| cd /tmp | |
| if [ ! -d "geocouch" ]; then | |
| git clone https://github.com/couchbase/geocouch.git | |
| fi | |
| cd geocouch | |
| git checkout couchdb1.2.x |
| // relay.js | |
| var util = require('util'); | |
| var net = require('net'); | |
| var dns = require('dns'); | |
| var nurl = require('url'); | |
| var host = '127.0.0.1'; | |
| var port = 6969; | |
| var source = ''; |
| [ | |
| { | |
| "hex": "#EFDECD", | |
| "name": "Almond", | |
| "rgb": "(239, 222, 205)" | |
| }, | |
| { | |
| "hex": "#CD9575", | |
| "name": "Antique Brass", | |
| "rgb": "(205, 149, 117)" |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.
gituser via Diskstation interface (with File Station and WebDAV privilages)git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.| // usage: <image src="cool-dog.png" onload="pixelate(this,16)"/> | |
| (function() { | |
| //////////////////////////////////////////////////////////////////////////////////////////// | |
| //////////////////////////////////////////////////////////////////////////////////////////// | |
| var anims = []; | |
| function pulse() { | |
| var a = anims.slice(); | |
| for (var i = 0; i < a.length; i++) |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| namespace KillX2Go | |
| { |