Skip to content

Instantly share code, notes, and snippets.

View P1N2O's full-sized avatar
💭
brainstorming

Manuel Pinto P1N2O

💭
brainstorming
View GitHub Profile
document.getElementById("sds-footer").classList.add("d-none");
Easy Tutorial how Active Sublime Text 3200.
Go to https://hexed.it/
Click in "Open file" and send "sublime_text.exe" executable file.
Go to "Search" and in "Search for" field, search for "97 94" and click "Search now" buttom.
Some results will appear bellow, click in everyone and see if your see "97 94 0D"
If you see "97 94 0D", change this values for "00 00 00"
Then click in "Export" to save and download your new file in your computer.
Now just insert serial below and it will work fine.
@P1N2O
P1N2O / core-libs-cdn.md
Last active January 27, 2020 21:43
Core CSS/JS Lib's CDN

Core Lib's CDN

This is a handy gist of most used CSS/JS Frameworks & Libraries used by me for all my projects.

  • Fetch the specified / latest version directly from original GitHub repo.
  • Add ".min" to any JS/CSS file to get a minified version.
  • Powered by jsDeliver - A Free, Fast, Reliable & Open Source CDN

@P1N2O
P1N2O / git-cheat-sheet.md
Last active April 18, 2020 19:18
Git Cheat Sheet

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@P1N2O
P1N2O / notepad-replacer-windows.md
Last active February 20, 2024 12:45
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:

@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 / README.md
Last active April 29, 2024 01:29
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 / 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 / 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)