Skip to content

Instantly share code, notes, and snippets.

@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
@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
#!/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.
version: "3.7"
networks:
gitlab:
external: false
volumes:
config:
driver: local
logs:

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.

@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 ec2-user@35.168.248.181:/etc/ssh/ /c/Users/uname/Desktop/foo/
scp -v -p -i ~/.ssh/uname-ssh.pem ec2-user@35.168.248.181:~/.ssh/authorized_keys /c/Users/uname/Desktop/foo/ssh/
ssh -i ~/.ssh/uname-ssh.pem ec2-user@35.168.248.181 "sudo cat /etc/ssh/ssh_host_ecdsa_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_ecdsa_key &&
ssh -i ~/.ssh/uname-ssh.pem ec2-user@35.168.248.181 "sudo cat /etc/ssh/ssh_host_ed25519_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_ed25519_key &&
ssh -i ~/.ssh/uname-ssh.pem ec2-user@35.168.248.181 "sudo cat /etc/ssh/ssh_host_rsa_key" > /c/Users/uname/Desktop/foo/ssh/ssh_host_rsa_key &&
https://www.youtube.com/watch?v=CeceqWuZ0Cg
Shared resp b/w AWS and customers
- customers are resp for security IN the cloud
- aws resp for sec OF the cloud
AWS trusted Advisor
- cost opt, sec, fault tol, perf domains
- real time guidance to achieve these
- config advisor to adjust rules to follow or ignore
#!/usr/bin/env python
import sys, subprocess
def get_gps_datetime():
timestamp = ''
date = ''
datastream = open('/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0','r')
for line in datastream :
if line.startswith( '$GPZDA' ) :
# get [vim] + [airlinetheme] monokai_tasty https://github.com/patstockwell/vim-monokai-tasty
### ~/.vimrc
# " vim-plug
# if empty(glob('~/.vim/autoload/plug.vim'))
# silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
# \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
# endif
#
#!/bin/bash
# setup wifi
#
# BACKUP: sudo cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak
# DEBUG: `sudo iwlist wlan0 scan`
echo "country=US" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf
echo "" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf
echo "$WIFI_PASSWORD" | wpa_passphrase "$ESSID" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf
wpa_cli -i wlan0 reconfigure
# DEBUG: `ifconfig wlan0`