This file contains 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 asyncio import sleep | |
import displayio | |
import terminalio | |
from adafruit_display_text import label | |
from wifi import radio | |
async def maintain_status_bar(canvas: displayio.Group, anchor_point=(0, 0), anchored_position=(0, 0)): | |
""" |
This file contains 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
#Requires -Version 7.0 | |
<# | |
Created by Duncan Gibson. This script is shared under the terms of the | |
CC Attribution-NonCommercial-ShareAlike 4.0 International license, which | |
may be found here: https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
#> | |
<# | |
The PowerShell help system can be invoked to show you how to use this |
This file contains 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
# Requires PowerShell to be installed. Works well when `fetch.prune` is set to `true`. | |
# running from Bash | |
pwsh -c 'git branch -vv | where-object {$_ -like "*: gone]*"} | foreach-object {git branch -D ($_ -split "\s+")[1]}' | |
# running from within pwsh | |
git branch -vv | where-object {$_ -like "*: gone]*"} | foreach-object {git branch -D ($_ -split "\s+")[1]} |
This file contains 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
$arr = [System.Collections.ArrayList]@() | |
while ($true) { | |
$url = Read-Host "Service URL (must be valid, leave empty if done)" | |
if ($url -eq "") { | |
break | |
} | |
$arr.Add([pscustomobject]@{ |
This file contains 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
@ECHO off | |
:top | |
CLS | |
ECHO Choose a shell: | |
ECHO [1] cmd | |
ECHO [2] bash | |
ECHO [3] PowerShell | |
ECHO [4] Python | |
ECHO. | |
ECHO [5] restart elevated |