Skip to content

Instantly share code, notes, and snippets.

View Michaelvsk's full-sized avatar
🖖

Michael Keller Michaelvsk

🖖
  • Germany
View GitHub Profile

Screen Quick Reference

Basic

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
@Michaelvsk
Michaelvsk / pubkey.gpg
Last active September 7, 2023 11:57
Public OpenPGP Key
-----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
@Michaelvsk
Michaelvsk / VSDevShell.ps1
Created July 5, 2021 10:00 — forked from ArthurHNL/VSDevShell.ps1
Enter VSDevShell from a stand-alone powershell script
$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
@Michaelvsk
Michaelvsk / For-Windows
Last active April 8, 2020 14:41
Must have developer tools
## 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
@Michaelvsk
Michaelvsk / git_settings.sh
Created January 30, 2020 11:32
Some GIT settings I always forget to set when setting up a new system
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
@Michaelvsk
Michaelvsk / WSL Settings
Last active December 16, 2019 05:33
WSL Settings
# Various preferred settings for WSL
@Michaelvsk
Michaelvsk / .bashrc
Last active February 19, 2021 13:18
Useful settings
# 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 {
@Michaelvsk
Michaelvsk / Get-AzureRmUnmanagedDisks.ps1
Created March 12, 2019 09:26
Get all unmanaged Disks of current Azure Subscription
# 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){
@Michaelvsk
Michaelvsk / index.html
Last active February 28, 2019 10:05 — forked from cmalven/index.html
Shortest (useful) HTML5 Document
<!-- 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>