Skip to content

Instantly share code, notes, and snippets.

View noraj's full-sized avatar
💎
FLOSSing

Alexandre ZANNI noraj

💎
FLOSSing
View GitHub Profile
@noraj
noraj / 00_vidéos.md
Last active November 15, 2023 23:01
Accompagnement de la vidéo "Astuces - Alias fzf & wordlists"
@noraj
noraj / mindmap.md
Last active February 21, 2023 09:45
MindMap in Markdown
@noraj
noraj / query.graphql
Created November 23, 2022 10:06
GraphQL Voyaer Introspection Query (for https://ivangoncharov.github.io/graphql-voyager/)
View query.graphql
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
@noraj
noraj / mobile.md
Last active August 1, 2022 19:40
Couverture / Qualité du réseau mobile en France
View mobile.md

Arcep

L'Autorité de régulation des communications électroniques, des postes et de la distribution de la presse (Arcep) est une autorité administrative indépendante française chargée de réguler les communications électroniques et postales et la distribution de la presse.

Ref. Wikipedia

L'Arcep tient à jour une carte sur la couverture et la qualité des différents réseaux mobile en France, soit pour les réseaux de Bouygues, Free, Orange et SFR. La carte de couverture permet de voir l'emplacement des antennes (opérateur, technologies, fréquences). La carte de qualité permet d'accéder aux débits et aux tests "Navigation Web - Chargement d’une page en moins de 10s".

Avantages :

@noraj
noraj / gulp-cjs-to-esm.md
Last active February 21, 2024 17:07
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)
View gulp-cjs-to-esm.md

Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Context

del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.

The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.

Guide

@noraj
noraj / adb.md
Created July 12, 2022 18:07
Inject Android key events from ADB
View adb.md
@noraj
noraj / patch.md
Created July 9, 2022 14:17
Patch the Protestware behavior in sweetalert2
View patch.md
@noraj
noraj / HOWTO.md
Created April 23, 2022 19:52
How to create SHA-512 password hashes for shadow on command line
View HOWTO.md

All examples will be using SHA-512, <password> as password placeholder and <salt> as salt placeholder.

mkpasswd

Note: mkpasswd binary is installed via the package whois on Debian / Ubuntu only. On other Linux distribution such as ArchLinux, Fedora, CentOS, openSUSE, etc. mkpasswd is provided by the expect package but is an totally different utility which is available as expect_mkpasswd on Debian / Ubuntu. whois of all other Linux distro doesn't include mkpasswd but the source (C lang) can be found on the original repository https://github.com/rfc1036/whois.

# With a random password and random salt
mkpasswd -m sha-512
# With a random random salt
@noraj
noraj / fr-tlds.rb
Created April 20, 2022 22:44
Liste des TLDs pour la France et ses DROM-COM (départements et régions d'outre-mer et collectivités d'outre-mer)
View fr-tlds.rb
=begin
Liste des TLDs pour la France et ses DROM-COM (départements et régions
d'outre-mer et collectivités d'outre-mer)
=end
require 'docopt'
TLDs = {
'bl' => 'Saint-Barthélemy',
'fr' => 'France',
'gf' => 'Guyane française',