Skip to content

Instantly share code, notes, and snippets.

View ctaggart's full-sized avatar

Cameron Taggart ctaggart

View GitHub Profile
#!/bin/sh
# script for execution of Hadoop deployed component
#
if [ -n "$MATLAB_HADOOP_INSTALL" ];
then
hadoop_name=$MATLAB_HADOOP_INSTALL/bin/hadoop
echo Using MATLAB_HADOOP_INSTALL: ${hadoop_name}
elif [ -n "$HADOOP_PREFIX" ];
then
hadoop_name=$HADOOP_PREFIX/bin/hadoop
Usage...
Vcxsrv [:<display>] [option]
:display-number
Vcxsrv runs as the given display-number, which defaults to 0.
To run multiple instances, use unique display-numbers.
-a # default pointer acceleration (factor)
-ac disable access control restrictions
-audit int set audit trail level
Anonymous UUID: B878ECFF-A26A-AC21-F832-53E2BAF6D3FA
Sat Apr 30 20:05:14 2016
*** Panic Report ***
panic(cpu 3 caller 0xffffff801efce40a): Kernel trap at 0xffffff801f246d2c, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00001e87233cc000, CR3: 0x0000000023198000, CR4: 0x00000000001627e0
RAX: 0xdeadbeefdeadbeef, RBX: 0xffffff80623a5180, RCX: 0xffffffffa269341e, RDX: 0x0000000000000001
RSP: 0xffffff83ca2538f0, RBP: 0xffffff83ca253970, RSI: 0x0000000000000002, RDI: 0xffffff805c7817a0
R8: 0xffffff805c77f800, R9: 0xffffff8065496a40, R10: 0x0000000000000278, R11: 0x00001562cc5bb3e5
@ctaggart
ctaggart / Mac Panic 2016-04-24 08:54.txt
Last active April 24, 2016 16:38
Mac crashed when running vscode via XQuartz. VirtualBox was uninstalled between this crash and the last, so that isn't he cause.
Anonymous UUID: B878ECFF-A26A-AC21-F832-53E2BAF6D3FA
Sun Apr 24 08:54:27 2016
*** Panic Report ***
panic(cpu 7 caller 0xffffff80195ce40a): Kernel trap at 0xffffff8019846d2c, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00003968ad4ea000, CR3: 0x000000001d798000, CR4: 0x00000000001627e0
RAX: 0xdeadbeefdeadbeef, RBX: 0xffffff807a0d2a18, RCX: 0xffffffff737b8ca8, RDX: 0x0000000000000001
RSP: 0xffffff83c48a38f0, RBP: 0xffffff83c48a3970, RSI: 0x0000000000000002, RDI: 0xffffff8056c7f840
R8: 0xffffff8056c7d000, R9: 0xffffff8076e3c348, R10: 0x0000000000000378, R11: 0x000018c0c4dd2456
@ctaggart
ctaggart / Mac Panic 2016-04-23 12:37.txt
Last active April 24, 2016 16:39
My iMac crashed. I was running Visual Studio Code on a Docker and sending the display to XQuartz. At the same time, I was installing the Go extension via unzip on the command line.
Anonymous UUID: B878ECFF-A26A-AC21-F832-53E2BAF6D3FA
Sat Apr 23 12:37:58 2016
*** Panic Report ***
panic(cpu 2 caller 0xffffff80023ce40a): Kernel trap at 0xffffff8002646d2c, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00003ce0ff8e4000, CR3: 0x0000000006598000, CR4: 0x00000000001627e0
RAX: 0xdeadbeefdeadbeef, RBX: 0xffffff804c611298, RCX: 0xffffffff10aefcb4, RDX: 0x0000000000000001
RSP: 0xffffff83ad60b7a0, RBP: 0xffffff83ad60b820, RSI: 0x0000000000000002, RDI: 0xffffff803f3fb800
R8: 0xffffff803f3f9800, R9: 0xffffff805d045c50, R10: 0x0000000000000238, R11: 0x00000000127a412d
@ctaggart
ctaggart / debian-jessie-docker-setup.sh
Last active March 10, 2016 08:09
Debian Jessie Docker Setup
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root." 2>&1
echo "sudo bash debian-jessie-docker-setup.sh" 2>&1
exit 1
fi
apt-get install -y apt-transport-https
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo debian-jessie main" | tee /etc/apt/sources.list.d/docker.list
apt-get update
@ctaggart
ctaggart / guestbook.fs
Created December 13, 2015 01:15
MySQL F# Guestbook getting started
// nuget MySql.Data
// requires System.Configuration, System.Data, System.Transactions
open MySql.Data.MySqlClient
[<EntryPoint>]
let main argv =
use conn = new MySqlConnection("server=104.154.70.124;database=guestbook;uid=root")
conn.Open()
@ctaggart
ctaggart / ApplicationInsights.config
Created September 9, 2015 22:43
Application Insights 1.2.1 Default
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<!--
Learn more about Application Insights configuration with ApplicationInsights.config here:
http://go.microsoft.com/fwlink/?LinkID=513840
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.
-->
<!--
Learn more about Application Insights configuration with ApplicationInsights.config here:
@ctaggart
ctaggart / import.fsproj
Last active August 29, 2015 14:20
a msbuild/xbuild project file to print some default properties
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets" />
@ctaggart
ctaggart / Octokit.checksums.txt
Last active August 29, 2015 14:18
Octokit.0.8.0 source index
SourceLink 0.5.0
b773bc7c4be33e92afc89e25f604ba60 c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\anonymousauthenticator.cs
cb8e098e41803b9dd3e116d8c259358f c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\authenticator.cs
0b441fdd64c2bf14b5a6def2e120af7b c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\basicauthenticator.cs
23a8a22ca344b382b0087ba2bec1494b c:\users\shiftkey\documents\github\octokit.net\octokit\authentication\tokenauthenticator.cs
3616e3f3969ca3b74ffda9fad2ea1d76 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\activitiesclient.cs
2e00214d2a8b2d7e1f133432973d5884 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\apiclient.cs
bc2907b8c602f504c017ea21eafc1086 c:\users\shiftkey\documents\github\octokit.net\octokit\clients\apipagination.cs
8b0e269514d33c703d01672ffdc548eb c:\users\shiftkey\documents\github\octokit.net\octokit\clients\assigneesclient.cs
c54dec2b3a077af9c516ba9710d33226 c:\users\shiftkey\docu