Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # Aliases | |
| Set-Alias subl "C:\Program Files\Sublime Text 3\sublime_text.exe" | |
| Set-Alias ie "C:\Program Files\Internet Explorer\iexplore.exe" | |
| Set-Alias winscp "C:\Program Files (x86)\WinSCP\WinSCP.exe" | |
| # Functions | |
| function rdp { mstsc /control /v:$args } | |
| function pssh { Enter-PSSession -Computername $args[0] -Credential etamgroep\dadmin8 } |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| path = node['myapp']['path'] | |
| install_options = [] | |
| install_options << "--registry=#{node['myapp']['npm_registry']}" if (node['myapp']['npm_registry']) | |
| # option is to prevent failure as pkgs are unauthenticated | |
| package 'git' do | |
| action :install | |
| options "--allow-unauthenticated" | |
| end |
| function elevate-process | |
| { | |
| $file, [string]$arguments = $args; | |
| $psi = new-object System.Diagnostics.ProcessStartInfo $file; | |
| $psi.Arguments = $arguments; | |
| $psi.Verb = "runas"; | |
| $psi.WorkingDirectory = get-location; | |
| [System.Diagnostics.Process]::Start($psi); | |
| } |