Archives pour la catégorie WEB

fix firefox

multiple processes

Here’s the fix: To disable e10s/multiprocess go to about:config by typing it in your URL bar. Search for browser.tabs.remote.autostart using the search box on about:config. There may be multiple results. Set them all to false and restart the browser.

 firefox performance
Fx57Menu and choose Preferences. In the General panel, go down to the Performance section and uncheck the box next to Use recommended performance settings. You will then be able to change the following settings:

  • Use hardware acceleration when available: This allows Firefox to use your computer’s graphics processor, if possible, instead of the main processor, to display graphics-heavy web content such as videos or games. This frees up resources on your computer so it can run other applications, like Firefox, faster. This box is checked by default but the feature isn’t available for all graphics processors. You must restart Firefox after changing this setting, before it will take effect.
  • Content process limit: With Multiprocess Firefox, also called electrolysis or e10s , Firefox runs web content for all tabs separately from the main Firefox process for increased security and performance. Using multiple content processes can further increase performance and minimize the impact of content process crashes. You can modify this setting if multiprocess is enabled; however, having too many content processes can slow down your computer, and consequently, Firefox. The recommended maximum is four, but you can set up to seven.

Fx55-56settings-Performance

MEMORY USAGE
https://support.mozilla.org/en-US/kb/firefox-uses-too-much-memory-ram#w_disabling-memory-consuming-extensions-and-themes

Checking Firefox hardware acceleration  (verifier version pilote graphique)

Firefox hardware acceleration eases memory usage in case of a dedicated graphic card memory.

si carte graph dediee, desactiver acceleration graphique et webGL:
about:config
webgl.disable sur true

CPU usage
Corrupt content-prefs.sqlite file

https://support.mozilla.org/en-US/kb/firefox-uses-too-many-cpu-resources-how-fix

Firefox stores your data in various files in your profile folder. The file used for saving individual website settings might be corrupt. If you delete that file, your zoom level settings will be reset, but it should decrease CPU usage.

  1. Click the menu button Fx57menu , click Help and select Troubleshooting Information. The Troubleshooting Information tab will open.
    • Under the Application Basics section, click on Open Directory. Your profile folder will open.
In your profile folder, delete the file content-prefs.sqlite. It will be recreated next time you open Firefox.

Notification web push

Comment désactiver complètement les notifications Web Push ?

Pour désactiver Web Push et interrompre les invites « Activer les notifications » sur toutes les pages web :

  1. Dans la barre d’adresse, saisissez about:config, puis appuyez sur Entrée
    • La page d’avertissement « Attention, danger ! » doit apparaître. Cliquez sur Je prends le risque pour accéder à la page « about:config ».
  2. Recherchez l’option dom.webnotifications.enabled.
  3. Double-cliquez sur le résultat de la recherche pour passer sa valeur de true à false
  4. Recherchez l’option dom.push.enabled.
  5. Double-cliquez sur le résultat de la recherche pour passer sa valeur de true à false

Git Github

Logiciels de gestion de version
Modèle distribué : toutes les machines ont accès à la base de code, pas besoin de passer par un serveur central.
differe du Modèle centralisé : un serveur central contrôle toute la base de code du logiciel : SVN, CV

installation

apt-get install git

Commit gestion des versions

1 creer un dossier du projet
     mkdir gitrepo
2 activer un dossier comme repository Git
se placer dans le dossier
     git init
3 indexation des fichiers
     git checkout SHADuCommit
     git add nomDeVotreFichier.extension
 ou
     git add 
4.enregistrer le repo apres modification

modifier le message
     git commit -m “description des modifs”
     git commit —amend -m “Votre nouveau message”
lister les commits realises
     git log

 

Mettre a jour les fichiers deja indexes dans le repo
     git -a -m “description”
positionner sur un commit donné
     git checkout SHAcommit

 

revenir à votre branche principale (au commit le plus récent)
     git checkout master
syncro repo local vers compte github
« Envoie mes modifs dans la branche master de mon remote origin. »
git push origin master
verifier la methode de connexion git remote -v
switcher de url vers ssh
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
indexation des fichiers (si ajout de nouveaux fichiers dans le repo)
 
 
git add .
 
enregistrer le repo
 
lister les commits
git commit -m "description"
 
git log
syncro du repo local sur github
 
 
 
 
verifier les ref
git push origin master
 
error: src refspec mater does not match any.
 
git show-ref
git push origin HEAD:<remoteBranch>
git push origin HEAD:master