There’s no freaking working tomato timer available on a KDE based Linux distros! Can you believe it? I’ve become a nerdy MacGyver to overcome this.
Continue reading Improvised Pomodoro Technique® timer on KDE based Linux…
There’s no freaking working tomato timer available on a KDE based Linux distros! Can you believe it? I’ve become a nerdy MacGyver to overcome this.
Continue reading Improvised Pomodoro Technique® timer on KDE based Linux…
I believe the best one’s Gnome System Monitor:
To install it, run terminal and type:
sudo apt-get install gnome-system-monitor
cd ~/Downloads sudo dpkg -i google-chrome-stable_current_amd64.deb sudo apt-get update && sudo apt-get -f upgrade
sudo nano /usr/share/applications/google-chrome.desktop
Icon=google-chrome
This one’s easy. Run terminal and type:
gsettings set org.gnome.mutter workspaces-only-on-primary false
Run terminal and type:
sudo apt-get update sudo apt-get install software-properties-common sudo apt-add-repository "deb http://repository.spotify.com stable non-free" sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59 D2C19886 sudo apt-get update sudo apt-get install spotify-client
In case of a problem please comment below. Official instruction can be found here (it was incomplete at the moment of writing).
This tutorial is for Linux systems, especially Debian derivatives.
Continue reading How to scan your network for WannaCry vulnerability (SMBv1 MS17-010)?
In this example I will show you how to view Yii framework based app log and MySQl queries, both in realtime. Continue reading How to view two logs in one window?
You must provide proper database name and user:
File: gistfile1.txt
-------------------
psql -c "SELECT pg_database.datname, pg_database_size(pg_database.datname), pg_size_pretty(pg_database_size(pg_database.datname)) FROM pg_database ORDER BY pg_database_size DESC;" -d
When you want to find your headless but networked Raspberry Pi and you’re lazy like me use nmap:
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
Mask /24 means that addresses from 192.168.1.0 to 192.168.1.254 will be searched. You can extend that to /16 if you don’t know subnet of your device.
This is pretty common problem. I’ve encountered it on recent version of the Debian operating system. When you see something like that:
Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5/sessions) failed: Permission denied (13) in /mnt/www-data/htdocs/raportMNW/inc/bryanjhv/slim-session/src/Slim/Middleware/Session.php on line 110
You can fix that easily with following Linux commands:
sudo nano /etc/php5/apache2/php.ini
Now use CTRL+W to find following string session.save_path and configure it like that:
session.save_path = "/tmp"
Save your file using CTRL+X and restart Apache2 service:
sudo service apache2 restart
And voilà!