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
| function prompt { | |
| $p = $($executionContext.SessionState.Path.CurrentLocation) | |
| $converted_path = Convert-Path $p | |
| $ansi_escape = [char]27 | |
| "PS $p$('>' * ($nestedPromptLevel + 1)) "; | |
| Write-Host "$ansi_escape]9;9;$converted_path$ansi_escape\" | |
| } |
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
| PROMPT=$E]7;file://%COMPUTERNAME%/$P$E\$P$G |
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
| __wt_osc7 () { | |
| _win_path="$(cygpath -m $(pwd))" | |
| printf "\033]7;file://%s/%s\033\\" "$HOSTNAME" "$_win_path" | |
| } | |
| [ -n "$BASH_VERSION" ] && [ -n "$WT_SESSION" ] && PROMPT_COMMAND="__wt_osc7" |
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
| import os, mimetypes, sys, uuid | |
| from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient, ContentSettings | |
| connect_str = "CONNECTION_STRING" | |
| blob_service_client = BlobServiceClient.from_connection_string(connect_str) | |
| def upload_file(f): | |
| container_name = "CONTAINER" |
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
| CD $Env:Temp; | |
| Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe" -OutFile "python-3.7.9-amd64.exe" | |
| .\python-3.7.9-amd64.exe /quiet PrependPath=1 InstallAllUsers=1 TargetDir="C:\Python" Include_test=0; | |
| Start-Sleep 60; |
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
| simple_engine | |
| nn_c_port | |
| jit_frontend | |
| tmp_enable_scalars | |
| merge_variable_tensor | |
| cpp | |
| ext_test_fix | |
| win_py2.7 | |
| docker/rocm-1.8.2 | |
| always_scriptmodule |
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
| #include <string> | |
| #include <algorithm> | |
| #include <iostream> | |
| template<typename Result, typename Functor> | |
| struct functor_storage : Functor | |
| { | |
| functor_storage() = default; | |
| functor_storage(const Functor& functor) | |
| : Functor(functor) |
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
| # Documentation: https://circleci.com/docs/api/v2/ | |
| import os | |
| import sys | |
| import time | |
| import re | |
| import shutil | |
| import tempfile | |
| import requests |
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
| cd gnirehtet | |
| start /B gnirehtet-run.cmd | |
| cd .. | |
| cd scrcpy-win64-v1.23 | |
| start /B scrcpy-console.bat -S -m 1024 | |
| cd .. | |
| cd sndcpy-v1.1 | |
| start /B sndcpy.bat |
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
| from azure.keyvault.secrets import SecretClient | |
| from azure.identity import ClientSecretCredential, DefaultAzureCredential, ManagedIdentityCredential | |
| identity = DefaultAzureCredential(managed_identity_client_id='CLIENT_ID') | |
| client = SecretClient("https://MY_VAULT.vault.azure.net", identity) | |
| r = client.get_secret('MY_SECRET') |