Skip to content

Instantly share code, notes, and snippets.

Pete Miller petemill

Block or report user

Report or block petemill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am petemill on github.
  • I am petemill ( on keybase.
  • I have a public key ASC8iwrzKxTFVK_rjVxrpJgUHq-KVTY2pXmf_HNXy_QiXQo

To claim this, I am signing this object:

petemill / no-certs-install-windows.patch
Last active Jan 30, 2018
Brave build installer for Windows with no signing
View no-certs-install-windows.patch
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)
petemill / LazyLoadReduxRouteFactory.js
Created Jan 12, 2017
Returns a class which handles running and cancelation of redux sagas when a route is entered and left
View LazyLoadReduxRouteFactory.js
// @flow
declare var System:any;
import { getAsyncInjectors } from './asyncInjectors';
export default function LazyLoadReduxRouteFactory(store: any) {
const { injectReducer, injectSagas, removeSagas } = getAsyncInjectors(store);
__author__ = 'eoglethorpe'
"""take election info from
and convert it to JSON
import json
import requests
petemill / gulpfile.js
Last active Feb 3, 2016
build only if modified: gulp browserify babelify sourcemap uglify print size (example)
View gulpfile.js
//example - change the paths
function CompileJsAtPath(jsFile, debug){
return new Promise(function(resolve, reject){
//best example is from
const uglify = require('gulp-uglify');
const sourcemaps = require('gulp-sourcemaps');
//get current filename
petemill / IISSites.cs
Created Jun 15, 2013
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…
View IISSites.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Web.Administration;
using NGit.Api;
using Sharpen;
namespace ConsoleApplication1
internal class Program
petemill / dabblet.css
Created Nov 13, 2012
The first commented line is your dabblet’s title
View dabblet.css
* 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%;}
You can’t perform that action at this time.