Skip to content

Instantly share code, notes, and snippets.

View NorkzYT's full-sized avatar
💻
Always Coding, & Learning!

Richard Lora NorkzYT

💻
Always Coding, & Learning!
  • 03:58 (UTC -04:00)
View GitHub Profile
@aravindanve
aravindanve / bypass-disable-devtool.md
Last active July 2, 2025 15:16
Bypass disable-devtool

(Working as of 2025-02-09)

There are websites that use disable-devtool to prevent you from opening or using devtools. They typically prevent you from right clicking or using the keyboard shortcut to open devtools. Even if you successfully do so, they detect it and redirect you elsewhere. You can bypass this by using one of the following ways.

Opening devtools

If the shortcut F12 on Windows or Option + ⌘ + I on Mac do not work. Press the three vertically aligned dots in the top right corner of your Google Chrome or Microsoft Edge window. Under the section "More Tools", you'll see the option to select "Developer Tools" which opens the toolkit in your window.

@thesamesam
thesamesam / xz-backdoor.md
Last active June 29, 2025 13:01
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@NorkzYT
NorkzYT / README.md
Last active July 8, 2025 02:58
Proxmox CIFS Share Mount Wizard Script

Proxmox LXC ⇆ CIFS Mount Wizard

proxmox-lxc-cifs-share.sh is an interactive helper that mounts a network CIFS/SMB share on a Proxmox VE node and bind-mounts it into one or more unprivileged LXC containers in one pass.
It automates:

  1. Creating a host-side mountpoint under /mnt/lxc_shares/<folder>.
  2. Writing a properly-tuned /etc/fstab entry (systemd.automount, uid/gid mapping, etc.).
  3. Mounting the share immediately.
  4. Injecting the bind-mount (mpX:) into the live LXC configuration with pct set.
  5. Stopping and restarting each container to apply the mount.
@NorkzYT
NorkzYT / gitMirror.sh
Created January 23, 2024 11:17
Git Mirror Script
#!/bin/bash
# This script is designed to add a target remote to your Git repository and then
# force-push all branches and tags to this target. It's particularly useful for
# mirroring or backing up repositories. The script prompts for the target's username,
# personal access token, and repository URL. Be cautious with force-pushing as it
# can overwrite changes in the target repository.
# Bash script to add a remote and force-push all branches and tags
@proffapt
proffapt / gentokenjson.py
Last active March 15, 2025 13:20
Script to generate `token.json` from `credentials.json` file for gmail enabled google api
import sys
from google_auth_oauthlib.flow import InstalledAppFlow
scopes = [f"https://www.googleapis.com/auth/gmail.{sys.argv[1]}"]
flow = InstalledAppFlow.from_client_secrets_file("credentials.json", scopes)
creds = flow.run_local_server(port=0)
with open("token.json", "w") as token:
token.write(creds.to_json())
@grifx
grifx / 0000_hello_world.md
Last active June 18, 2025 16:36
Create your own roadmaps from roadmap.sh with checkboxes on GIST

Hello,

My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.

I hope it can help someone else.

If you want your own roadmap:

  1. Fork or Copy-paste the md files you are interested in your own gist.
@amit08255
amit08255 / nexus_prisma_cheatsheet.md
Last active June 4, 2024 06:19
Nexus + Prisma CheatSheet

Nexus + Prisma CheatSheet

Creating model in Prisma

First create generator and datasource entry in your .prisma file like below:

generator client {
  provider = "prisma-client-js"
}
@tobychui
tobychui / install-go.sh
Created August 5, 2021 05:16
Go installer script for Linux ARM SBC
#/bin/bash
echo "Input the go arch to install (arm/arm64/amd64)"
read -p "Architecture: " arch
if [ "$arch" = "arm" ]; then
echo "Installing arm version of go"
wget https://golang.org/dl/go1.15.3.linux-armv6l.tar.gz
fi
if [ "$arch" = "arm64" ]; then
echo "Installing arm64 version of go"
@mnghn07
mnghn07 / gitCommitEmoji.md
Created August 10, 2020 10:32
Git Commit Message Emoji