Skip to content

Instantly share code, notes, and snippets.

View pancudaniel7's full-sized avatar
🎯
Focusing

Daniel pancudaniel7

🎯
Focusing
View GitHub Profile
@pancudaniel7
pancudaniel7 / GeneralistGradingScale.md
Last active August 2, 2023 16:42
Senior Engineer Generalist Grading Scale

Senior Engineer Generalist Grading Scale

Essential categories to consider when conducting an interview for a senior generalist software developer

Observation: In the grade cell you can add a grade between 1 and 10 for that category

Technical Proficiency [Grade]
  • Depth of knowledge in relevant programming languages, frameworks, and tools
@pancudaniel7
pancudaniel7 / Unreal_engineer.md
Last active July 6, 2023 18:14
Unreal game engineer

Job Title: Unreal Engineer

Location: Fully Remote

About Our Company

We are a dynamic technology company creating a backend game engine — a platform of services and tools that enable game studios to launch live-service games.

You'll be joining a passionate, remote-first team that has scaled games such as League of Legends and Destiny 2 and many more games at Riot, Bungie, PopCap, and EA. We have also scaled platforms at traditional tech companies including Google, Amazon, Microsoft, and SendGrid.

@pancudaniel7
pancudaniel7 / wsl_port_forwarding.bat
Last active January 6, 2024 10:28
WSL2 port forwarding example script
@echo off
if "%~1"=="" (
set "WSL_IP=172.20.16.1"
) else (
set "WSL_IP=%~1"
)
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=%WSL_IP%
netsh interface portproxy add v4tov4 listenport=3001 listenaddress=0.0.0.0 connectport=3001 connectaddress=%WSL_IP%

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@pancudaniel7
pancudaniel7 / kube_gcp_connect.sh
Last active October 8, 2022 09:15
GCP Kubernetes cluster connect
export DEP_PROJECT_ID=my_project
export DEP_ZONE=my_project_zone
export DEP_REGION=my_project_region
gcloud config set project ${DEP_PROJECT_ID}
gcloud config set compute/zone ${DEP_ZONE}
gcloud config set compute/region ${DEP_REGION}
gcloud container clusters get-credentials naas --region ${DEP_REGION} --project ${DEP_PROJECT_ID}
@pancudaniel7
pancudaniel7 / py_remote_debugger.sh
Created December 21, 2021 20:51
Python3 remote debugging using debugpy
#!/bin/bash
# Debug
python3 -m debugpy --listen 1.2.3.4:5678 --wait-for-client -m myproject
@pancudaniel7
pancudaniel7 / sealed-secret-file.sh
Last active July 19, 2021 13:30
Script for creating kubeseal sealedSecret from file
#!/bin/bash
# Params
# 1 - secret name
# 2 - file name
# 3 - secret yaml file name
# 4 - sealedSecret yaml file name
oc delete secret ${1:-ca-crt};
oc create secret generic ${1:-ca-crt} --from-file ${2:-ca.crt} && \
#!/bin/bash
# first param is gpg key id (gpg --list-secret-keys --keyid-format LONG (sec field from / to right) - to get this)
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
brew uninstall gpg
brew install gpg2
brew install pinentry-mac
gpg --list-keys --keyid-format LONG
git config --global user.signingkey $1
#!/bin/bash
gpg --output public.pgp --armor --export username@email
gpg --output private.pgp --armor --export-secret-key username@email
gpg --import private.key
gpg --list-keys --keyid-format LONG
gpg --list-signatures
@pancudaniel7
pancudaniel7 / aliases.sh
Last active November 8, 2024 21:21
Aliases
# aliases
alias bashs="source ~/.zshrc"
alias bashp="vim ~/.zshrc"
alias install="sudo apt install -y"
alias ws="cd ~/workspace"
alias ll="ls -alh"
alias rm="rm -rf"
alias poweroff="sudo shutdown -h +0"
alias rest="pmset sleepnow"