邮件客户端

Идеятаеидентичнакактовпостами VACUUM Firefox databases and REINDEX. for some time mozilla debian dumped ребрадинраните versions of products. in migration of icedowe to thunderbird thinking, i haven't дефрагментирал base, so far, through email client leaked serious amount of letters, email accounts and servers, users and passwords. The script is identical to the one from my previous post with only slight modification for where to look for the files 🙂

Linux version

for db in $(find ~/.thunderbird/$(grep Path ~/.thunderbird/profiles.ini | cut -d'=' -f2) -maxdepth 1 -name "*.sqlite" -type f)
do
echo "VACUUM ${db}"
sqlite3 ${db} VACUUM
sqlite3 ${db} REINDEX
done

Mac os version

for db in $(find ~/Library/Thunderbird/$(grep Path ~/Library/Thunderbird/profiles.ini | cut -d'=' -f2)  -maxdepth 1  -name "*.sqlite" -type f)
do
echo "VACUUM && REINDEX ${db}"
sqlite3 "${db}" VACUUM;
sqlite3 "${db}" REINDEX;
done

Unlike the Firefox profile folder of the Thunderbird is a much more correct way (without space) and it is not necessary to change the delimiter.

Ever since google started to like https sites, having more mass installation of SSL-and where you can. Overall, in addition to more harassment for servers we have and degradation in speed. The good thing is, that HTTP2 the standard for more than a year and a half is integrated in all major browsers and servers and http support sufficiently stable. Unfortunately there is no stable debian packages to keep in the main http servers HTTP2. The versions that are necessary for us to operate HTTP2 are as follows:

Mešanicata to me is great and according to be used depends on apache or nginx. I'm still not playing to let loose on the http2 apache debian 8 Since I've never had but have it so repoto backports, It won't be a big problem. For nginx has already played several times. Overall, the steps are few and relatively simple:

  1. Add nginx official repo – in debian is 1.6 x vesiâta. 🙄
  2. Install openssl yourself from backports is currently 1.0.2 (k) – What we need for alpn maintenance for all works and is fast
  3. you install the devscripts – This is the time to share that will bildnem our package because the official is compiled with openssl 1.0.1 t which does not work ALPN and not the browsers respond well and works only if http2-revving it
  4. inkrementirame the version to do not hold packages such as ciganiâta and there's a new version only to sinkenm sorsovete

Let's start step by step

Add nginx repo

deb http://nginx.org/packages/debian/ codename nginx
deb-src http://nginx.org/packages/debian/ codename nginx

Add a k dev openssl library 1.0.2 and otherwise bildnem it again with 1.0.1 I t is the target


echo 'deb http://ftp.debian.org/debian jessie-backports main' | tee /etc/apt/sources.list.d/backports.list

apt update && apt install libssl-dev -t jessie-backports

 

Now stuck to his add libraries needed for compilation of nginx


apt install devscripts

apt build-dep nginx

mkdir nginx-build

cd nginx-build

apt-get source nginx

If you are working correctly you should have a structure like


~/nginx-build # ll
total 1004
drwxr-xr-x 10 root root   4096 Feb 21 18:37 nginx-1.10.3
-rw-r--r--  1 root root 103508 Jan 31 17:59 nginx_1.10.3-1~jessie.debian.tar.xz
-rw-r--r--  1 root root   1495 Jan 31 17:59 nginx_1.10.3-1~jessie.dsc
-rw-r--r--  1 root root 911509 Jan 31 17:59 nginx_1.10.3.orig.tar.gz

Enter PPTA in which users code nginx in my case, this nginx-1.10.3 run the command with which incrementare version, I personally prefer to add 1 to this build

debchange --newversion 1.10.3-1

After you add a changelog and can proceed to the actual compilation

debuild -us -uc -i -I -b -j6

A little clarification on the configuration of the command:

-us -uc they say the script not to “signed” .dsc and changes files.. -i and -I make the script to ignore files for version control. -B to generate a binary only package. -j as with make how many parallel process to recompile 🙂

 

Once you've completed the above process should we install our new packages. If you have already installed nginx is better to uninstall it

apt remove nginx nginx-*

Also not a bad idea to make a backup of the nginx folder under /etc. In principle, when updating 1.6.5 to 1.10.3 I didn't have drama, but you never know. New Partei are in the higher-level directory, and must be installed with a command like:

dpkg -i ../*.deb

If everything went smoothly, you just have to launch the nginx process, and to set http2 that is not the purpose of this article.

The collapse is not a word,
the collapse was premlata,
in fear, something you lose,
in fear, that has nothing.
Decay not in time,
what to leave you,
in that goodbye you make,
the breakup is, …

A cunning trick to improve the speed of your browser like firefox's sqlite data base vakumirate. VACUUM process rebuilds the database thus it defragment, decreased size and it makes searching faster, disk usage more efficient and possibly decreased load on your disk as read in the sequence of my sectors. In general this applies to each database that does not perform automatic vacuum/defrag to yourself.

The mere process of defragmenting the database of Firefox is pretty trivial – We perform sqlite3 db-file VACUUM in the profile directory of firefox. In the linux path is usually ~/.mozilla/firefox/random-name.default. In General, you should have only 1 dirketoriâ in mozilla/firefox. If you have more you can check ~/.mozilla/firefox/profiles.ini for the correct directory is your browser's profile. Since I'm not engaged to perform the process manually raspish basic script which Defragmenter database:

for db in $(find ~/.mozilla/firefox/$(grep Path ~/.mozilla/firefox/profiles.ini | cut -d'=' -f2) -maxdepth 1 -name "*.sqlite" -type f)
do
   echo "VACUUM ${db}"
   sqlite3 ${db} VACUUM
   sqlite3 ${db} REINDEX
done

After the script runs the search in history-it is self-charging lisik is sensitive faster. The script I think with small modifications you can use in Mac OS.

p.Here's the version for Mac OS X – tested on Mac OS X Sierra. To forename delimiter to be new order, because of the space in the path to the folder which contains the firefox profile

OIFS="$IFS"
IFS=$'\n'
for db in $(find ~/Library/Application\ Support/Firefox/$(grep Path ~/Library/Application\ Support/Firefox/profiles.ini | cut -d'=' -f2)  -maxdepth 1  -name "*.sqlite" -type f)
do
echo "VACUUM && REINDEX ${db}"
sqlite3 "${db}" VACUUM;
sqlite3 "${db}" REINDEX;
done

A few days ago turned 25 years of Linux. Always when I read Letter from Linus in such a highly entertaining mood. I have no intention of explaining how important Linux and what role they play in our lives. More recently I started thinking what role they played in my life. Then came a host of questions

  • If there were no linux would be BSD or God forbid Windows admin ?
  • If I was going to be an admin at all
  • What was I going to work if I wasn't Admin – Programmer (good….)
  • What OS I would use
  • What technique do I use – phone computer – sure I would have another apple fan boy