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 / 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);
@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 / 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 / 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 / sassas.md
Created December 9, 2021 21:11 — forked from AdamMarsden/sassas.md
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@Karobwe
Karobwe / 00 - how-to-use-twig-embed-tag.md
Last active March 20, 2024 10:23
Showcase on how to use Twig's embed tag (supposing a Symfony app with Tailwind)

While working on a complex HTML structure, to facilitate readability of my Twig template, I divided my file onto many partial templates. In most case it's working well, but sometimes you need to use Twig blocks defined in partial templates across many files. But include will not let you overriding blocks defined in partial template, when extanding the main template.

To solve this, Twig provide the embed tag, but it took me some times to figure out how to use it. So here a little reminder, with the usecase on embed's doc.

preview vertical layout

Like many git user, I understood the interest of commit signature verification and tried to use it. The (documentation)[https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification] explain well how to do it. But it's seem like some people can use them right away after following the doc's explanation, while while others might have struggles at some point.

This was my case, and this is why I didn't use this fonctionality whereas I know it's here since years. And I tried to configure my PC more than one time, but I always got this error, and couldn't move forward:

error: gpg failed to sign the data
fatal: failed to write commit object

I saw so many partial response here and there but nothing worked for me.

@Karobwe
Karobwe / save-svg-from-website-to-local.md
Last active May 13, 2021 21:23
Save SVG from a web page
@Karobwe
Karobwe / gist:bbe9ec5093b78f3c2622c4bce0185442
Created December 3, 2020 17:37 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@Karobwe
Karobwe / reminder.md
Created October 26, 2019 08:00
Useful command line reminder

ffmpeg

-Decrease file size

ffmpeg -i -b