Skip to content

Instantly share code, notes, and snippets.

View P1N2O's full-sized avatar
💭
brainstorming

Manuel Pinto P1N2O

💭
brainstorming
View GitHub Profile
@P1N2O
P1N2O / dnsmasq.conf
Created May 30, 2024 13:18
dnsmasq config
#port=5353
#strict-order
#no-resolv
server=1.1.1.1
server=/x.com/10.8.8.8
address=/localhost/127.0.0.1
address=/localhost.x.com/127.0.0.1
address=/test/127.0.0.1
@P1N2O
P1N2O / kms.md
Last active October 18, 2024 12:01
KMS Activation

Windows 11

Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43 More

slmgr /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
slmgr /skms <address-here>
slmgr /sprt 
@P1N2O
P1N2O / config.md
Created June 3, 2022 16:48 — forked from eneajaho/config.md
Angular ESLint & Prettier Configuration

Install Angular ESLint

ng add @angular-eslint/schematics

Install Prettier and Prettier-ESLint dependencies

npm install prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier --save-dev

ESLint configuration

Filename: .eslintrc.json

@P1N2O
P1N2O / `setup.md
Last active September 8, 2024 10:46
JS Dev Env Setup

JS Dev Env Setup

Interactive

curl -fsSL https://go.pinto.dev/set/env/js | sh

Manual Install

0. Update System

sudo apt update && sudo apt upgrade -y && sudo apt autoremove --purge -y
@P1N2O
P1N2O / changelog
Last active March 2, 2020 23:40
Delta Kernel - Changelog
# Delt Kernel To-Do's
~ Might be Adding CPU Input Boost
~ Might be Adding Dev Freq. Boost
~ Might be Adding Dynamic Stune Boost
## Want something? Let me know in the Telegram Support Group ASAP!
----------
@P1N2O
P1N2O / build.sh
Last active March 8, 2020 15:31
Delta Kernel - Build Script
#!/bin/bash
# Clone Clang (latest)
HOME_DIR=$(pwd)
echo "- Cloning Clang"
git clone --depth=1 https://github.com/crDroidMod/android_prebuilts_clang_host_linux-x86_clang-6207600 prebuilt/clang
# Clone GCC (aarch64)
echo "- Cloning GCC (aarch64)"
git clone --depth=1 https://github.com/P1N2O/aarch64-linux-android-4.9 prebuilt/aarch64
# Clone GCC (arm)
@P1N2O
P1N2O / delta-kernel.json
Last active May 12, 2020 16:59
Delta Kernel - Release Data
{
"Poco": {
"F1 (beryllium)": {
"2.1": {
"info": {
"date": "2020-05-12",
"changelog": "• Upstreamed to latest Linux Stable 4.9.223\n• Merged latest CAF tagb LE.UM.2.3.2-10100-SDX24\n• Added MAPLE I/O Scheduler\n• Fixed BBR TCP Cong. Algorithm\n• Fixed CPU Cores being stuck\n• Fix Boeffla Wakelock Blocker\n• Built with Clang Link-Time Optimizations (LTO)\n\n⚠ IMPORTANT\nIt is recommended to dirty flash your current ROM zip before flashing Delta Kernel"
},
"10": {
"Latest": {
@P1N2O
P1N2O / README.md
Last active November 16, 2024 00:08
Guide to Compile an Android Kernel with Clang

Android Kernel Compilation Guide

This gist is intended to assist beginners, like myself, in getting started with Android Kernel Compilation. Please note that while I'm sharing my setup and process, this guide may not be entirely accurate, and I welcome suggestions from experienced developers to improve it.

Installing Build Tools

I am on Arch, so I will be using pacman to install the base-devel package group.

sudo pacman -S base-devel

On a Debian based distro, you can use apt and install the build-essential package.

@P1N2O
P1N2O / data.json
Created August 5, 2019 11:36
Stock List Sample
[
{
"partnumber": "7206VXRG2/VSAVPNK9",
"quantity": "5",
"condition": "Brand New Sealed (Clean)",
"description": "Cisco 7206VXR System Bundle for G2 and VSA"
},
{
"partnumber": "C3900-SPE250/K9",
"quantity": "1",
@P1N2O
P1N2O / notepad-replacer-windows.md
Last active October 14, 2024 23:16
Replacing Notepad with Notepad++ in Windows 10

Replacing Notepad with Notepad++ in Windows 10

  1. Start an elevated or administrator Command Prompt.

  2. Copy the following command and paste it in the Command Prompt window:

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%ProgramFiles%\Notepad++\notepad++.exe\" -notepadStyleCmdline -z" /f

To undo (reverse) the replacement, use the following command: