User Tools

Site Tools


perso:dump:mess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
perso:dump:mess [2012/06/12 09:35]
Jean-Christophe Berthon Formatting
perso:dump:mess [2017/03/19 23:13] (current)
Jean-Christophe Berthon Add section regarding adding trusted Certificate Authority to Synology DSM
Line 95: Line 95:
  
 <​code>​gsettings set com.canonical.Unity.Panel systray-whitelist "​['​JavaEmbeddedFrame',​ '​Wine',​ '​Update-notifier',​ '​cryptkeeper'​]"</​code>​ <​code>​gsettings set com.canonical.Unity.Panel systray-whitelist "​['​JavaEmbeddedFrame',​ '​Wine',​ '​Update-notifier',​ '​cryptkeeper'​]"</​code>​
 +
 +==== Mirroring a folder over a network (rsync/SSH) =====
 +
 +This assume that ssh is correctly set-up and that the destination folder exist.
 +
 +<​code>​rsync -acAHX --progress --del /​var/​backup/​ myNAS.lan:/​var/​backup/​$(hostname)</​code>​
 +
 +//Note: the --del option will remove the locally deleted files on the remote end. In my case, this is a must. But in most cases you should remove that option!//
  
 ==== Font / Police ==== ==== Font / Police ====
Line 113: Line 121:
   * http://​www.informationarchitects.jp/​the-web-is-all-about-typography-period   * http://​www.informationarchitects.jp/​the-web-is-all-about-typography-period
   * http://​www.baekdal.com/​articles/​Usability/​new-minimum-font-size   * http://​www.baekdal.com/​articles/​Usability/​new-minimum-font-size
- 
-==== Screen resolution of my computers ==== 
-  * L0514: 285x215mm => 91,​3x90,​78dpi or **~91dpi** 
-  * Thorsmork (Siemens LCD): 377x303mm => 86,​25x85,​83dpi or **~86dpi** 
  
 ==== Allowing secure download via HTTPS with wget on Ubuntu Server Edition ==== ==== Allowing secure download via HTTPS with wget on Ubuntu Server Edition ====
Line 140: Line 144:
 exclude=*kmdl*i586* exclude=*kmdl*i586*
 includepkgs=*nvidia-graphics*</​code>​ includepkgs=*nvidia-graphics*</​code>​
 +
 +==== Add a new Certificate Authority in the list of trusted ones on Synology DSM 6.1 ====
 +
 +In order to add a new root certificate (e.g. for an internal CA), you need to do the following assuming your root public certificate is in the file ''​my-ca-root.pem''​. The file suffixes ''​.pem''​ or ''​.crt''​ are interchangeable,​ but in our case make sure to use the right suffix depending on the location as per our example:
 +
 +<​code>​$ sudo cp my-ca-root.pem /​usr/​share/​ca-certificates/​mozilla/​my-ca-root-pem
 +$ sudo chmod 0644 /​usr/​share/​ca-certificates/​mozilla/​my-ca-root.prm
 +$ sudo ln -s /​usr/​share/​ca-certificates/​mozilla/​my-ca-root-pem /​etc/​ssl/​certs/​my-ca-root.crt
 +$ cd /​etc/​ssl/​certs
 +$ sudo ln -s my-ca-root.crt $(sudo openssl x509 -hash -noout -in my-ca-root.crt).0
 +$ sudo cat my-ca-root.crt | sudo tee -a ca-certificates.crt</​code>​
 +
 +Source: https://​forum.synology.com/​enu/​viewtopic.php?​t=93223
 +
 +However the source was adapted, but it works on DSM 6.1.
  
 ==== Firefox settings optimisation (faster start-up) ==== ==== Firefox settings optimisation (faster start-up) ====
 Since Firefox 3, many settings (bookmarks, history, etc.) are store into small database files (the ones with the sqlite extension). But after a long utilisation of Firefox, these files get big (and thus slowdown their reading) and their inner data gets sort of fragmented. Now, there is a rather not too difficult way of optimising those files. All you need is sqlite3 program and a small script to do the job. Since Firefox 3, many settings (bookmarks, history, etc.) are store into small database files (the ones with the sqlite extension). But after a long utilisation of Firefox, these files get big (and thus slowdown their reading) and their inner data gets sort of fragmented. Now, there is a rather not too difficult way of optimising those files. All you need is sqlite3 program and a small script to do the job.
 +
 +//**Update 2016-09**: I would have to verify to be sure, but I think Firefox must be doing those sqlite databse maintenance from time to time (or sqlite is automatically doing now) because since a few years now this trick does not bring any visible changes.//
  
  
Line 302: Line 323:
   * Information on [[http://​kb.mozillazine.org/​Profile_folder_-_Firefox|Firefox profiles on Windows, Linux/UNIX and Mac OS]];   * Information on [[http://​kb.mozillazine.org/​Profile_folder_-_Firefox|Firefox profiles on Windows, Linux/UNIX and Mac OS]];
   * Sample code in Python for the same optimisation for [[http://​code.activestate.com/​recipes/​576843/​|Linux]] or for [[http://​code.activestate.com/​recipes/​576842/​|Windows]].   * Sample code in Python for the same optimisation for [[http://​code.activestate.com/​recipes/​576843/​|Linux]] or for [[http://​code.activestate.com/​recipes/​576842/​|Windows]].
 +
 +===== Pointers in C =====
 +
 +{{media:​pointer_allocation_in_subfunction.png|Pointer Allocation in Subfunction}}
perso/dump/mess.1339486517.txt.gz · Last modified: 2015/05/01 23:32 (external edit)