Open Redis port for remote connections

Did you set the bind option to allow remote access on the redis server? Before (file /etc/redis/redis.conf) bind 127.0.0.1 After bind 0.0.0.0 and run sudo service redis-server restart to restart the server. If that’s not the problem, you might want to check any firewalls that might block the access. Important: If you don’t use a … Read more

IntelliJ Idea Ctrl+Alt+Left shortcut doesn’t work in Ubuntu

Ubuntu binds this key combination to Switch Workspace. Starting from Ubuntu 18.04, you need to use the command line to change the shortcut (source), because the Ubuntu Keyboard Settings GUI might not show this option. To remove the offending shortcuts completely, allowing IntelliJ to use them, these commands worked for me: gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left … Read more

How to download all files (but not HTML) from a website using wget?

To filter for specific file extensions: wget -A pdf,jpg -m -p -E -k -K -np http://site/path/ Or, if you prefer long option names: wget –accept pdf,jpg –mirror –page-requisites –adjust-extension –convert-links –backup-converted –no-parent http://site/path/ This will mirror the site, but the files without jpg or pdf extension will be automatically removed.

Error “gnu/stubs-32.h: No such file or directory” while compiling Nachos source code

You’re missing the 32 bit libc dev package: On Ubuntu it’s called libc6-dev-i386 – do sudo apt-get install libc6-dev-i386. See below for extra instructions for Ubuntu 12.04. On Red Hat distros, the package name is glibc-devel.i686 (Thanks to David Gardner’s comment). On CentOS 5.8, the package name is glibc-devel.i386 (Thanks to JimKleck’s comment). On CentOS … Read more

sendmail: how to configure sendmail on ubuntu? [closed]

When you typed in sudo sendmailconfig, you should have been prompted to configure sendmail. For reference, the files that are updated during configuration are located at the following (in case you want to update them manually): /etc/mail/sendmail.conf /etc/cron.d/sendmail /etc/mail/sendmail.mc You can test sendmail to see if it is properly configured and setup by typing the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)