Skip to content

Instantly share code, notes, and snippets.

@RezhaBlue
RezhaBlue / ec2-ssh-key-migration-thru-s3.md
Last active March 12, 2019 18:54
In aws, to move from one ec2 instance to another using the same elastic ip (eip) without affirming SSH permissions again, do the following

The initial and new instance must have the same IPs (Swap an elastic ip). The new instance must have the same IP on boot. Otherwise fingerprint will be for whatever IP the instance started with.

Assuming keypair uname-ssh, To pull information from the initial instance:

scp -r -v -p -i ~/.ssh/uname-ssh.pem [email protected]:/etc/ssh/ /c/Users/uname/Desktop/foo/
scp -v -p -i ~/.ssh/uname-ssh.pem [email protected]:~/.ssh/authorized_keys /c/Users/uname/Desktop/foo/ssh/
ssh -i ~/.ssh/uname-ssh.pem [email protected] "sudo cat /etc/ssh/ssh_host_ecdsa_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_ecdsa_key &&
ssh -i ~/.ssh/uname-ssh.pem [email protected] "sudo cat /etc/ssh/ssh_host_ed25519_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_ed25519_key &&
ssh -i ~/.ssh/uname-ssh.pem [email protected] "sudo cat /etc/ssh/ssh_host_rsa_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_rsa_key &&

Setup SSH for and push to multiple Git-hosting service accounts (including self-hosted) from scratch

Thanks to Rodney Lorrimar for Pushing to Multiple Git Repos

This example uses two GitHub accounts, and a self-hosted GitLab account (localhost:8092 for ssh).

The Github (another-user account) private repo has been arbitrarily chosen as the main repo for the project.

The mirrors are a separate Github (wellknownuser account) public project, and a Gitlab (dubioususer account) private group and project.

version: "3.7"
networks:
gitlab:
external: false
volumes:
config:
driver: local
logs:
#!/bin/bash
echo -e "
# \e[33mPrerequisites:\e[39m
# ~/.aws/config and ~/.aws/credentials setup for cwdevpf and cw accounts.
# KUBECONFIG is setup and stored in ~/.kube directory.
#
# \e[32mUsage:\e[39m
# Update PROFILE_DEV|PROD w/respective names from ~/.aws/credentials.
# Replace path at end of this script w/literal KUBECONFIG path, no variable.
@RezhaBlue
RezhaBlue / gist:3bb19022d5bb06f6011c1815ee10add1
Created June 7, 2022 18:06 — forked from andyyou/gist:3052671
C# Controls abbreviation
btn Button chk CheckBox ckl CheckedListBox
cmb ComboBox dtp DateTimePicker lbl Label
llb LinkLabel lst ListBox lvw ListView
mtx MaskedTextBox cdr MonthCalendar icn NotifyIcon
nud NumeircUpDown pic PictureBox prg ProgressBar
rdo RadioButton rtx RichTextBox txt TextBox
tip ToolTip tvw TreeView wbs WebBrowser
容器
flp FlowLayoutPanel grp GroupBox pnl Panel
@RezhaBlue
RezhaBlue / MHW Event Quests
Last active July 1, 2023 09:16
MHW Event quests list
(Platform -) Level - Quest Name - Reward
==============================================================================================================
L O W R A N K
1 - Up at the Crack of Dawn - Low Rank ores (Machalite Ore, Earth Crystal, Ancient Bone, Iron Ore)
2 - Chew The Fat - Great Jagras parts, Armor Spheres
3 - USJ: Gold Star Treatment - Azure Star Shard (Azure Star LS and Azure Star Palico armor set)
3 - Where Sun Meets Moon - Downy Crake Ticket (Downy Crake Brooms DB.), Pukei-Pukei and Tobi-Kadachi parts
3 - Down the Dark, Muddy Path - SFV Ticket (Ryu's Armor Set)
4 - Ya-Ku with that? - Kulu-Ya-Ku and Tzitzi-Ya-Ku parts
4 - Timberland Troublemakers - Bristly Crake Ticket (Bristly Grudge H.), Anjanath parts