Activate logging for a container:
az webapp log config --name mba-test-server1 --resource-group rg-mba-test --docker-container-logging filesystemtail logging stream:
az webapp log tail --name mba-test-server1| live_loop :rundgang do | |
| use_synth :hollow | |
| play_pattern_timed [:D2,:G2,:B2], 0.9, release: 1.8 | |
| sleep 0.8 | |
| play_pattern_timed [:D2,:G2,:B2], 0.37, release: 2 | |
| sleep 1.4 | |
| end |
| define :whoosh do | |
| use_synth :pulse | |
| play :F, amp: 0.2, release:3, attack:2 | |
| play :E, amp: 0.2, release:3, attack:2 | |
| sample :ambi_lunar_land, amp: 0.4 | |
| end | |
| live_loop :nervous_beep do | |
| with_fx :bitcrusher, phase: 0.5, decay: 8 do | |
| use_synth :saw |
| // This file was initially generated by Windows Terminal 1.1.2021.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
Activate logging for a container:
az webapp log config --name mba-test-server1 --resource-group rg-mba-test --docker-container-logging filesystemtail logging stream:
az webapp log tail --name mba-test-server1| const containerName = "..."; | |
| const blobService = storage.createBlobService(); | |
| blobService.listBlobsSegmented(containerName, null, function (error, results) { | |
| if (results) { | |
| for (var i = 0, blob; blob = results.entries[i]; i++) { | |
| // Work with blob item .. could be page blob, block blob, etc. | |
| } | |
| } | |
| }); |
| Get-AzKeyVaultSecret -VaultName vault20200406104150 | % { Get-AzKeyVaultSecret -VaultName $_.VaultName -SecretName $_.Name } | Select Name,SecretValueText |
Text editing:
V : Mark the whole line in visual mode
f CHAR: Go to next occurance of CHAR
Spc j j: Ivy jump to character
Spc t g: togge mode to split windows according to golden ratio
RunOnce RegKey... Wont execute..
Run and RunOnce registry keys cause programs to run each time that a user logs on. The data value for a key is a command line no longer than 260 characters.
RTFM!!!!!!
Scheduled Task with RunOnce:
| full address:s:x.x.x.x:3389 | |
| prompt for credentials:i:1 | |
| administrative session:i:1 | |
| screen mode id:i:2 | |
| span monitors:i:1 | |
| use multimon:i:1 | |
| selectedmonitors:s:0,1 | |
| https://www.hanselman.com/blog/HowToRemoteDesktopFullscreenRDPWithJustSOMEOfYourMultipleMonitors.aspx |
| # https://4sysops.com/archives/using-process-monitor-procmon-remotely/ | |
| @echo off | |
| Psexec.exe -sd \\%1 procmon -accepteula -backingfile c:\temp\proc.pml -quiet | |
| Pause | |
| Psexec.exe -sd \\%1 procmon -accepteula -terminate -quiet | |
| Xcopy \\%1\c$\temp\proc.pml c:\temp\ | |
| Del \\%1\c$\temp\proc.pml | |
| Procmon.exe /openlog c:\temp\proc.pm |