Skip to content

Instantly share code, notes, and snippets.

Derek Schrock derekschrock

Block or report user

Report or block derekschrock

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3ea6b2f2c2c13667259853ad07e4365b
diff --git a/misc/units b/misc/units
index 790c214f..5d72244a 100755
--- a/misc/units
+++ b/misc/units
@@ -1872,7 +1872,7 @@ failed_git_marker ()
local f=$1
local l
- if type "git" > /dev/null 2>&1; then
+ if type "git" > /dev/null 2>&1 && [ -d .git ]; then
View -
--- /usr/jails/apache/usr/local/www/phpvirtualbox/endpoints/lib/vboxconnector.php 2017-09-10 05:57:43.000000000 -0400
+++ vboxconnector.php 2017-12-22 21:57:11.691738000 -0500
@@ -1593,7 +1593,7 @@
// Network properties
$eprops = $n->getProperties(null);
$eprops = array_combine($eprops[1],$eprops[0]);
- $iprops = array_map(create_function('$a','$b=explode("=",$a); return array($b[0]=>$b[1]);'),preg_split('/[\r|\n]+/',$args['networkAdapters'][$i]['properties']));
+ $iprops = array_map(function ($a) { $b=explode("=",$a); return array($b[0]=>$b[1]); },preg_split('/[\r|\n]+/',$args['networkAdapters'][$i]['properties']));
$inprops = array();
foreach($iprops as $a) {
View -
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# get started fast.
[general]
accounts = LOADM
pythonfile = ~/.offlineimap.py
[Account LOADM]
localrepository = Local
remoterepository = Remote
View -
#!/usr/bin/env sh
if ! [ -d "$1" ] ; then
echo "usage: ${0##*/} dir"
exit
fi
cd "$1"
pkg query "%o" | while read origin; do
View gist:f7c4ee9b1d3533088baa1e44ebc624c8
--- /usr/jails/apache/usr/local/www/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php.orig 2017-08-19 18:08:21.600780000 -0400
+++ /usr/jails/apache/usr/local/www/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php 2017-08-20 20:03:29.093550000 -0400
@@ -915,8 +915,8 @@
$request->_this = $this->handle;
$request->location = $arg_location;
$request->deviceType = $arg_deviceType;
- $request->accessMode = $arg_accessMode;
- $request->forceNewUuid = $arg_forceNewUuid;
+ $request->accessMode = $arg_accessMode === null ? "ReadWrite" : $arg_accessMode;
+ $request->forceNewUuid = $arg_forceNewUuid === null ? false : $arg_forceNewUuid;
View gist:fd969d7d898b94118106
From e5c5065a49ae105f91b1cd4f406d5540741a20d4 Mon Sep 17 00:00:00 2001
From: Derek Schrock <dereks@lifeofadishwasher.com>
Date: Mon, 10 Aug 2015 22:12:27 -0400
Subject: [PATCH] reverse order of change log and make it easier to read
---
KNOWNBUGS | 908 +++++++++++++++++++++++++++++++-------------------------------
1 file changed, 460 insertions(+), 448 deletions(-)
diff --git a/KNOWNBUGS b/KNOWNBUGS
You can’t perform that action at this time.