Tuesday 12 March 2024

Constrain WSL2 resource consumption

 Add a file named .wslconfig to %UserProfile% with the follows. Adjust the parameters as suitable.

[wsl2]

memory=12GB

processors=4 

Thursday 17 March 2022

Resolve issue of Skype screen sharing crashing on Ubuntu

 Edit /etc/gdm3/custom.conf and uncomment enableWayland=false


Restart system


Check if Wayland has been replaced by X11 by using the command

loginctl

loginctl show-session <session id> -p Type

Saturday 29 January 2022

How to add eclipse shortcut in Ubuntu

 In /home/<user>/.local/share/applications/ add a file named eclipse.desktop with - 


[Desktop Entry]
Version=1.0
Name=Eclipse
Comment=Java IDE
Type=Application
Categories=Development;IDE;
Exec=/home/node/eclipse/eclipse/eclipse
Terminal=false
StartupNotify=true
Icon=/home/node/eclipse/eclipse/icon.xpm
Name[en_US]=Eclipse

In Git store username and password locally

 git config --global credential.helper store

In Git add short name for repo locally in order to check out

$ git remote add -t master -m master dashboard https://github.com/Book-My-Forex/dashboard.git

Friday 30 July 2021

Showing latest changes in Angular without clearing browser history (untested)

 In index.html do -

<meta http-equiv="Cache-control" content="no-cache">


On apache server in /var/www/.htaccess do -


RewriteEngine On
<FilesMatch "\.(html|htm|js|css)$">
  FileETag None
  <IfModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT"
  </IfModule>
</FilesMatch>

Thursday 1 July 2021