Skip to content

Instantly share code, notes, and snippets.

@emory
emory / gist:2e472eba7526dbed9262
Created October 27, 2014 04:43
2014-10-26 201410262342 @emory
vfs.generic.nfs.client.access_dotzfs: 1
kstat.zfs.misc.fm.erpt-dropped: 0
kstat.zfs.misc.fm.erpt-set-failed: 0
kstat.zfs.misc.fm.fmri-set-failed: 0
kstat.zfs.misc.fm.payload-set-failed: 0
kstat.zfs.misc.xuio_stats.onloan_read_buf: 0
kstat.zfs.misc.xuio_stats.onloan_write_buf: 0
kstat.zfs.misc.xuio_stats.read_buf_copied: 0
kstat.zfs.misc.xuio_stats.read_buf_nocopy: 0
kstat.zfs.misc.xuio_stats.write_buf_copied: 0
Last Exception Backtrace:
0 CoreFoundation 0x21e19e2a __exceptionPreprocess + 122
1 libobjc.A.dylib 0x2eebac86 objc_exception_throw + 34
2 CoreFoundation 0x21e1f174 -[NSObject(NSObject) doesNotRecognizeSelector:] + 184
3 CoreFoundation 0x21e1d092 ___forwarding___ + 710
4 CoreFoundation 0x21d4f1f4 _CF_forwarding_prep_0 + 20
5 Cathode 0x000e49d8 0xda000 + 43480
6 Cathode 0x000e50f8 0xda000 + 45304
7 Cathode 0x0011e924 0xda000 + 280868
8 Foundation 0x22b932ec __NSFireTimer + 60
----- Original message -----
From: "Emory L." <emory@kvet.ch>
To: Mac OS X enterprise deployment project <macenterprise@lists.psu.edu>
Subject: RE: Osx 10.9 tags
Date: Tue, 18 Mar 2014 10:23:43 -0500
adambarnett52@GMAIL.COM writes:
> No joy with using -E
>
----- Original message -----
From: "Emory L." <emory@hellyeah.com>
To: Mac OS X enterprise deployment project <macenterprise@lists.psu.edu>, "adambarnett52@GMAIL.COM" <adambarnett52@gmail.com>
Subject: RE: Osx 10.9 tags
Date: Fri, 14 Mar 2014 13:33:02 -0500
This is probably because your extended attributes and metadata aren't making it over. If you're using rsync from a Mac, the one Apple includes is not able to do this.
Recommended solution: install rsync 3.1.0, I use Homebrew to install it. I can't vouch for your destination filesystem and platform knowing what an extended attribute is, but it works for me against HFS+ and ZFS destinations on FreeBSD, OS X servers.
@emory
emory / merger.py
Created April 21, 2014 21:14 — forked from btoews/merger.py
# file: merger.py
# based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/
# by: mastahyeti
import xml.etree.ElementTree as etree
import shutil
import os
first = 1
for fileName in os.listdir("."):
@emory
emory / gist:10301696
Created April 9, 2014 18:42
riposte y u no sleep
Incident Identifier: 83B3A6BF-B9B9-4D00-8A3B-5472E1AF0E74
CrashReporter Key: da20006cc4c69bd3803721774630b4dde23af289
Hardware Model: iPhone5,2
Process: Riposte [847]
Path: /var/mobile/Applications/A07768B5-B65F-41C2-955C-C71996C5E2DF/Riposte.app/Riposte
Identifier: com.riposte.riposteiphone
Version: 99 (1.6)
Code Type: ARM (Native)
Parent Process: launchd [1]
@emory
emory / keybase.md
Last active August 29, 2015 13:58
201404041609 keybase proof emory@stickwell via 128.255.0.0/16

Keybase proof

I hereby claim:

  • I am emory on github.
  • I am emory (https://keybase.io/emory) on keybase.
  • I have a public key whose fingerprint is A8C4 D7D7 54C8 EABA 7964 3AE8 EB9C 9F2F 7EEB 0403

To claim this, I am signing this object:

@emory
emory / 0_reuse_code.js
Created March 13, 2014 02:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
#
# This script backups an OS X system to an external volume, effectively
# cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for
# Linux. One could also use commercial tools like SuperDuper! or Carbon Copy
# Cloner. The latter website has an interesting list[5] on what files to
# exclude when cloning.
#
# Exclusions (from CCC[5]), see rsync_excludes_osx.txt
#
@emory
emory / gist:6678586
Created September 23, 2013 23:51
watch me spray logs with the greatest of ease
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - OnBrowseMetadata for 'ce1e6c101aae79d6815b' with filter '@id,upnp:class,res,res@protocolInfo,res@av:authenticationUri,res@size,dc:title,upnp:albumArtURI,res@dlna:ifoFileURI,res@protection,res@bitrate,res@duration,res@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@resolution,res@colorDepth,dc:date,av:dateTime,upnp:artist,upnp:album,upnp:genre,dc:contributer,upnp:storageFree,upnp:storageUsed,upnp:originalTrackNumber,dc:publisher,dc:language,dc:region,dc:description,upnp:toc,@childCount,upnp:albumArtURI@dlna:profileID,res@dlna:cleartextSize' and sort '', paged as 0 + 1
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Mapped client to profile PlayStation 3 using header X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Mapped object ce1e6c101aae79d6815b to /library/sections/1/recentlyAdded part 0 on server http://127.0.0.1:32400/
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Down