Skip to content

Instantly share code, notes, and snippets.

View labaneilers's full-sized avatar

Laban Eilers labaneilers

View GitHub Profile
@labaneilers
labaneilers / ASPNET-MVC-OSX-Apache.md
Last active April 14, 2024 23:20
Setting up ASP.NET MVC 5 via Mono on Mac OSX, with Apache

Install ASP.NET MVC 5 on Mono, Mac OSX, apache with mod_mono

Install mono MDK

  • NOTE: no x64 package is available (unless you want to install from source), so I installed the x86 version

  • Install mono MDK from:

http://www.mono-project.com/download/

I used 3.10.0, which corresponds to .NET 4.5

@labaneilers
labaneilers / cloudSettings
Created August 29, 2017 14:33
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-08-29T14:31:56.888Z","extensionVersion":"v2.8.3"}
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
@labaneilers
labaneilers / setup.ps1
Last active May 24, 2018 00:19
Windows dev setup
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
@labaneilers
labaneilers / AutoHotKey.ahk
Created October 4, 2017 14:58
AutoHotKey config
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.
@labaneilers
labaneilers / executor.ini
Last active August 25, 2020 02:10
Executor settings
[W0]
keywords=addremove
command=control.exe
comment=Add/remove programs
param=appwiz.cpl
[W1]
keywords=admin
command=control.exe
comment=Administrative tools
@labaneilers
labaneilers / git config
Last active October 4, 2017 18:41
git config
[user]
name = Laban Eilers
email = leilers@vistaprint.com
[alias]
rt = log --pretty=format:'%C(bold yellow)%h %C(cyan)%an%C(auto)%d %Creset%<(130,trunc)%s %C(cyan)(%cr)' --date=short --graph --all --decorate --author eilers --max-count 10
lgs = log --pretty=format:'%C(bold yellow)%h %C(cyan)%an%C(auto)%d %Creset%<(130,trunc)%s %C(cyan)(%cr)' --date=short --graph --all --decorate --max-count 30
rb = rebase origin/svn
fa = fetch --all
rbi = rebase --interactive
@labaneilers
labaneilers / TPLPromises.cs
Created October 28, 2017 20:48
Promises-link syntax for Tasks in dotnet
using System;
using System.Threading;
using System.Threading.Tasks;
namespace exception_test
{
class Program
{
static void Main(string[] args)
{
@labaneilers
labaneilers / setup.ps1
Last active December 1, 2017 21:13
sitecore-base
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
& C:\Windows\system32\tzutil /s "Eastern Standard Time"
Update-ExecutionPolicy Unrestricted
Disable-UAC
Set-WindowsExplorerOptions -EnableShowProtectedOSFiles -EnableShowFileExtension -EnableShowHiddenFilesFoldersDrives
Enable-RemoteDesktop
@labaneilers
labaneilers / elementAdded.js
Created December 8, 2017 19:42
Listen and respond to DOM elements as they are added to prevent flicker
(function(win) {
'use strict';
var listeners = [];
var doc = win.document;
var MutationObserver = win.MutationObserver || win.WebKitMutationObserver;
var observer;
// Returns true if the specified node matches the selector