Skip to content

Instantly share code, notes, and snippets.

View pancudaniel7's full-sized avatar
🎯
Focusing

Daniel pancudaniel7

🎯
Focusing
View GitHub Profile
@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%
@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 / 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 / BackendEngineerSpecialistGradingScale.md
Last active March 15, 2024 19:08
Senior Backend Engineer Specialist Grade Scaling

Senior Backend Engineer Specialist 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
#!/bin/bash
# Generates terraform multiple workspaces project structure
project_name=${1:-terraform-project}
mkdir $project_name && \
cd $project_name && \
mkdir -p environments/{dev,staging,prod} && \
mkdir -p modules && \

Daily Git Backup Script

This bash script automatically backs up your last five Git commits to a specified directory. It's designed to be run on macOS using launchd, ensuring your backups are created daily without manual intervention.

Prerequisites

  • macOS operating system.
  • Basic understanding of terminal commands.
  • Git repositories that you want to back up.
#!/bin/bash
# This script will backup your n last commits in to it to git-backups directory
BACKUP_DIR="$HOME/git-backups"
LOG_FILE="/var/log/git_backup.log"
GIT_REPO_DIR="${1:-/Users/pancudaniel/workspace/pragma-infrastructure}"
mkdir -p "$BACKUP_DIR"
TIMESTAMP=$(date +"%Y-%m-%d")
#!/bin/bash
# 1 - project name (default: ansible)
project_name=${1:-ansible}
ansible_config_file_url="https://gist.github.com/alivx/2a4ca3e577ead4bd38d247c258e6513b"
mkdir -p $project_name/{playbooks,roles,inventory} && \
touch $project_name/{playbooks,roles,inventory}/.gitkeep && \
curl -o $project_name/ansible.cfg https://gist.githubusercontent.com/alivx/2a4ca3e577ead4bd38d247c258e6513b/raw/fe2b9b1c7abc2b52cc6998525718c9a40c7e02a5/ansible.cfg

Pulumi Go remote debugging

In this guide, we will walk through the setup and steps needed to start a remote debugging session for a Pulumi Go application.

Pre-installation Requirements

Before you begin, ensure you have the necessary tools installed on your system. The following are required to successfully run and debug the application:

Delve Debugger

Log Truncation Utility with systemd

This document explains how to set up and use a log truncation utility on a Linux system using systemd

Setup

Step 1: Script Creation

  1. Create the Script (truncate_logs.sh):