389 private links
Créer un site mirroir bidon, sur lequel lui on peut publier les articles publicitaires. Pas mal.
Les véritables visiteurs seraient au courant du contenu et pourrait se rediriger vers le site original.
Un outil permettant de se configurer un profil Firefox selon ses besoins et envies 👍
browser.compactmode.show → true
browser.uidensity → 1
(via https://sebsauvage.net/links/?t40Qsg)
Thanks for that :)
Installer pv, puis passer de
zcat data-export.gz | mysql -u measuser -p -h db_host -P 3306 mydatabase
à
pv -pret --name ' Importing.. ' data-export.gz | zcat | mysql -u measuser -p -h db_host -P 3306 mydatabase
More git tips and tricks.
Aliases are underused
mkdir -p instead of mkdir
ln -sfn source target instead of ln -s source target
rm -f example.txt instead of rm example.txt
Modifying a file
if ! grep -qF "/mnt/dev" /etc/fstab; then
  echo "/dev/sda1 /mnt/dev ext4 defaults 0 0" | sudo tee -a /etc/fstab
fi
Check if variable, file or dir exists
formatting a device
mounting a device
Ne jamais parler en garde à vue, car on risque de dire de la merde, même si on est innocent.
Voici pourquoi dans cet article.
A new $HOME folder structure to improve the workflow:
| name | structure | created by | status | 
|---|---|---|---|
| tmp | (chaotic) | everyone | temporary | 
| work | project-name/ | 
me | active | 
| permanent | project-name/ | 
me | permanent | 
| archive | year/type/project-name/ | 
me | done or inactive | 
| library | type/(subtype/) | 
others | reference | 
edit 2022-05-19: the more I think about it, the more I find it to be a good idea.
On google or DuckDuckGo syntax:
- "Exact match" → for an exact string
 - SITE:url → search in a specified site
 - AFTER:1999 or BEFORE:2020 → before or after a specified date
 - 2020..2020 → search in a range
 - (A | B) → search results A or B
 - 
- → search for all results
 
 - FILETYPE:PDF → search for a specified filetype
 - RELATED:url → search related result of this URL
9: CACHE:url → see the website that the search engine has in cache 
In the configuration: "workbench.tree.indent": 20 (20 as an example of indent space amount).
Utiliser les issues de ces deux plateformes pour avoir des cheatsheets :)
Replace the .com in the project with .dev to open a VS code editor online.
Or the shortcut . (dot) to go straight to this editor !
In this editor you can obviously consult all the sources of the project, but also modify them and push your changes to the github directly.
Donner l'adresse du site en
hxxps://ludovic-bois.com/index.php
afin d'éviter que les gens cliquent sur ce lien rapidement et qu'il soit référencé dans les moteurs de recherche. 
Comment pister l'origine d'une requête dans une BDD
A way to render conditionally the attributes of a tag.
Creating an object and setting the attributes as prop of the object if they should be rendered. Then use the spread operator on it:
<script>
    export let value = "";
    export let id = "";
    export let placeholder = "";
    export let type = "text";
  let conditionalAttributes = {};
  if (id) conditionalAttributes.id = id;
  if (placeholder) conditionalAttributes.placeholder = placeholder;
  if (type) conditionalAttributes.type = type;
</script>
<input {...conditionalAttributes} bind:value={value} />