Skip to content

Instantly share code, notes, and snippets.

View natemcmaster's full-sized avatar

Nate McMaster natemcmaster

View GitHub Profile
@natemcmaster
natemcmaster / CrappyBank.js
Last active August 29, 2015 13:57
Injector syntax
function CrappyBank(data){
}
#Requires -Version 2.0
function Invoke-MsBuild
{
<#
.SYNOPSIS
Builds the given Visual Studio solution or project file using MSBuild.
.DESCRIPTION
Executes the MSBuild.exe tool against the specified Visual Studio solution or project file.
Returns true if the build succeeded, false if the build failed, and null if we could not determine the build result.

Keybase proof

I hereby claim:

  • I am natemcmaster on github.
  • I am nikstr (https://keybase.io/nikstr) on keybase.
  • I have a public key whose fingerprint is 0274 7E76 86FB 8265 6544 9A7B 800F 24C4 D77A ED2D

To claim this, I am signing this object:

[
// Sidebar folder closed
{
"class": "icon_folder",
"layer0.texture": "User/Theme - Soda/icons/folder.png",
"layer0.opacity": 1.0,
"content_margin": [8, 8]
},
// Sidebar folder open
{
[
{
"class": "icon_file_type",
"content_margin": [0,0]
},
{
"class": "icon_folder",
"content_margin": [0,0]
},
{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>scope</key>
<string>source.css</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_css</string>
@natemcmaster
natemcmaster / nuget.exe
Created July 3, 2014 04:46
build.sh output
--2014-05-31 00:33:12-- https://www.nuget.org/nuget.exe
Resolving www.nuget.org... 168.62.110.126
Connecting to www.nuget.org|168.62.110.126|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://az320820.vo.msecnd.net/downloads/nuget.exe [following]
--2014-05-31 00:33:13-- https://az320820.vo.msecnd.net/downloads/nuget.exe
Resolving az320820.vo.msecnd.net... 93.184.215.201, 93.184.215.200
Connecting to az320820.vo.msecnd.net|93.184.215.201|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1670320 (1.6M) [application/x-msdownload]
Warning: FindPackagesById: Microsoft.Framework.Logging
Error: ConnectFailure (Too many open files)
GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.Logging'
Warning: FindPackagesById: Microsoft.Framework.Logging
Error: ConnectFailure (Too many open files)
GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.Logging'
Error: FindPackagesById: Microsoft.Framework.Logging
Error: ConnectFailure (Too many open files)
Warning: FindPackagesById: Microsoft.Framework.Logging
Error: ConnectFailure (Too many open files)
AddType image/x-icon .ico
<IfModule mod_headers.c>
# cache for a year
<FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf)$">
Header set Cache-Control "max-age=29030400"
</FilesMatch>
# WEEK
<FilesMatch ".(js|css|swf)$">
Header set Cache-Control "max-age=604800"
def install_proxy():
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:63029'})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)