Skip to content

Instantly share code, notes, and snippets.

View walkeralencar's full-sized avatar

Walker de Alencar walkeralencar

View GitHub Profile
@walkeralencar
walkeralencar / git-remove-prune-scripts.md
Last active June 23, 2020 17:43
Git - Pruning untracked files, keeping tracked files history & renames

Base on AD7six, with renamed files history preserved. (you can skip the preliminary optional section) ref.: https://stackoverflow.com/a/33873223

Optional

remove all remotes

git remote | while read -r line; do (git remote rm "$line"); done

remove all tags

@walkeralencar
walkeralencar / aodata.js
Created February 5, 2021 06:03
Extract and Transform albiondata-client debug file.
// Extract and Transform data from Albiondata-client debug file.
// HOW TO USE: Load txt debug file, open console(Ctrl+Shift+I), and use the code.
// Author: Walker de Alencar <[email protected]>
function decodeParams(params) {
var prex = new RegExp(/([0-9]{1,}):(-?\d+|.+?(?=\s[0-9]{1,}:))/,"gi");
var r = [];
Array.from(params.matchAll(prex)).forEach(function(param){
if ( param[1] < 252) {
r[param[1]] = param[2];
@walkeralencar
walkeralencar / nms-network-patch.sh
Last active February 15, 2021 16:29
Proton 5.13 NMS Network Patch
#!/bin/bash
# Proton 5.13 NMS Networking Patch by Walkynn,
# Based on @aeikum(https://github.com/ValveSoftware/Proton/issues/438#issuecomment-764835371)
echo "Proton 5.13 NMS Networking Patch"
echo -n "Change to Proton 5.13 folder..."
cd ~/.steam/steam/steamapps/common/Proton\ 5.13
echo "OK"
@walkeralencar
walkeralencar / .groovy
Created January 4, 2023 16:40 — forked from eactisgrosso/.groovy
Jenkinsfile for building and running .NET Core images in Amazon ECS
#!/usr/bin/env groovy
pipeline {
agent { label 'master' }
stages {
stage('Checkout') {
steps {
checkout scm
}
}
@walkeralencar
walkeralencar / k3s_helm_install.sh
Created March 12, 2025 18:38 — forked from icebob/k3s_helm_install.sh
K3S + Helm installing
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system