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 / 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

@Karobwe
Karobwe / Open-JavaFX.md
Last active June 21, 2019 21:17
Procédure pour compiler des applications utilisant Open JavaFX sous Linux

Installer Open JavaFX

Dans ce petit mémo je détail comment faire lancer une application utilisant Open JavaFX, tout est basé sur le Getting started de la doc officiel.

Il faut s'assurer d'utiliser une version de java et javac supérieure ou égal à la version 11. Si une version antérieurs de Java est déjà installer, il faut soit la désinstaller et la remplacer par une version supporté par Open JavaFX, ce qui aura pour cause de configurer automatiquement les versions de java et javac supportés ; soit installer les deux version de OpenJDK mais configurer le système pour qu'il utilise la version qui convient pour Open JavaFX.

Procédure d'installation/désinstallation de OpenJDK

Pour choisir la version de java et javac à utiliser si il y a plusieurs versions d'installés: