Add the following alias to your profile:
alias ii="printf '\"%s\"' \$(wslpath -w \$PWD) | clip.exe;echo \"\u001b[33mCurrent windows path copied to clipboard.\""
function Remove-AzKeyVaultSecretAndPurge { | |
[CmdletBinding()] | |
param ( | |
# Name of the key vault | |
[Parameter(Mandatory)] | |
[string] | |
$VaultName, | |
# Name of the secret in removed state |
It happened like this: I needed to recycle an access token from an existing connection to the azure management plane in order to use the AzureAD PowerShell module in an Azure Function (that.. is another story). I thought I was smart, googled hard and finally came across the following hack:
$ctx = Get-AzContext
$null = Get-AzADApplication -ApplicationId $env:APP_CLIENT_ID #This fills the token cache.
$token = $ctx.TokenCache.ReadItems() |
Where-Object Resource -eq 'https://graph.windows.net/' |
A little info about your project and/ or overview that explains what the project is about.
A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.
Build status of continus integration i.e. travis, appveyor etc. Ex. -
apiVersion: 2018-10-01 | |
location: eastus | |
name: selenium | |
properties: | |
containers: | |
- name: selenium-hub | |
properties: | |
environmentVariables: | |
- name: 'JAVA_TOOL_OPTIONS' | |
value: '-Xmx800m' |
explore = "synths" | |
available_keys = 108 | |
set_sched_ahead_time! -0.4 | |
shift = 0 | |
live_loop :midi_player do | |
note, amp = sync "/midi:digital_piano:0:1/note_on" | |
if amp != 0 # ignore key released events | |
if note == 108 # next page | |
shift = shift + 106 | |
synth :beep, note: 88 |
live_loop :amen_to_that do | |
rate = rrand(0.1,2) | |
4.times do | |
sample :loop_amen, rate: rate | |
sleep (sample_duration :loop_amen) / rate | |
end | |
end |
key_pressed_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) | |
key_released_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) | |
amp = 0.5 | |
key_pressed_in_chord = false | |
midi_device = "/midi/digital_piano/0/1/note_on" | |
log_file_path = "C:\\Users\\Manuel\\Documents\\sonicpi\\logger.log" | |
live_loop :midi_logger do | |
note, velocity = sync midi_device | |
# File.write(log_file_path, "# debug >> [%d,%d]\n" % [note, velocity], mode: "a") |
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 |