[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 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 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 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 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:
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
log_file="notes_log.yml" | |
log_dir="~/Documents/github/cli-log" | |
my_log="$log_dir/$log_file" | |
alias tl-file="echo $my_log" | |
function wl { | |
start_dir=$(pwd) | |
cd "$log_dir" | |
git pull --quiet | |
text="" | |
for word in "$@" |
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 rm layouts | |
bash | |
rm -rf .git/modules/layouts | |
exit |
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
# language: python | |
install: | |
- wget https://github.com/gohugoio/hugo/releases/download/v0.39/hugo_0.39_Linux-64bit.deb | |
- sudo dpkg -i hugo*.deb | |
# - pip install Pygments | |
script: | |
- git checkout master | |
- rm -rf docs |
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
language: python | |
install: | |
- wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.deb | |
- sudo dpkg -i hugo*.deb | |
- pip install Pygments | |
script: | |
- hugo |
NewerOlder