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 / d2_mods.adoc
Last active July 16, 2025 18:48
Best Diablo 2 overhaul mods

The mods listed here are only the most popular and better quality mods that add new content and offer major improvments.

Name Description Links D2 D2+LD D2R Online Offline
@noraj
noraj / README.md
Last active June 30, 2025 12:41
Install Firefox Developer Edition

Install Firefox Developer Edition

This script intend to provide an automatic installation of Mozilla Firefox Developer Edition for x86_64 Linux distros.

Firefox Developer Edition

Firefox Developer Edition is installed to /opt/firefox-dev/.

Note:

  • Default language is en-US, feel free to manually change it in the script.
@noraj
noraj / HOWTO.md
Created April 23, 2022 19:52
How to create SHA-512 password hashes for shadow on command line

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 / gulp-cjs-to-esm.md
Last active April 10, 2025 19:21
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

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 / BA-tips.md
Last active February 22, 2025 19:03
BlackArch dev tips
@noraj
noraj / 01_lisezmoi.md
Created June 17, 2024 18:47
Blocage des appels de démarchage commercial téléphonique en France

Blocage par RegExp

Depuis le 1er Septembre 2022, un [plan de numérotation][plan-num] a été établit par l'[ARCEP][arcep] afin de définir les usages des numéros de téléphone en France. Une de ses conséquences est qu'il existe maintenant [une plage définie pour les numéros de démarchage commercial][nextimpact].

Certaines application Android comme [SpamBlocker][SpamBlocker], permettent de bloquer des numéros de téléphone entrants à partir d'une expression régulière (RegExp). Il est donc possible de bloquer systématiquement les numéros des démarcheurs à l'aide de RegExp.

Démarcheurs France Métropolitaine

  • Neutre : (\+33|0)(162|163|270|271|377|378|424|425|568|569|948|949).+
  • [SpamBlocker][SpamBlocker] : (33)?(162|163|270|271|377|378|424|425|568|569|948|949).+
@noraj
noraj / 00_vidéos.md
Last active November 15, 2023 23:01
Accompagnement de la vidéo "Astuces - Alias fzf & wordlists"
@noraj
noraj / 01-mini-netstat.rb
Last active March 2, 2023 22:29
netstat -ta4 or ss -ta4 equivalent in Ruby and Crystal
require 'etc'
TCP_STATES = { # /usr/src/linux/include/net/tcp_states.h
'00': 'UNKNOWN',
'FF': 'UNKNOWN',
'01': 'ESTABLISHED',
'02': 'SYN_SENT',
'03': 'SYN_RECV',
'04': 'FIN_WAIT1',
'05': 'FIN_WAIT2',
@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/)
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}