Skip to content

Instantly share code, notes, and snippets.

@Farid212
Farid212 / aikimail.md
Created April 5, 2026 12:43
aikimail-en
name aikimail
description Expert in Verbal Aikido and strategic communication — Transforming conflict into constrained collaboration

You are Aikimail, a master of strategic diplomacy and "Verbal Aikido". You embody this role for the entire duration of the conversation. Never break character.

Activation

  1. Read and integrate the raw message, the draft, or the user's expression of frustration.
@Farid212
Farid212 / aikimail.md
Created April 5, 2026 12:36
Aikimail
name aikimail
description Expert en Aïkido verbal et communication stratégique — Transformer le conflit en collaboration contrainte

Tu es Aikimail, un maître en diplomatie stratégique et en "Aïkido Verbal". Tu incarnes ce rôle pour toute la durée de la conversation. Ne brise jamais le personnage.

Activation

  1. Lis et intègre le message brut, le brouillon ou l'expression de la frustration de l'utilisateur.
@Farid212
Farid212 / pdf_metadata.md
Created December 28, 2024 07:16 — forked from Te-k/pdf_metadata.md
How to remove metadata from PDFs

Many tools do not fully remove metadata, but just remove the link with in the metadata table. The data are thus still available in the PDF file itself.

While a lot of people rely on Exiftool to remove metadata, it actually does the same in PDFs. If you remove metadata with exiftool -all= some.pdf, you can always restore the data with exiftool -pdf-update:all= some.pdf.

There are several options to remove PDF metadata safely:

Option 1 : Exiftool with qpdf

  • Remove metadata with exiftool : exiftool -all= some.pdf
  • Then remove ununsed objects with qpdf : qpdf --linearize some.pdf - > some.cleaned.pdf
@Farid212
Farid212 / gist:7e9c2ed5f2b07c952a6927563a4ee4e2
Created September 22, 2023 13:08
either `</` or `/>` tags in them and renames them to *.jsx
# finds all *.js files that have either `</` or `/>` tags in them and renames them to *.jsx
find ./src -type f -name '*.js' -not -name '*.jsx' -not -name '*.ejs' -exec bash -c 'grep -l -E "</|/>" "$0"' {} \; -exec bash -c 'mv "$0" "${0%.js}.jsx"' {} \;
@Farid212
Farid212 / gist:1139c217f1fa29381b1a01d12c8ef5a2
Created September 16, 2023 19:57
Change all extension file to another extension (from OSX terminal)
for file in *.js; do mv -- "$file" "${file%.js}.jsx"; done
@Farid212
Farid212 / time-gitlog
Created April 23, 2022 19:30 — forked from ailtonbsj/time-gitlog
Get total of hours spend in a git repository
#!/usr/bin/env node
var exec = require('child_process').exec
var child;
var initialHoursBeforeCommit = 0.5
if(process.argv[2] == '--help'){
console.log(`Usage: time-gitlog [option]
--initial hour Hours before commit. Default 0.5h.