| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
This file contains hidden or 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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBGT5t4wBEADPk6gPG8lvOExP12/1+rq6Ro0s+fpedjwVSp4hPkEzNw8pkbX4 | |
| TQ5blpyz5r1KFUhZNrfCsL1Y7dyywhO20LjminppuivCW6WuUNtd37CiKfx/j0tI | |
| be7Ooqb9+jd9GokCs6ZaPImvYaBkUAFTmn3Xqcaq0wKqghVF7OF/EFW99fdas6di | |
| q/L/EPutKsrbBJOp0bazAuAywzPnF5gvtw5qh/H8QTIzAdz9YkyNRh/6wrGDw33c | |
| 2ic72HE6nq1RNet/w/Sk7j17fMWhirBXqROSRrADUYPmK0gEUpIFWpUJymV2r86H | |
| HeKLUF0yV5iFmS+KcZPiUVJiU26ZwlnZOfI0Fl0zAgz8UsUrZ3HlKE24TlMt7UBu | |
| 7w6I/Eb+9EM1+E0vLGFB25mGWic30PAcRjRjblwUPW/bqDt5xbDIODeTRZ2MNl+i | |
| Jdmk8vSfT5SHzCCH4UkVWei8T8aYzXuF1i1rFn1TNGVP9LQppsVC9ECZadKkFoeV |
This file contains hidden or 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
| $vsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -property installationpath | |
| Import-Module (Get-ChildItem $vsPath -Recurse -File -Filter Microsoft.VisualStudio.DevShell.dll).FullName | |
| Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation |
This file contains hidden or 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
| ## PowerShell | |
| # PowerTab: https://github.com/jasonmarcher/PowerTab | |
| Install-Module -Name PowerTab | |
| # Powershell Community Extensions: https://github.com/Pscx/Pscx | |
| Install-Module Pscx -AllowClobber #-AllowClobber required to workaround conflicts with Expand-Archive and other new built-in commands | |
| # Import modules using the powershell profile config. Crerate file if not exist. | |
| $env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 |
This file contains hidden or 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 config --global user.name "FIRST_NAME LAST_NAME" | |
| git config --global user.email "MY_NAME@example.com" | |
| git config --global remote.origin.prune true |
This file contains hidden or 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
| # Various preferred settings for WSL |
This file contains hidden or 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
| # get __git_ps1 working first | |
| source /usr/lib/git-core/git-sh-prompt | |
| # Based on https://gist.github.com/justintv/168835#gistcomment-1717504 | |
| PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\]$(__git_ps1)\n\[\033[0;32m\]└─\[\033[0m\033[0;32m\] \$\[\033[0m\] ' | |
| # Start ssh-agent on login - Based on https://stackoverflow.com/a/18915067/5772806 | |
| SSH_ENV="$HOME/.ssh/env" | |
| function start_agent { |
This file contains hidden or 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
| # unfortunately forgot where I found that neat script :/ | |
| $storageAccounts = Get-AzureRmStorageAccount | |
| foreach($storageAccount in $storageAccounts){ | |
| $storageKey = (Get-AzureRmStorageAccountKey -ResourceGroupName $storageAccount.ResourceGroupName -Name $storageAccount.StorageAccountName)[0].Value | |
| $context = New-AzureStorageContext -StorageAccountName $storageAccount.StorageAccountName -StorageAccountKey $storageKey | |
| $containers = Get-AzureStorageContainer -Context $context | |
| foreach($container in $containers){ |
This file contains hidden or 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
| <!-- http://www.brucelawson.co.uk/2010/a-minimal-html5-document/ --> | |
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Pagetitle</title> | |
| </head> | |
| <body> | |
| <p>I'm the content</p> | |
| </body> |