As a Mastodon instance admin you can insert custom CSS under Administration -> Server Settings in the Appearance tab. Just copy & paste the following CSS in the Custom CSS box and set the content value to any string you want… Click the button “Save changes” and refresh your page. The button has a custom […]
Docker image with preinstalled numpy, pandas and mysqlclient
If you are ever in need of an image with pre-compiled numpy with pandas on top of a debian distro for your project, you can give a try to my image, which is publicly available on DockerHub: https://hub.docker.com/r/k3rn3l3rr0r/pandas-numpy-debian Currently, the master tagged image has a size of 122 MB and contains of the following ingredients […]
APC cache and Symfony projects in Fedora 25/26
To be able to run Symfony project on Fedora 25/26 server with Apache (httpd) you need to install the “APCu Backwards Compatibility Module” $ dnf install php-pecl-apcu-bc Otherwise you will be getting the following error: PHP Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /home/maf/symfony/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php on line 40
Mouse cursor disappering after login in Fedora 19 / 20 / 21
Run this command in terminal and the problem is gone: [user@machine ~]$ dconf write /org/gnome/settings-daemon/plugins/cursor/active false
gnome-gmail – “Unable to determine IMAP Drafts folder location” solution
If you are getting the error “Unable to determine IMAP Drafts folder location” when you try to send an email with attachment you need to hardcode the Gmail Drafts folder location into the script. Mostly this is the case if you are using localized version either of Gnome or Gmail and the language settings doesn’t […]
How to disable GDM user list in Fedora 21 (GNOME 3)
If you need to disable the default user list in Fedora 21, the approach is slightly different than it was before (again)… You have to run this command in the terminal (within running X session) as root: [root@universe ~]# sudo -u gdm gsettings set org.gnome.login-screen disable-user-list true This change will take effect after the next […]
Require specific commit and branch from GitHub with Composer
If you need to include specific branch and/or specific commit from GitHub into your project via Composer use following syntax: { “minimum-stability”: “dev”, “require”: { “vendor/package”: “dev-branchname#6bdd====full commit id====a9c6”, } , “repositories”: [ { “type”: “git”, “url”: “https://github.com/user/repo.git” } ] } branch name gets always dev- in front (so branch “features” translates to “dev-features”) you […]
PHP var_dump() to error log
Nice function to var_dump() any variable into php error_log()… Sometimes it can be very usefull for debugging purposes. function var_error_log( $object=null ){ ob_start(); // start buffer capture var_dump( $object ); // dump the values $contents = ob_get_contents(); // put the buffer into a variable ob_end_clean(); // end capture error_log( $contents ); // log contents of […]
PHP get timestamp for given date and timezone in shell
[user@there ~]$ php -r ‘date_default_timezone_set(“Europe/Helsinki”); $time = strtotime(“16.03.2015″); echo $time.”\n”; echo date(“d-m-Y”, $time);’
Fedup from Fedora 19 to 20 fails because of missing GPG keys
Fedup upgrade from Fedora 19 to Fedora 20 fails with the message: Importing GPG key 0xB5F29883: Userid : “RPM Fusion nonfree repository for Fedora (20) <rpmfusion-buildsys@lists.rpmfusion.org>” Fingerprint: a84d cf58 46cb 10b6 5c47 6c35 63c0 de8c b5f2 9883 Package : rpmfusion-nonfree-release-19-1.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-20 Downloading failed: Didn’t install any keys You can manually import the […]
Fedora LiveCD default username and password
The default username and password setting for Fedora LiveCD is: Login: “liveuser” Password: “” [yes, it’s blank] If you need to remote login into the machine running the LiveCD you have first to start sshd and set new password for the liveuser: Start sshd.service: [root@localhost ~]# systemctl start sshd.service Set new password for liveuser: [root@localhost […]
Installing Adobe Reader on Fedora 19 system
Yes, it’s shitty, proprietary piece of crap – and end-of-life too… But it looks like nothing else currently running on linux deals with PDF forms created in Adobe LiveCycle. If you know about some linux PDF viewer, which can open such PDF files, please leave here a comment, thanks. I love Evince, but if I […]
Logout from Gnome via shell command
If you need to end your Gnome session and logout via command line – type this in gnome-terminal or your preffered terminal emulator: [user@host ~]$ gnome-session-quit You will be logged out of your gnome-session as if you would click on the Logout button in the UI.
Quick and dirty way to remotely connect to GDM
This is a quick & dirty way how to remotely connect to another machine on the same network (and start a gnome user session via GDM if needed). First ssh to the host where you want to be able to connect to and install the x11vnc package: [user@server ~]$ sudo yum install x11vnc Run the […]