Skip to content

Instantly share code, notes, and snippets.

View visualdensity's full-sized avatar
🤷‍♂️
Whassup?

Wicked visualdensity

🤷‍♂️
Whassup?
View GitHub Profile
@visualdensity
visualdensity / multiple_ssh_setting.md
Created May 5, 2026 06:17 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
scripts/
data/
results/
+- .gitignore //ignore content
jmx/
+- [test-case-name]/
+- jmx-fragments/

Types of Sockets

  • Stream sockets - TCP
  • Datagram sockets - UDP
  • Unix Domain sockets (UDS) - local, can be stream or datagram

Inspecting Sockets

Use the ss tool. Options:

AKS

Azure AKS Get Credentials

az aks get-credentials --resource-group myResourceGroup --name myAKSCluster

Getting each deployment and exract its image used:

kubectl get deployments -n backend -o=jsonpath='{range .items[*]}{.metadata.name}{", "}{.spec.template.spec.containers[].image}{"\n"}'

Ender 3 v2 Notes

Just a collection of notes for myself.

Bed Dimensions

      |<----- 169mm ------>|
  +----------------------------+ 
  |                            |
 | ◯ ◯ |
# Note how to retrieve the "Name" Tag from the response
aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[*].[InstanceType,InstanceId, [Tags[?Key==`Name`].Value][0][0] ]'
# Alarms
aws cloudwatch describe-alarms --query 'MetricAlarms[*].[AlarmName,StateValue]'
@visualdensity
visualdensity / rename.sh
Created July 3, 2020 03:04
CLI rename files
####
# Example:
#
# $ ls -1
#
# interface.address.ts
# interface.name.ts
# interface.contact.ts
#
# To remove all of the interface.*

Contributing

We love and welcome your patches and contributions to this project. There are, however, a few things that you will need to follow before we can accept them.

Sign your work

The sign-off is a simple Signed-off-by line added to every commit message. Your sign-off certifies that you agree to the following (from developercertificate.org):

@visualdensity
visualdensity / dd.sh
Created May 24, 2019 04:02
Wanna generate load? Try this on the machine
# https://stackoverflow.com/questions/2925606/how-to-create-a-cpu-spike-with-a-bash-command
dd if=/dev/zero of=/dev/null
# Ref: https://docs.docker.com/engine/reference/commandline/ps/
docker ps --format "table {{.ID}}\t{{.Status}}\t{{.Names}}"