I had a pretty interesting tease tease – I had to create a huge number of randomly generated passwords as I was required to be of a certain length to contain large lowercase letters and numbers, normal things. Sounds easy, doesn't it?. I used /dev/urandom for the main generation and then with a short pipeline I filtered to the desired number of characters and types of characters to be used. As long as I'm screwed into the main script is the pipeline :
So let's take a closer look at what's going on here. We take the output of cat / dev / urandom. Then we filter it to show only small ones, capital letters and numbers. Then with fold we limit the length of the strings to the desired number. Finally, we limit the display only 1 row of the entire output. Basically easy as 1-2-3. If you want to increase the complexity of the password and with special characters in the regular expression of tr can be used :graph: or :print: instead :scooping:, which include all characters without or with space.
My Debian people are still dirty with addictions. Ie they did not stain them but lost the ia32-libs package which is in the dependencies of skype. I will not comment on why they are in dependencies given that it is x64 version 😉 So in the end there are several applications that are directly deleted due to the removal of this package. For better or worse, I can't do without them, that the package needs to be restored. The easiest option is to add a testing repository and give priority to it in general is this in is so much again this 😀 The steps below look at the system when we have already updated it and ia32-libs is no more.
1. Добавяме testing хранилище или wheezy- това е кодовото име на следващия stable Debian. В /etc/apt/source.list добавете ред който изглежда по подобен начин
deb http://debian.ludost.net/debian/ wheezy main contrib non-free
2. Даваме приоритет на testing пакетите над тези на unstable хранилищата тъй като към момента пакета все още го има там. Създаваме файлът /etc/apt/preferences.d/apt (това си е лично мой избор) може да е в /etc/apt/preferences вместо /etc/apt/preferences.d/ и му добавяме следното съдържание
In general, this is a procedure for forcibly downloading versions of packages, but I have used it only for those for which I need you can later give priority to ia32-libs ia32-libs-gtk lib32v4l-0 to be downloaded only from the testing feeder.
Yesterday I had to boot a Windowds virtual machine NTFS my share. To my great surprise, the machine started dragging an awful lot when virtualbox started creating its virtual HDD. WFT ??? Immediately a quick top and the problem shone. ntfs-3g was crashed on 100% cpu usage 3 of my 6 cores. Hmmm foreign. After a contemplation in the following line, the problem shone through
Obviously / dev / sda4 is mounted with default options only. In general, the ntfs driver has dirt with intensive writing and reading on the partition if it is not provided with some miraculous settings.
big_writes – the most important option to drop the load intensity of your system using large block recording.
noatime – speeds up the system by disabling inode updates access time if we don't need it. Personally, I don't need it at all
windows_names – there is no acceleration here but on the other hand the file names are treated according to the MS conventions in which the file names, regardless of whether they are uppercase and lowercase, are the same.
After I fixed the options with which my partition is installed fstab the record looked like this
I had noticed for some time that it had stopped working for me gnome shell weather extension-and we. In general, he muttered that it was not an up-to-date version of my version of Gnome Shell. Strange because I updated it by updating my gnome shell version. Then I dropped it, because it's not a pain to die and I still have time to delve into such small mistakes. But today I decided it was high time I stopped doing this and fixed my miracles. I updated the git tree to the latest version, I installed a new one – no change. WTF. Then I hit him with a make uninstall and something shocking came up, the add-on was still disabled as not updated, and I had uninstalled it. In general, at this point I assumed that it is installed in some other folder for extensions and therefore makes a cut. From now on, things unfold in the following scenarios. Find the name of the add-on, find the add-on and remove. Getting the names of the installed add-ons in the gnome shell is done with the following command
gsettings get org.gnome.shell enabled-extensions
From whose outcome I understood, that I have activated an add-on named [email protected] Fun. The nice thing in this case is the name of the add-on folder and you can easily locate the location with the command
Here things have become easy. From the output of the find I understood, that it has in 2 papaki. A quick rm -rf of the 2 folders and everything fell into place. A quick installation of the add-on and restart of the gnome shell.
It came out a few days ago XAMPP 1.8.0 yesterday after upgrading from version 1.7.7 I had a pretty interesting problem. Phpmyadmin-а не ми се отваряше и изгърмяваше със 403
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
Веднага отворих httpd-xampp.conf който при мен се намира в /opt/lampp/etc/extra/, на пръв поглед всичко изглеждаше наред. The LAN rules were fine. Apart from opening from localhost. WTF ??? I looked at the log and saw that my access was cut off from the configuration. Тука вече нещата ме ахнаха и честно казано донякъде малко на късмет открих проблема. След като преглеждах httpd.conf-а видях в Allow/Deny клаузите един последен редRequire all granted. О да еврика. This is the new control mechanism that has entered apache 2.4.x. It gives access or denies access to all required, it generally mimics the Allow / Deny functionality :). To fix the problem add Require all granted in the / opt / lampp / phpmyadmin folder directives. After the changes, it looks like this to me
<Directory “/opt / lampp / phpmyadmin”>
AllowOverride AuthConfig Limit
Allow from all Require all granted
Viangi can try other savages, for example to rename the phpmyadmin folder to something else and make an alias to no. But it's uglier and not very meaningful 🙂
p.s I was asked why I use XAMPP and not a clean installation of all components as my Debian gave birth to them – the answer is very very simple – LAZINESS. I'm too lazy to write a few commands and then touch my conf and so on. It is much easier to download the whole package, unzip and burn 😉