Skip to content

Instantly share code, notes, and snippets.

View pancudaniel7's full-sized avatar

Daniel pancudaniel7

View GitHub Profile
@pancudaniel7
pancudaniel7 / devops_best_practices.md
Last active April 3, 2023 07:02 — forked from jpswade/devops_best_practices.md
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud

@pancudaniel7
pancudaniel7 / git_resign_all_commits.sh
Last active April 3, 2023 17:00 — forked from qdequele/gpg_resign.sh
Resign all my old commits with GPG key
#!/bin/sh
cd $1
export GIT_COMMITTERT_EMAIL=pancudaniel7@gmail.com
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "pancudaniel7@gmail.com" ]
then
git commit-tree -S "$@";
fi
' -- --all

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: