This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files\7-Zip>7z.exe a -tzip utility.zip C:\nChannel_2014\nChannel\Dev\ | |
nodejs\management -xr!node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node-debug --no-preload -d 5888 -b false app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this to create a local branch but track the remote repo | |
git checkout -b develop --track origin/develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Show what will be deleted with the -n option: | |
git clean -f -n | |
// Then - beware: this will delete files - run: | |
git clean -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push origin develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use $profile to find the directory and file that needs to be used or created | |
# http://www.howtogeek.com/50236/customizing-your-powershell-profile/ good guide to profiles | |
function dbug ($filename){ | |
$npm = "C:\Program Files\nodejs\node.exe" | |
$arguments = '--no-preload -d 5888 -b false' + $filename | |
start-process "node-debug" -ArgumentList $arguments -nonewwindow | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout -- <file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nssm remove "pim-engine" confirm | |
nssm install "pim-engine" "C:\Program Files\nodejs\node.exe" "C:\sites\node\pim-engine\20130313_master_custom\pim-engine-master\app.js" | |
nssm set "pim-engine" appDirectory "C:\sites\node\pim-engine\20130313_master_custom\pim-engine-master" | |
net start "pim-engine" | |
nssm remove "pim-api" confirm | |
nssm install "pim-api" "C:\Program Files\nodejs\node.exe" "C:\sites\node\pim-api\20160313_master_4185353\pim-api-master\appServer.js" | |
nssm set "pim-api" appDirectory "C:\sites\node\pim-api\20160313_master_4185353\pim-api-master" | |
net start "pim-api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd /k net user <username> /Domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Renders out May | |
Select DateName(month, DateAdd(month, 5, -1)) | |
-- https://msdn.microsoft.com/en-us/library/ms174395.aspx | |
-- DateName(datepart, date) | |
-- https://msdn.microsoft.com/en-us/library/ms186819.aspx | |
-- DateAdd(datepart, number, date) | |
-- @datepart - the particular part of the date (year, month, etc.,) that will be incremented by an integer | |
-- @number - the month we are targeting |