Skip to content

Instantly share code, notes, and snippets.

@ph33nx
ph33nx / WinMasterBlocker.bat
Last active January 1, 2025 20:39
Block All Adobe .exe files via Firewall on Windows Using Batch Script | Stop adobe apps to access internet
:: ################################################################
:: ## 🔥 WinMasterBlocker 🔥 #
:: ################################################################
:: # Author: https://github.com/ph33nx #
:: # Repo: https://github.com/ph33nx/WinMasterBlocker #
:: # #
:: # This script blocks inbound/outbound network access #
:: # for major apps like Adobe, Autodesk, Corel, Maxon, #
:: # and more using Windows Firewall. #
:: # #
@FuzzysTodd
FuzzysTodd / 0x...@openzeppelin...contracts-upgradeable...access...OwnableUpgradeable.sol
Created January 1, 2025 20:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=true&runs=5000000&gist=
/*
██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██████ ███████ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ █████ ██████ ██ ██ ██ ██ █████ ██ ██ █████ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████ ███████ ████
Find any smart contract, and build your project faster: https://www.cookbook.dev
Twitter: https://twitter.com/cookbook_dev
@Siss3l
Siss3l / thm24.md
Last active January 1, 2025 20:33
TryHackMe Advent of Cyber 2024 SideQuests

TryHackMe - Advent of Cyber 2024 Side Quests

In addition to the Advent of Cyber 2024 room, we have an annex Side Quest task.

Side

Description

Five tasks need to be completed to finish the side quests.
The keycards to the machines will be scattered around the main Advent of Cyber 2024 room, hidden in some of the core event challenges.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@aminalhazwani
aminalhazwani / send-books-from-calibre-to-kindle.md
Last active January 1, 2025 20:31
Send books from Calibre.app to Kindle Paperwhite and Kindle apps

Send books from Calibre.app to Kindle Paperwhite and Kindle apps

Create GMX email account

  1. Create an email account on www.gmx.com
  2. Open "Settings" and check "Enable access to this account via POP3 and IMAP"

Add GMX email to Calibre.app Preferences

  1. Open "Preferences"
@ehsan18t
ehsan18t / processor-boost-mode.md
Last active January 1, 2025 20:30
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

The thing is if your laptop cpu is getting really hot and you are trying to undervolt it then chances are 99% that there are no method to do so. I have also tried to do undervolt my Ryzen 7 5800H but no luck. Because the bios doesn't allow that much control over the cpu. I don't know the specific reasons for the manufactures to restrict such a great thing. But with this you can disable the Turbo Boost. While this might sounds stupid but trust me you won't see a massive difference in performance after turned it off.

When You should Do It?

_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@TheRayTracer
TheRayTracer / bitcoin_bip_0039.py
Created April 7, 2018 21:22
Custom implementation of BIP 39.
import sys
import binascii
import hashlib
import random
import hmac
import pbkdf2
PBKDF2_ROUNDS = 2048
# Custom implementation of BIP 39: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
@fnky
fnky / ANSI.md
Last active January 1, 2025 20:25
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@ongrid
ongrid / bip44_generator.py
Last active January 1, 2025 20:23
BIP-44 mnemonic generator
# This snippet generates BIP-39 mnemonic (seed phrase)
# then derives 10 Ethereum private keys from it (with their addresses)
# The same algorithm and paths are used in Metamask, Trust Wallet, Ganache, hardhat
# and other popular wallets and tools.
from bip44 import Wallet
from bip44.utils import get_eth_addr
from mnemonic import Mnemonic
mnemo = Mnemonic("english")
words = mnemo.generate()