Skip to content

Instantly share code, notes, and snippets.

@fearthecowboy
fearthecowboy / elevate.ps1
Last active September 3, 2019 11:34
Better elevation script for powershell
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@fearthecowboy
fearthecowboy / PowerShellWebServer.ps1
Last active September 9, 2021 00:40
PowerShell Webserver that restarts when you edit the script.
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@iggym
iggym / gist:5950905
Created July 8, 2013 17:48
Template for README.md
Master-Detail App Template
=====================
A Master-Detail App Template from Xcode
Overview
--------
- version: 0.1.0
Description
@janbaer
janbaer / gist:5276178
Created March 30, 2013 09:59
Restart your current powershell console as Administrator
function adminMode() {
Start-Process -FilePath "$PSHOME\powershell.exe" -Verb runas -WorkingDirectory $PWD.Path
Exit
}
Set-Alias -Name "elevated" -Value "adminMode"