Skip to content

Instantly share code, notes, and snippets.

@segilbert
segilbert / fb.ng.ctrl.sublime-snippet.xml
Last active August 29, 2015 14:07
Angular Controller Sublime Code Snippet
<snippet>
<content><![CDATA[
(function (){
'use strict';
angular.module('${1:AppName}')
.controller('${2:controllerName}', [${2:controllerName}]);
function ${2:controllerName}(){
var vm = this;
@segilbert
segilbert / BoxstarterBuildAutomationExample
Last active August 29, 2015 14:17
Boxstarter Build Automation Example
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
cinst VisualStudio2013ExpressWeb
cinst fiddler4
cinst mssqlserver2012express
cinst git-credential-winstore
cinst console2
@segilbert
segilbert / gist:4793110e6cf1efa77451
Last active August 29, 2015 14:18
Development Machine Setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
# cinst visualstudio2013ultimate
cinst fiddler4
cinst mssqlserver2012express
cinst git-credential-winstore
cinst console2
@segilbert
segilbert / move.directory.cmd
Created July 30, 2015 12:15
A helper function to deep copy a folder from C:\ to D:\, delete the folder once copied and create a sysmlink.
REM
REM ** USE AT YOUR OWN RISK **
REM
REM robocopy command line options
REM https://technet.microsoft.com/en-us/library/Cc733145.aspx
REM
REM How to move C:\ProgramData Cache to save gigs of space
REM http://superuser.com/questions/455853/can-i-delete-the-the-folder-c-programdata-package-cache
REM
REM Windows 8 specific space savings review link below
@segilbert
segilbert / move.directories.cmd
Created July 30, 2015 12:16
Driver script, using move.directory.cmd command to deep copy a folder from C:\ to D:\, delete the folder once copied and create a sysmlink.
REM
REM ** USE AT YOUR OWN RISK **
REM
REM Uses move.directory.cmd command to deep copy a folder from C:\ to D:\
REM delete the folder once copied and create a sysmlink.
REM Simply pass in the folder to move.
REM
REM Visual Studio uses "\ProgramData\Package Cache" to store installed
REM packages. These packages are required for VS to uninstall packages
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
cinst windows-sdk-8.1
cinst visualstudio2013professional
cinst visualstudio2013-sdk
cinst git.install
cinst Boxstarter
Set-ExecutionPolicy Unrestricted -Force
Import-Module Boxstarter.Chocolatey
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/segilbert/8946331a1e8957c37001fbb7ad815a4c/raw/8b36cd391e2cc135db6c01df3ac879d9fdedebf9/DevTestLabCodeGenMachineWin8Setup.txt
Set-ExecutionPolicy Unrestricted -Force
Import-Module Boxstarter.Chocolatey
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/segilbert/100f871a406f568bfd9e72d6aac2970a/raw/29562aaa6a8ff164b0033202e1b27185b043e85f/DevTestLabCodeGenMachineWin10Setup.txt
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
cinst windows-sdk-10.0
cinst visualstudio2013professional
cinst visualstudio2013-sdk
cinst git.install
cinst Boxstarter
@segilbert
segilbert / Git.flt
Created February 21, 2017 23:02
WinMerge Git Internal Folder Filter
## This is a directory/file filter template for WinMerge
name: Git Folder
desc: Filter out all Git Folder (.git) diffs
## Select if filter is inclusive or exclusive
## Inclusive (loose) filter lets through all items not matching rules
## Exclusive filter lets through only items that match to rule
## include or exclude
def: include