Skip to content

Instantly share code, notes, and snippets.

View erinxocon's full-sized avatar

Erin O'Connell erinxocon

View GitHub Profile
@JohannesRudolph
JohannesRudolph / MigrateVSColorSchemeTo2015.cs
Created January 3, 2016 14:33
MigrateVSColorSchemeTo2015
string settings = File.ReadAllText(@"C:\Users\johannes.rudolph\Documents\Visual Studio 2015\Settings\jrMonokai.vssettings");
var map = new Dictionary<string, string>()
{
{"Brace Matching (Rectangle)", "brace matching" },
{"String(C# @ Verbatim)", "string - verbatim" },
{"User Types", "class name"},
{"User Types(Enums)", "enum name"},
{"User Types(Interfaces)", " interface name"},
{"User Types(Delegates)", "delegate name"},
@sparrc
sparrc / phabricator_readme.md
Last active February 6, 2025 15:57
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@jiaaro
jiaaro / installing_pyaudio.md
Last active May 2, 2024 10:15
How to install PyAudio into a VirtualEnv on Mac OS X 10.10

Install portaudio using homebrew (or method of your choice)

brew install portaudio

create $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:

[build_ext]
@danharper
danharper / background.js
Last active August 29, 2025 17:45
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@wwalker
wwalker / gist:5331226
Last active March 9, 2025 23:17
vboxheadless vrde not working - SOLVED
[wwalker@uranium ~] [] $ vboxmanage showvminfo $VBID | egrep -i 'rde|vid'
2D Video Acceleration: off
Video mode: 720x400x0
VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE Connection: not active
[wwalker@uranium ~] [] $ ps -ef | grep -i vbox[h]
wwalker 20242 19404 6 11:30 pts/9 00:00:35 /usr/lib64/virtualbox/VBoxHeadless -s 70147e5d-3c65-411e-b94e-369be8c7cc77 -v enable
@alanwsmith
alanwsmith / output-commas-except-for-last-item.xslt
Created July 11, 2012 16:47
Putting commas after each value in a loop except for the last one. Useful for JSON and the like
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
Example of putting commas after everything but the last item in a list.
This will process the XML:
<?xml version="1.0" encoding="UTF-8"?>
<root>