[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
scoop install openssh
ssh-keygen # accept all defaults
cat ~/.ssh/id_rsa.pub | clip # Then paste clipboard contents to GitLab account SSH Keys
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
#requires -Version 5.1+ | |
<# | |
Windows OpenSSH has strict permissions requirements on the `~/.ssh/authorized_keys` file that | |
can make adding or removing or even listing keys cumbersome. | |
This script handles the grunt-work to handle those requirements. | |
#> | |
<# | |
.SYNOPSIS |
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
if(-Not $cursorPath -OR -NOT $appDataCursorPath){ | |
Write-Host "set `$cursorPath with the actual installation path of Cursor" | |
Write-Host "set `$appDataCursorPath with the actual installation path of Cursor" | |
} | |
Write-Host "Remove $cursorPath and it's contents" | |
if (Test-Path $cursorPath) { | |
Remove-Item -Recurse -Force $cursorPath | |
} | |
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 displayImplementationStatus(progress, showOnlyIncomplete) { | |
const branch = 'current-branch'; // placeholder | |
console.log(` | |
VSCode Context Client Implementation Status (Branch: ${branch}) | |
${showOnlyIncomplete ? '(Showing only incomplete items)' : ''} | |
========================================================= | |
`); | |
progress.sections.forEach((section) => { |
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
#!/bin/bash | |
# Script to comprehensively uninstall Docker on Linux systems | |
# Uninstall Docker Engine, CLI, Containerd, and Docker Compose packages | |
sudo apt-get purge -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose | |
# Remove Docker's official GPG key and repository | |
sudo rm -f /etc/apt/keyrings/docker.gpg | |
sudo rm -f /etc/apt/sources.list.d/docker.list |
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 Move-GitForward (){ | |
param( | |
[int]$commits | |
) | |
if (-not $commits -or $commits -lt 1) { | |
$commits = 1; | |
} | |
git rev-parse --short HEAD ` | |
| Set-Variable head; | |
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
Dec | key | modifier | Character | value | |
---|---|---|---|---|---|
33 | 30 | 2 | ! | ! | |
36 | 33 | 2 | $ | $ | |
37 | 34 | 2 | % | % | |
38 | 36 | 2 | & | & | |
40 | 38 | 2 | ( | ( | |
41 | 39 | 2 | ) | ) | |
42 | 37 | 2 | * | * | |
43 | 46 | 2 | + | + | |
44 | 54 | 0 | , | , |
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
export $(cat .env | xargs) | |
# Run this script on your EC2 instance to test CloudWatch agent and SSM agent. | |
# This script assumes you have the following installed: | |
# - SSM agent | |
# - SSM CLI | |
# - CloudWatch agent | |
# - AWS CLI, | |
# - Configured with --region |
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
# [Guidance for CVE-2022-30190](https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/) | |
# Run with administrator privileges | |
# Disables Microsoft Remote Debug service | |
mkdir c:/reg_bak | |
cmd /c reg export HKEY_CLASSES_ROOT\ms-msdt c:/reg_bak/msdt.reg | |
cmd /c reg delete HKEY_CLASSES_ROOT\ms-msdt /f |
I hereby claim:
- I am integr8or on github.
- I am valuecritic (https://keybase.io/valuecritic) on keybase.
- I have a public key ASAoWQ8SCZzoLslHbnyA6jRft0-0cYgjDPayZYUUy2oezgo
To claim this, I am signing this object:
NewerOlder