Posts

Setup docker in Linux Mint 20

 Setup docker in Linux Mint 20 ( Command sequence) =============================== sudo apt-get update sud apt-get upgrade sudo apt install docker.io -y sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker sudo reboot  sudo systemctl status docker # ensure that the docker is running after reboot  docker -v sudo docker run hello-world sudo apt install docker-compose -y docker-compose -v docker container ls #(if you get permission error execute the following commands) sudo groupadd docker sudo gpasswd -a ${USER} docker su - $USER sudo reboot  docker container ls

Fedora Development Machine .net core + angular 9

Things to do after installing fedora 32 for .net core and Angular 9 development Install build-essential `sudo dnf install make automake gcc gcc-c++ kernel-devel` Install node version manager (https://github.com/nvm-sh/nvm) and install nvm eg: `nvm install 12.18.2` Install visual studio code and plugins ( https://mycodingreferences.blogspot.com/2020/07/visual-studio-code-plugins-for-angular.html ) Install .net core https://docs.microsoft.com/en-gb/dotnet/core/install/linux-fedora && https://docs.microsoft.com/en-gb/dotnet/core/install/linux-fedora#fedora-32-  Now Install .net tool for entity framework `dotnet tool install --global dotnet-ef` Install bash-gitprompt ref here -> https://github.com/magicmonty/bash-git-prompt install xclip Generate keypair for ssh access to github / bitbucket issue command `ssh-keygen ` and generate key pair , `cat id_rsa.pub` and copy public key and update gitbub ssh public key ref :: https://support.atlassian.com/bitbucket-cloud/d

Visual Studio Code Plugins for Angular + .net core development

My typical VSCode / VSCodium plugins Angular files -> https://marketplace.visualstudio.com/items?itemName=alexiv.vscode-angular2-files Angular language service -> https://marketplace.visualstudio.com/items?itemName=Angular.ng-template Angular Snippets -> https://marketplace.visualstudio.com/items?itemName=johnpapa.Angular2 Angular2-Switcher -> https://marketplace.visualstudio.com/items?itemName=infinity1207.angular2-switcher Auto close tag -> https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag Auto rename tag -> https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag Prettier Bracket Pair Colorizer2 -> https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2 Indent-rainbow -> https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow Nuget Gllery h ttps://marketplace.visualstudio.com/items?itemName=patcx.vscode-nuget-gallery TSList plugin ht

Fedora 32 Setting up Citrix workspace client

Installing and settingup citrix workspace on Fedora 32 in case you are facing issues with certificate error (SSL Error 61: You have not chosen to trust 'Certificate Authority) Download the latest version of citrix workspace app for linux form here https://www.citrix.com/en-au/downloads/workspace-app/linux/workspace-app-for-linux-latest.html Direct download lik -> https://downloads.citrix.com/17904/ICAClient-rhel-20.06.0.15-0.x86_64.rpm?__gda__=1594195198_18044945221df16b768c3db047809453 Open termial and navigate to `Downloads` folder and issue the command `sudo rpm -i ICAClient-rhel-13.10.0.20-0.x86_64.rpm` Download Server certificate -> (GoDaddy Secure Server Certificate (Intermediate Certificate) - G2) download .crt format  https://ssl-ccp.godaddy.com/repository/gdig2.crt Open up terminal and issue the command and navigate to `Downloads` folder and issue the command `sudo su` make the commandline as root user  followed by copying the certificate as admin user to

Docker Commands

Basic Docker Commands Commands: - docker run <Image> (Create container from an image and start container). With every docker run docker will will create new copies of container from image and run it . For example, if you issue docker run 3 times then  3 identical docker containers will get created and running on top of docker. - docker start <name|id> (start only) - docker stop <name|id>(stop the container with the - docker ps [-a include stopped containers] (List all the containers ) - docker rm <name|id> (removes/deletes a container)

partition by clause

An example using using partition by clause References : http://msdn.microsoft.com/en-us/library/ms189461.aspx The following example shows using the OVER clause with ROW_NUMBER function to display a row number for each row within a partition. The ORDER BY clause specified in the OVER clause orders the rows in each partition by the column Category. The ORDER BY clause in the SELECT statement determines the order in which the entire query result set is returned. Question : I need to get one item each from a category Answer: select* from ( select row_number() over(partition by Category order by ItemName) AS IDv,*  from ( select 'Apple' ItemName,'Fruits'Category UNION ALL select 'Banana' ItemName,'Fruits'Category UNION ALL select 'Turnip' ItemName,'Vegs'Category UNION ALL select 'Tomato' ItemName,'Vegs'Category UNION ALL select 'Eggplant' ItemName,'Vegs'Category ) A )B where b.

Ubuntu Software Center Crashing

Symptom : Ubuntu Software center is unable to open and provide some internal error/unresolved error You would see the following error message E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/ sg .archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages, E:The package lists or status file could not be parsed or opened.' Where : sg would be the country, will be us,ca in case of USA or Canada respectively in case of respective countries . You could refer the thread :  http://ubuntuforums.org/showthread.php?t=1750755 Following solved my issues # First delete all of the previously available listings sudo rm /var/lib/apt/lists/* -vf # And then use apt-get to rebuild your package listings sudo apt-get update