Daily - Nymous dans le nuagehttps://links.alwaysdata.net/Daily shared linksen-enhttps://links.alwaysdata.net/ Nymous dans le nuage - Monday 26 June 2017 https://links.alwaysdata.net/?do=daily&day=20170626 https://links.alwaysdata.net/?do=daily&day=20170626 Mon, 26 Jun 2017 00:00:00 +0200 I decided to disable AMP on my site Mon Jun 26 13:47:53 2017 - google internet frontend rant
https://www.alexkras.com/i-decided-to-disable-amp-on-my-site/


L'AMP c'est une horreur pour tout le monde sauf Google, arrêtez de vous en servir s'il vous plait.
C'est mauvais pour les utilisateurs, mauvais pour la vie privée, mauvais pour les créateurs de contenu, mauvais pour les publicitaires.
Si les devs web faisaient leur boulot, les pages seraient déjà légères, responsive, et rapides à exécuter, sans avoir besoin de charger un JS supplémentaire depuis les serveurs de Google (vie privée : 0), en étant enfermé dans la "galaxie" Google et en ne voyant qu'un web réduit venant directement du cache de Google (oui, s'il y a "Google" un peu trop de fois dans la phrase précédente c'est bien qu'il y a un problème).

(Je reposte le lien moi même, mais ça vient (encore) de Sam&Max https://twitter.com/sam_et_max/status/879295680115871744)


]]>
Nymous dans le nuage - Monday 19 June 2017 https://links.alwaysdata.net/?do=daily&day=20170619 https://links.alwaysdata.net/?do=daily&day=20170619 Mon, 19 Jun 2017 00:00:00 +0200 What if companies interviewed translators the way they interview coders? Mon Jun 19 14:24:36 2017 - dev interview rant
https://medium.freecodecamp.com/welcome-to-the-software-interview-ee673bc5ef6


La triste et trop fréquente réalité...

(Merci à Sam&Max pour avoir tweeté l'article qui m'a mené à celui-là [ici](https://twitter.com/sam_et_max/status/876764603719573504).)


]]>
Nymous dans le nuage - Saturday 18 March 2017 https://links.alwaysdata.net/?do=daily&day=20170318 https://links.alwaysdata.net/?do=daily&day=20170318 Sat, 18 Mar 2017 00:00:00 +0100 localfont.com - Download fonts from googlefonts - Liens en vrac de sebsauvage Sat Mar 18 15:07:55 2017 - google font
http://www.sebsauvage.net/links/?3qLwEQ


Je ne comprends pas pourquoi tout le monde galère à télécharger les Google Fonts, ça prend littéralement 3 clics :

  1. Ajouter la police au "panier" avec le petit +
  2. Cliquer sur la barre noir en bas qui liste tout ce qu'on a sélectionné
  3. Cliquer sur le bouton Download en haut à droite

Pourquoi avoir besoin d'outils extérieurs ?

EDIT : ah, j'avais été battu par https://www.ecirtam.net/opennews/?-zL50A ^^ (vu sur la rivière)


]]>
Nymous dans le nuage - Monday 14 November 2016 https://links.alwaysdata.net/?do=daily&day=20161114 https://links.alwaysdata.net/?do=daily&day=20161114 Mon, 14 Nov 2016 00:00:00 +0100 UEFI boot: how does that actually work, then? Mon Nov 14 00:09:05 2016 - uefi bios
https://www.happyassassin.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/


Lecture très intéressante, ça me fait envisager avec moins de stress les futures installations de Linux (et ne plus activer par réflexe le mode "Legacy" des UEFI)

(via http://www.sebsauvage.net/links/?pPfBQg)


]]>
Nymous dans le nuage - Wednesday 9 November 2016 https://links.alwaysdata.net/?do=daily&day=20161109 https://links.alwaysdata.net/?do=daily&day=20161109 Wed, 09 Nov 2016 00:00:00 +0100 Firefox/Profile on RAM - ArchWiki Wed Nov 9 23:04:31 2016 - firefox
https://wiki.archlinux.org/index.php/Firefox/Profile_on_RAM


Après avoir lu un article sur Spotify qui écrit comme un fou sur le SSD, et m'être souvenu d'un autre article pointant le même problème à propos de Firefox, j'ai regardé rapidement : 300ko/s en continu par Firefox ! Pas étonnant que j'écrive 2.5Go/h en moyenne...

Du coup je teste le profil en RAM, merci le wiki ArchLinux <3

(Copie pour la postérité)

## Place profile in RAM manually
### Before you start

