Skip to content

Instantly share code, notes, and snippets.

Bret Fisher BretFisher

Block or report user

Report or block BretFisher

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
@BretFisher
BretFisher / gist:1790821
Created Feb 10, 2012
answer to SF question
View gist:1790821
I'm a big fan of Dyn.com's free [Internet Guide][1] which takes all the work out of a content filter. NO SOFTWARE ON YOUR SERVERS. I consider them a very trustworthy company since I've been buying their products for over a decade with no issues to speak of.
1. create an account on their site
2. setup a policy using their Barracuda engine for which categories you want to block
3. tell them your external static router IP so they know who you are
4. Change the forwarders on your internal DNS server (or router) to use their DNS IP's for lookups
5. All clients are blocked at the DNS level and it only took you an hour (at most) to setup
A savy user could change their DNS to use another Internet DNS but you could block that access on port 53 if your firewall has egress filtering.
@BretFisher
BretFisher / CSharp NET 4.sublime-build
Created Feb 11, 2012
Build config for Sublime Text 2 using C# and .NET Framework 4 *without* Visual Studio installed
View CSharp NET 4.sublime-build
{
"cmd": ["C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe", "$file"],
"working_dir": "${project_path:${folder:${file_path}}}",
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]",
"selector": "source.cs"
}
View mms-agent.conf
# Ubuntu upstart file at /etc/init/mms-agent.conf
description "MongoDB Monitoring Service (MMS) Agent"
pre-start script
mkdir -p /var/log/mms-agent/
end script
post-stop script
echo "$(date +'%Y-%m-%d %T,000') INFO mms-agent stopped" >> /var/log/mms-agent/agent.log
View gist:6543827

Announcements:

  • Global Day of CodeRetreat 2013 (Dec 14)
  • Weekly hackathons in combination with Code for Hampton Roads, 757 iOS and Hampton .NET User Group

Lightning Talk by Ken Collins (@metaskils) on our 757rb marketing efforts

Introductions

Questions:

@BretFisher
BretFisher / meteor-proxy.js
Created Oct 4, 2014
Meteor HTTPS Proxy for running your own Linux server (not meteor.com, modulus.io, etc.)
View meteor-proxy.js
// run this http-proxy npm package on same server as your meteor app
// I use demeteorizer to turn meteor bundle into full node app
// I use forever to run the meteor app and this app on same server
// only npm needed is http-proxy from nodejitsu
var fs = require("fs");
var httpProxy = require('http-proxy');
httpProxy.createServer({
target: {
@BretFisher
BretFisher / checkForSettings.js
Created Jan 15, 2015
Meteor App Check for Ensuring You're Using --settings
View checkForSettings.js
// lets complain to server command line if you forgot --settings when running Meteor
Meteor.startup(function () {
if (Meteor.isServer) {
if (Object.keys(Meteor.settings).length === 0) {
console.log("You forgot to run Meteor with --settings!");
}
}
});
@BretFisher
BretFisher / repair-windows-update.bat
Last active May 8, 2019
Reset Windows Update components RE: KB971058
View repair-windows-update.bat
@echo off
REM Automation of Steps to Reset Windows Updates
REM Tested on Server 2012 R2, likely works on everything Win7/2008R2 and up
REM by Bret Fisher bret@bretfisher.com
REM also find this info and more in a blog article at http://www.fishbrains.com/2015/01/29/untitled/
REM Origional Steps (identical to this): http://support.microsoft.com/kb/971058
REM This file Copyright MIT License
REM Stop Services
@BretFisher
BretFisher / package.js
Last active Jun 8, 2017
Meteor package file example for pulling in single .css file via a npm module
View package.js
// pulling in a single .css file from npm package todomvc-app-css
// https://github.com/tastejs/todomvc-app-css
// Using this to build a TodoMVC example with Meteor 1.0
Package.describe({
summary: 'CSS for TodoMVC apps',
version: '0.0.0'
});
// this will download the npm package to .npm inside package directory
@BretFisher
BretFisher / sVimrc
Last active Aug 29, 2015
sVim Config
View sVimrc
" Example: https://github.com/flipxfx/sVim#svimrc-example
" This https://gist.github.com/BretFisher/9a77c850d5816a9b184e
let blacklists = ["*://app.datadoghq.com/*", "*://checkvist.com/*", "*://mail.google.com/*"]
View box-build.sh
#!/bin/sh
# install various tools and apps on a fresh Mac
# symlink dotfiles
source dotfiles.sh
# set mac defaults
source osxdefaults.sh
You can’t perform that action at this time.