Skip to content

Instantly share code, notes, and snippets.

View Karobwe's full-sized avatar
👨‍🎓
Learn coding

Chanfi Attoumani Karobwe

👨‍🎓
Learn coding
View GitHub Profile
@Karobwe
Karobwe / postal-codes.json
Created March 2, 2022 18:41 — forked from jamesbar2/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
@Karobwe
Karobwe / powershell-stuff-for-dummies.md
Last active September 10, 2023 06:30
Useful commands/tips for Powershell

Useful commands/tips for Powershell

Winget

winget search key-word

# Search can be used to find the ID
winget install <Package ID>
@Karobwe
Karobwe / custom-scrollbar.css
Created October 28, 2023 19:15
[CSS Snippets] Useful CSS snippets #CSS
::-webkit-scrollbar {
height: 2.2em;
width: .6em;
}
::-webkit-scrollbar-track {
background: hsl(218, 22%, 14%);
}
::-webkit-scrollbar-thumb {
@Karobwe
Karobwe / Re-enable-Right-Click-Option-on-Web-Page.js
Created December 18, 2025 10:49 — forked from vandanojan/Re-enable-Right-Click-Option-on-Web-Page.js
To re-enable the right click (context) menu, it is enough to copy the code, type "javascript:" in the address bar of your browser and then paste the copied code, i.e., javascript:[CODE]
function enableContextMenu(aggressive = true) {
void (document.ondragstart = null);
void (document.onselectstart = null);
void (document.onclick = null);
void (document.onmousedown = null);
void (document.onmouseup = null);
void (document.body.oncontextmenu = null);
enableRightClickLight(document);
if (aggressive) {
enableRightClick(document);