shell script for some quick tests on Linux
Head over to the link and grab the script. Just run it and make yourself a little bit more safe 🙂
Head over to the link and grab the script. Just run it and make yourself a little bit more safe 🙂
CCZE is a robust and modular log colorizer with plugins for apm, exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, and more.
For installation
sudo yum install ccze
and to use it:
tail -f -n 50 /var/log/firewalld | ccze #or better yet cat /var/log/firewalld | ccze|more
I have some backup’s of website on my laptop, which I occasionally want to view. Now, I could have setup apache to serve them directly with VirtualHost or alias but wanted a better solution. So, docker comes to rescue.
First, I installed fedora-dockerfiles and then made some modifications, here they are :
sudo yum install fedora-dockerfiles
After this is done, go to /usr/share/fedora-dockerfiles/apache and make some modification to Dockerfile. After the modifications, the file looks like this
Continue readinghttp://xmodulo.com/free-control-panel-for-vps.html
Â
Enjoy the discussion and information if you are looking for free control panel for VPS or some other host.
To get all the depencies of a package, you can try:
repoquery -a --requires --resolve Example output: glibc-0:2.20-5.fc21.i686 bash-0:4.3.30-2.fc21.x86_64 chkconfig-0:1.3.63-1.fc21.x86_64 glibc-0:2.20-5.fc21.x86_64 openssl-libs-1:1.0.1j-1.fc21.x86_64
and then to query in nice tree format, you can use :
repoquery -a --tree-requires PACKAGE_NAME
And finally use that with repotrack:
repotrack -a x86_64 -p . $(repoquery --qf=%{name} -g --list --grouppkgs=all 'Office Suite and Productivity' |tr '\n' ' ' ) Now for the fun part, why use all the above when you can simply use:
yumdownloader --resolve So, if you have reached this line then you don't need repotrack/repoquery, simply use yumdownloader :)
So, I was looking for some quick to setup PHP Image gallery file. I found couple but none of them suited my needs too well. So I had to write my own.
Very simple PHP script to show all the images under ‘images’ folder.
Shows some details in the images.
Â
That is all that I wanted and that is all that this script does. So pretty simple single php file. Dependency is on fancybox so you will need the jquery and all but nothing else is required.
Continue readingFirst, put this in a script.
|
|
and then put this in cron:
Continue reading