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
for (const template of document.getElementsByTagName("template")) { | |
customElements.define( | |
template.id, | |
class extends HTMLElement { | |
constructor() { | |
super(); | |
this.attachShadow({ | |
mode: "open" | |
}).appendChild(template.content.cloneNode(true)); | |
} |
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
FN+R = Break | |
FN+S = Sys Rq | |
FN+C = Scroll Lock | |
FN+E = Insert | |
FN+W = Pause |
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
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d |
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
private String readPublicKey() throws Exception { | |
val key = new String(this.getClass().getResourceAsStream("/publicKey.pem").readAllBytes()) | |
.replace("-----BEGIN PUBLIC KEY-----", "") | |
.replaceAll(System.lineSeparator(), "") | |
.replace("-----END PUBLIC KEY-----", ""); | |
val encoded = Base64.getDecoder().decode(key); | |
val keySpec = new X509EncodedKeySpec(encoded); | |
val keyFactory = KeyFactory.getInstance("RSA"); | |
val jsonWebKey = PublicJsonWebKey.Factory.newPublicJwk(keyFactory.generatePublic(keySpec)); | |
val jsonWebKeySet = new JsonWebKeySet(jsonWebKey); |
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
Get-NetIPAddress | Where-Object {$_.AddressFamily -eq 'IPv4'} | Format-Table ifIndex,IPAddress,InterfaceAlias |
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
whoami /groups /fo list | findstr /c:"Group Name:" | % {$_.replace("Group Name: ","")} | Sort-Object |
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
Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device Parameters" | Where-Object -Property FlipFlopWheel -EQ -Value 0 | Set-ItemProperty -Name FlipFlopWheel -Value 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
taskkill /im explorer.exe /f | |
taskkill /im runtimebroker.exe /f | |
del %USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer\iconcache* | |
del %USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer\thumbcache* | |
start explorer.exe |
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
Host * | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null | |
LogLevel ERROR |
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
[ | |
{ | |
"guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", | |
"hidden": false, | |
"name": "Ubuntu-18.04", | |
"source": "Windows.Terminal.Wsl" | |
}, | |
{ | |
"guid": "{67237ada-0f41-97ed-5b91-78d99368f41a}", | |
"hidden": false, |
NewerOlder