Skip to content

Instantly share code, notes, and snippets.

View nahuelDev23's full-sized avatar
🏠
Working from home

Nahuel nahuelDev23

🏠
Working from home
View GitHub Profile
@nahuelDev23
nahuelDev23 / configuration.default.nix
Created September 3, 2024 22:26 — forked from mingodev/configuration.default.nix
NixOS configuration for PC
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@nahuelDev23
nahuelDev23 / Service KMS
Created April 15, 2024 16:30 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@nahuelDev23
nahuelDev23 / folder_structure.md
Created March 1, 2024 17:07 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@nahuelDev23
nahuelDev23 / ubuntu_software_installer
Created November 21, 2022 21:06 — forked from snovakovic/ubuntu_software_installer
Bash script to install softwares on ubuntu
#!/bin/bash
# run it as sudo yes | sh ubuntu_software_installer.sh
# CURL
sudo apt-get install curl
# CHROME
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@nahuelDev23
nahuelDev23 / git-alias.md
Created May 21, 2022 13:36 — forked from Klerith/git-alias.md
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb