You would like to find out the serial number of your Lenovo laptop, but without switching it off and taking the battery off.
You can run the following to get your laptop’s details including the serial number:
Taken from the post here
You are trying to install the gems for your rails application in a new computer, or by using ruby 2.4 and you get the following error:
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
Remove your old Gemfile.lock file and run bundle again. A newer version of json (ie 1.8.6) should be installed.
When you are trying to install a package inside a debian Docker container you get the following error message:
This is an indication of ‘out of memory’ so add a swap partition if it does not exist, on the host with the following:
fallocate -l 4G /swapfile
chmod 600 /swapfile
echo "/swapfile swap swap sw 0 0" >> /etc/fstab