Before potentially compromising Firefox's profile, be sure to make a backup for quick restoration. Replace `xyz.default` as appropriate and use `tar` to make a backup:

```
$ tar zcvfp ~/firefox_profile_backup.tar.gz ~/.mozilla/firefox/xyz.default
```

### The script

*Adapted from verot.net's Speed up Firefox with tmpfs*

The script will first move Firefox's profile to a new static location, make a sub-directory in /dev/shm, softlink to it and later populate it with the contents of the profile. As before, replace the bold sections to suit. The only value that absolutely needs to be altered is, again, `xyz.default`.

Be sure that `rsync` is installed and save the script to `~/bin/firefox-sync`, for example:

```shell
#!/bin/sh

static=main
link=xyz.default
volatile=/dev/shm/firefox-$USER

IFS=
set -efu

cd ~/.mozilla/firefox

if [ ! -r $volatile ]; then
mkdir -m0700 $volatile
fi

if [ "$(readlink $link)" != "$volatile" ]; then
mv $link $static
ln -s $volatile $link
fi

if [ -e $link/.unpacked ]; then
rsync -av --delete --exclude .unpacked ./$link/ ./$static/
else
rsync -av ./$static/ ./$link/
touch $link/.unpacked
fi
```

Close Firefox, make the script executable and test it:

```
$ killall firefox firefox-bin
$ chmod +x ~/bin/firefox-sync
$ ~/bin/firefox-sync
```

Run Firefox again to gauge the results. The second time the script runs, it will then preserve the RAM profile by copying it back to disk.

### Automation

Seeing that forgetting to sync the profile can lead to disastrous results, automating the process seems like a logical course of action.
#### cron job

Manipulate the user's cron table using `crontab`:

```
$ crontab -e
```

Add a line to start the script every 30 minutes,

```
*/30 * * * * ~/bin/firefox-sync
```

or add the following to do so every 2 hours:

```
0 */2 * * * ~/bin/firefox-sync
```

#### Sync at login/logout

Assuming bash is being used, add the script to the login/logout files:

```
$ echo '~/bin/firefox-sync' | tee -a ~/.bash_logout ~/.bash_login >/dev/null
```

Note: You may wish to use `~/.bash_profile` instead of `~/.bash_login` as bash will only read the first of these if both exist and are readable.

Note de moi-même : avec `zsh`, ce sont les fichiers `.zlogin` et `.zlogout`.


]]>
Nymous dans le nuage - Tuesday 8 November 2016 https://links.alwaysdata.net/?do=daily&day=20161108 https://links.alwaysdata.net/?do=daily&day=20161108 Tue, 08 Nov 2016 00:00:00 +0100 Managing multiple Rails versions | relativkreativ Tue Nov 8 19:25:44 2016 - ruby rails dev
https://relativkreativ.at/articles/managing-multiple-rails-versions


Rails avec rbenv, je garde sous le coude...

Créer un dossier, faire `rbenv local <version voulue>` pour créer le fichier .ruby-version.
Installer ensuite bundler avec `gem install bundler`.
Initialiser le Gemfile avec `bundle init`, puis décommenter `# gem "rails"`. Installer rails avec `bundle install`.

Enfin, créer le projet rails dans le dossier courant (`rails new . --force --skip-bundle`). et mettre à jour les dépendances (`bundle update`).


]]>
Nymous dans le nuage - Friday 28 October 2016 https://links.alwaysdata.net/?do=daily&day=20161028 https://links.alwaysdata.net/?do=daily&day=20161028 Fri, 28 Oct 2016 00:00:00 +0200 How to Quickly Preview a File in Ubuntu’s File Manager (Like “Quick Look” in macOS) Fri Oct 28 19:23:47 2016 - linux ubuntu
http://www.howtogeek.com/277987/how-to-quickly-preview-a-file-in-ubuntus-file-manager-like-quick-look-in-macos/


Hoho, je coudifie ça !
Sous Ubuntu, il suffit d'installer `gnome-sushi`.


]]>
Nymous dans le nuage - Friday 9 September 2016 https://links.alwaysdata.net/?do=daily&day=20160909 https://links.alwaysdata.net/?do=daily&day=20160909 Fri, 09 Sep 2016 00:00:00 +0200 Oh, shit, git! Fri Sep 9 19:03:50 2016 - git dev
http://ohshitgit.com/


Hum, je garde sous le coude ça : comment se sortir de situations hasardeuses avec git. Plutôt que de refouiller StackOverflow à chaque fois...

(merci Sam&Max !)


]]>