Skip to content

Instantly share code, notes, and snippets.

View petemill's full-sized avatar

Pete Miller petemill

View GitHub Profile
@petemill
petemill / dabblet.css
Created November 13, 2012 15:26
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#consuming {position:fixed;background:red;border:solid 10px blue;left:100px;right:0;top:0;bottom:0}
#consuming iframe {width:100%;height:100%;}
@petemill
petemill / IISSites.cs
Created June 15, 2013 14:04
This simple and small .Net app will read the list of locally-configured IIS sites (filtered to specific binding hostnames if you want) and output: - The name of the site - The hostnames bound to the site - The phsical local directory running the site - If the directory is a git repository, the remote url of the repository and the branch the loca…
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Web.Administration;
using NGit.Api;
using Sharpen;
namespace ConsoleApplication1
{
internal class Program
@petemill
petemill / gulpfile.js
Last active February 3, 2016 22:17
build only if modified: gulp browserify babelify sourcemap uglify print size (example)
//example - change the paths
function CompileJsAtPath(jsFile, debug){
return new Promise(function(resolve, reject){
//best example is from https://github.com/gulpjs/gulp/blob/master/docs/recipes/browserify-uglify-sourcemap.md
//deps
const uglify = require('gulp-uglify');
const sourcemaps = require('gulp-sourcemaps');
//get current filename
__author__ = 'eoglethorpe'
"""take election info from
http://projects.fivethirtyeight.com/election-2016/delegate-targets/democrats/
and convert it to JSON
"""
import json
import requests
@petemill
petemill / LazyLoadReduxRouteFactory.js
Created January 12, 2017 02:04
Returns a class which handles running and cancelation of redux sagas when a route is entered and left
// @flow
declare var System:any;
import { getAsyncInjectors } from './asyncInjectors';
export default function LazyLoadReduxRouteFactory(store: any) {
const { injectReducer, injectSagas, removeSagas } = getAsyncInjectors(store);
@petemill
petemill / no-certs-install-windows.patch
Last active January 30, 2018 17:26
Brave build installer for Windows with no signing
diff --git a/tools/buildInstaller.js b/tools/buildInstaller.js
index d5e92c017..ed7b9da75 100644
--- a/tools/buildInstaller.js
+++ b/tools/buildInstaller.js
@@ -63,19 +63,19 @@ const raiseError = (errorMessage) => {
if (isDarwin || isWindows) {
const requiredText = 'is required for widevine signing'
if (!process.env.SIGN_WIDEVINE_PASSPHRASE) {
- raiseError('SIGN_WIDEVINE_PASSPHRASE ' + requiredText)
+ // raiseError('SIGN_WIDEVINE_PASSPHRASE ' + requiredText)

Keybase proof

I hereby claim:

  • I am petemill on github.
  • I am petemill (https://keybase.io/petemill) on keybase.
  • I have a public key ASC8iwrzKxTFVK_rjVxrpJgUHq-KVTY2pXmf_HNXy_QiXQo

To claim this, I am signing this object: