Skip to content

Instantly share code, notes, and snippets.

View nickfloyd's full-sized avatar
🎯
Taking on problems one byte at a time

Nick Floyd nickfloyd

🎯
Taking on problems one byte at a time
View GitHub Profile
{"version":3,"sources":["../static/js/main.c7424085.js","../webpack/bootstrap abe99a8364b313990276","../node_modules/object-assign/index.js","../node_modules/react/index.js","../node_modules/fbjs/lib/emptyFunction.js","../node_modules/promise/lib/core.js","../node_modules/fbjs/lib/emptyObject.js","../node_modules/fbjs/lib/invariant.js","../node_modules/react-scripts/config/polyfills.js","../node_modules/promise/lib/rejection-tracking.js","../node_modules/asap/browser-raw.js","../node_modules/webpack/buildin/global.js","../node_modules/promise/lib/es6-extensions.js","../node_modules/whatwg-fetch/fetch.js","index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react-dom/index.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/fbjs/lib/ExecutionEnvironment.js","../node_modules/fbjs/lib/EventListener.js","../node_modules/fbjs/lib/shallowEqual.js","../node_modules/fbjs/lib/containsNode.js","../node_modules/fbjs/lib/isTextNode.js","../node_modules/fbjs/lib/isNo
@nickfloyd
nickfloyd / airbrakeapp.js.map
Last active September 26, 2017 19:01
appmap
{"version":3,"sources":["../static/js/main.d4035feb.js","../webpack/bootstrap a3cc8069f9c0ab717de1","../node_modules/fbjs/lib/invariant.js","../node_modules/fbjs/lib/warning.js","../node_modules/react-dom/lib/reactProdInvariant.js","../node_modules/object-assign/index.js","../node_modules/react-dom/lib/ReactDOMComponentTree.js","../node_modules/fbjs/lib/ExecutionEnvironment.js","../node_modules/fbjs/lib/emptyFunction.js","../node_modules/react-dom/lib/ReactInstrumentation.js","../node_modules/react-dom/lib/ReactUpdates.js","../node_modules/react/lib/ReactCurrentOwner.js","../node_modules/react-dom/lib/SyntheticEvent.js","../node_modules/react-dom/lib/PooledClass.js","../node_modules/react/lib/React.js","../node_modules/react/lib/ReactElement.js","../node_modules/react-dom/lib/DOMProperty.js","../node_modules/react-dom/lib/ReactReconciler.js","../node_modules/react-dom/lib/DOMLazyTree.js","../node_modules/react/lib/reactProdInvariant.js","../node_modules/react-dom/lib/EventPropagators.js","../node_modules/reac
@nickfloyd
nickfloyd / WebRole.cs
Created October 13, 2014 14:30
Transforming Web.config appSettings for Microsoft Azure Cloud service
using System.Linq;
using Microsoft.Web.Administration;
using Microsoft.WindowsAzure.ServiceRuntime;
namespace Microsoft.Portal.Extensions.NewRelic_AzurePortal_APM
{
// Credit goes to Andy Cross, azurecoder, and Beth Martin from the Elastacloud blog and Steven Kuhn:
// http://blog.elastacloud.com/2011/05/13/azure-howto-programmatically-modify-web-config-on-webrole-startup/
@nickfloyd
nickfloyd / windbg_memory.txt
Last active May 25, 2023 12:22
windbg commands for finding memory leaks
From:
http://blogs.msdn.com/b/paullou/archive/2011/06/28/debugging-managed-code-memory-leak-with-memory-dump-using-windbg.aspx
#Set symbols File >> Symbol File path
SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
.reload
.loadby sos clr or .loadby sos mscorwks!
@nickfloyd
nickfloyd / newrelic_mongoDB.xml
Last active August 29, 2015 13:56
New Relic Extension xml MongoDB for the 10gen driver
<?xml version="1.0" encoding="utf-8"?>
<extension xmlns="urn:newrelic-extension">
<instrumentation>
<!-- instrument MongoDB.Driver.Collection -->
<tracerFactory metricName="Mongo">
<match assemblyName="MongoDB.Driver" className="MongoDB.Driver.Collection">
<exactMethodMatcher methodName="Count" />
<exactMethodMatcher methodName="Count" parameters="MongoDB.Driver.Document" />
<exactMethodMatcher methodName="FindAll" />
<exactMethodMatcher methodName="FindOne" parameters="MongoDB.Driver.Document" />
@nickfloyd
nickfloyd / active_connections.sql
Created October 31, 2013 16:32
SQL that returns number of connections per database grouped by login
SELECT
DB_NAME(dbid) as DBName,
COUNT(dbid) as NumberOfConnections,
loginame as LoginName
FROM
sys.sysprocesses
WHERE
dbid > 0
GROUP BY
dbid, loginame
@nickfloyd
nickfloyd / gist:4444709
Created January 3, 2013 16:27
Windows 8 execute all things as admin
#To disable the UAC prompt and run everything by default as admin
#Is set to 1 by default
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"
shutdown -r -t 0 #reboot
#--------------------------------------------------
#If the above breaks your ability as an Admin to install apps from the Microsoft store
#run the following in an elevated Powershell console
@nickfloyd
nickfloyd / HttpModule
Created April 17, 2012 19:26
HttpModule for grabbing status code at the end of the request
Code that goes in the Web.Config inside the configuration node:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="_9569.StatusCodeModule" />
<add name="StatusCodeModule" type="_9569.StatusCodeModule" />
</modules>
</system.webServer>
@nickfloyd
nickfloyd / gist:2402596
Created April 17, 2012 00:42
gitignore
#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
@nickfloyd
nickfloyd / sync fork
Created February 9, 2012 14:36
used to sync a forked git repo with a master repo
git remote add upstream [git repo endpoint]
git fetch upstream
git merge upstream/master