Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / logstat.sh
Created August 9, 2013 01:28
GeekTools script
#!/usr/bin/env /bin/sh
# 2012-07/11:jeff
#
# logstat.sh
#
# ...
#
echo "\t\tnas0.syn.localnet:"
ssh -t admin@nas0.syn.localnet 'sudo /sbin/mdadm -D /dev/md2|grep -e "Array Size" -e "Used Dev Size" -e "/dev"'
@i8degrees
i8degrees / test0.json
Created October 5, 2013 15:27
sample data for Boost::PropertyTree
[
{
"ID" : 1,
"Name" : "Geezard",
"Level" : 1,
"Type" : 1,
"Element" : 0,
"Ranks" : [ 1, 4, 5, 1 ]
},
{
@i8degrees
i8degrees / mplayer.rb
Created October 26, 2013 08:55
Fix OS X v10.9 compiling of mplayer homebrew package
require 'formula'
class Mplayer < Formula
homepage 'http://www.mplayerhq.hu/'
url 'http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz'
sha1 '913a4bbeab7cbb515c2f43ad39bc83071b2efd75'
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
option 'with-x', 'Build with X11 support'
@i8degrees
i8degrees / mplayer.rb
Last active December 26, 2015 23:59
Fix compile of mplayer brew formula on OS X Mavericks v10.9
diff --git i/Library/Formula/mplayer.rb w/Library/Formula/mplayer.rb
index 369b640..f7a1fa0 100644
--- i/Library/Formula/mplayer.rb
+++ w/Library/Formula/mplayer.rb
@@ -28,9 +28,18 @@ class Mplayer < Formula
end unless MacOS.prefer_64_bit?
def patches
- # When building SVN, configure prompts the user to pull FFmpeg from git.
- # Don't do that.
@i8degrees
i8degrees / nomdev.sublime-build
Last active December 31, 2015 09:19
Sublime Text 2 Build System for nomdev.rb
{
// nomdev.rb expects and needs to be executed from a project's root directory
"working_dir": "${project_path}",
// At the bare minimum, we need the executable paths to:
// a) Ruby v1.9.x interpreter; b) nomdev.rb; c) CMake v2.6.x+;
// d) build tools (make, clang, etc.)
"path": "${HOME}/Projects/nomdev.git:${HOME}/local/bin:/usr/local/bin:/usr/bin",
// Default build (Command + B)
"cmd": [ "nomdev.rb build --threads 6; nomdev.rb install" ],
// We need shell access in order to execute our build
Process: ttcards [77673]
Path: /Users/USER/*/ttcards.app/Contents/MacOS/ttcards
Identifier: org.i8degrees.ttcards
Version: 0.10.0 (2.8.12.1)
Code Type: X86-64 (Native)
Parent Process: bash [77452]
Responsible: Terminal [77448]
User ID: 501
Date/Time: 2013-12-15 21:54:12.074 -0600
#!/bin/sh -x ## or just ` curl -Ls http://git.io/vRozn | sh `.
## Downloads the Mac OS X 10.10 Recovery Partition update,
## Copy's over the 10.10 version of Disk Utility.app, then
## use git to apply a binary patch so it will run on 10.11+.
cd /tmp
rm -rf DU1010
mkdir DU1010
@i8degrees
i8degrees / config_remove-usb-cap.plist
Created March 11, 2016 03:26
AppleUSBXHCIPCI kext patch for removing the USB 3 Cap of 15 ports
<!-- SOURCE: http://www.insanelymac.com/forum/topic/308325-guide-1011-full-speed-usb-series-89-keeping-vanilla-sle/page-23#entry2210241 -->
<dict>
<key>Comment</key>
<string>Remove USB limit</string>
<key>Find</key>
<data>
g72M/v//EA==
</data>
<key>Name</key>
<string>AppleUSBXHCIPCI</string>
@i8degrees
i8degrees / keybase.md
Created April 7, 2016 22:05
keybase proof

Keybase proof

I hereby claim:

  • I am i8degrees on github.
  • I am i8degrees (https://keybase.io/i8degrees) on keybase.
  • I have a public key whose fingerprint is FF9F 8211 F179 6C54 EB09 2C1F A739 8DBE 7101 436E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am i8degrees on github.
  • I am i8degrees (https://keybase.io/i8degrees) on keybase.
  • I have a public key ASCWMbOafyEVaxnOsNmO9PECLq4BIv5eGtM29tjw9SSxugo

To claim this, I am signing this object: