Install qemu from https://www.qemu.org/. Tested working on Windows and not on WSL 1.\qemu-img.exe create -f qcow2 'C:\Users\icasimpan\rockyLinux.hdd' 40G 2.\qemu-system-x86_64.exe -hda C:\Users\icasimpan\rockyLinux.hdd -cdrom C:\Users\icasimpan\Downloads\Rocky-8.6-x86_64-minimal.iso -boot d -m 2G -vga std -net …
Read MoreJSON or JavaScript Object Notation is a data representation standard shown in a key:value pair, just like a traditional JavaScript object. Here's the key info you need to know about it: All the data in the file must be surrounded by curly braces if you're representing it as an object, and in square brackets if it is …
Read More
Sometimes, for automation purposes, you would like to get the latest commit in a working copy. Below is how you do it. 1~$ git rev-parse --short HEAD Remove the --short HEAD if you need the longer version.
Read More
It's quite annoying when you committed large files to git specially if it's something that's something confidential. We'll relatively easy to do that. Just use the 'filter-branch' command in git as follows: 1git filter-branch --force --index-filter \ 2> 'git rm --cached --ignore-unmatch …
Read More
From the example in https://docs.github.com/en/rest/reference/pulls#create-a-pull-request, it seems quite easy: 1curl \ 2-X POST \ 3-H "Accept: application/vnd.github.v3+json" \ 4https://api.github.com/repos/octocat/hello-world/pulls \ 5-d …
Read More1sudo dd if=/dev/zero of=/mnt/file.swap bs=1M count=512 2sudo mkswap /mnt/file.swap 3sudo chmod 0600 /mnt/file.swap 4sudo swapon /mnt/file.swap 5echo "/mnt/file.swap none swap sw 0 0" >> /etc/fstab See details in https://www.garron.me/en/linux/increase-swap-memory-linux.html
Read More1chmod g-s <dirname_here> More details in https://serverfault.com/questions/238962/how-do-i-clear-the-s-permission-on-a-directory-in-linux
Read MoreIs best done manually: 1sudo yum -y update --security 1The problem is that CentOS does not supply the necessary metadata in its yum repositories such that yum-plugin-security can function. In other words, yum-plugin-security does nothing, and the automation of security updates is a lost cause in CentOS. In fact, the …
Read MoreNOTE: php5.4 and php5.6 is no longer supported. https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/
Read MoreNOTE: php5.6 and php7.0 is no longer supported. 1wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm 3rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm Then, enable "remi-php70" in /etc/yum.repos.d/remi-php70.repo …
Read More