Skip to content

Instantly share code, notes, and snippets.

View JoshMcCullough's full-sized avatar

Josh McCullough JoshMcCullough

  • Leesburg, Virginia, US
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="globalStyles">
<LineStyle id="line">
<color>007f00ff</color>
<width>4</width>
</LineStyle>
</Style>
<Placemark>
@JoshMcCullough
JoshMcCullough / vpn.sh
Last active June 21, 2018 14:38
Connect to an openvpn server based on a pattern.
#!/bin/sh
if [ ! $(id -u) = 0 ]; then
echo "This script must be run as root."
exit 1
fi
pattern=$1;
match="$(find ~/.openvpn/ -name 'client.ovpn' |grep $pattern |head -n 1)"
@JoshMcCullough
JoshMcCullough / script.js
Last active May 23, 2018 14:12
Redfin > Hide X-out'd Homes
javascript: var xOutButtonWrappers = document.getElementsByClassName("XoutButtonWrapper"); for (var i = (xOutButtonWrappers.length - 1); i >= 0; i--) { var o = xOutButtonWrappers[i]; if (o.getAttribute("aria-label") == "Remove X-out") { var homeCardV2Element = o.parentElement.parentElement.parentElement; var addressElement = homeCardV2Element.getElementsByClassName("street-address")[0]; var rootContainer = homeCardV2Element.parentElement.parentElement; rootContainer.remove(); } }
@JoshMcCullough
JoshMcCullough / app.html
Created February 7, 2017 20:17 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@JoshMcCullough
JoshMcCullough / deploy.js
Created August 10, 2016 05:12
Gulp FTP Deploy Script
var gulp = require("gulp");
var FtpClient = require("ftp");
var minimist = require("minimist");
var readdirp = require("readdirp");
var paths = require('../paths');
var _maxConcurrentActions = 10;
var _knownOptions = {
string: [
"source",
@JoshMcCullough
JoshMcCullough / gist:b04f321a5ecc8bc28994
Created June 30, 2015 16:08
Crouton+Trusty+Mate - xinit Error
(trusty)josh@localhost:~$ xinit
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.14.0 #1 SMP Sun Jun 21 16:17:04 PDT 2015 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=1001a73228f1ea5ae5ead54cf83d261e97409d21 salt=7b70fcdf6c32ca998de50107d450f85bca6f642c87d3ac762668973ae151cfcb" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
Build Date
Error 3 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h 250 1 client
Error 6 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h 250 1 client
Error 9 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h 250 1 base
Error 12 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h 250 1 arch
Error 15 error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.
@JoshMcCullough
JoshMcCullough / 50015 - National 2012 Total.svg
Created February 11, 2015 19:42
50015 - National 2012 Total.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.