Skip to content

Instantly share code, notes, and snippets.

View kbdharun's full-sized avatar
:dependabot:
Available

K.B.Dharun Krishna kbdharun

:dependabot:
Available
View GitHub Profile
@kbdharun
kbdharun / vscode-wayland-fix.md
Last active November 20, 2024 09:32
Fix Blurry VSCode in Wayland under HiDPI laptop displays in Linux

Guide to fix blurry VSCode in Wayland under HiDPI laptop displays in Linux

Before fix:

image

  1. Open the Terminal and in your preferred text editor open /usr/share/applications/code.desktop with administrative privilages (i.e. sudo nano /usr/share/applications/code.desktop).

  2. Now comment out the existing Exec line by adding # to the front and add the below line:

@kbdharun
kbdharun / cloudflare-site-inaccessible-gh-actions.md
Created September 30, 2024 17:34
Fix Cloudflare Zero tunnel domain/subdomain inaccessible inside GitHub actions with forbidden 403 error in Flask apps

To fix the issue of domains/subdomains routed via Cloudflare Tunnels being inaccessible in GitHub actions, check if Bot Fight Mode is enabled, if yes then disable it temporarily to access the site.

@kbdharun
kbdharun / custom-report-oracle-apex.md
Created September 16, 2024 04:13
Oracle Apex Query for Employee and department table for custom report using select list

Report:

select EmpNo, EName, Job, Sal
from EMP
where job = :P10_JOB
and :P10_deptname=(select dname from dept where dname= :P10_DEPTNAME)
order by EName;
@kbdharun
kbdharun / clear-github-notification.md
Created June 4, 2024 06:42
Clearing Rogue GitHub notifications using GitHub CLI
  1. Have gh (GitHub CLI) installed locally and logged into your GitHub account (i.e. gh auth login).
  2. Execute the following command to clear rogue/frozen unread notifications:
gh api \
  --method PUT \
  -H "Accept: application/vnd.github+json" \
  /notifications \
  -f last_read_at="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
 -F read=true
@kbdharun
kbdharun / check-secure-boot.md
Created May 11, 2024 18:26
Checking if Secure boot is enabled on not on Linux
mokutil --sb-state
@kbdharun
kbdharun / vos-docs-portainer.md
Last active October 20, 2024 13:50
Vanilla OS Docs: Portainer configuration

Frontend configuration:

CHRONOS_COLLECTION_1
[{"shortName": "docs", "title": "Docs", "url": "https://chronos.vanillaos.org/vos-docs", "description": "Read the technical documentation for the Vanilla OS components and utilities."}]

CHRONOS_COLLECTION_2
[{"shortName": "handbook", "title": "Handbook", "url": "https://chronos.vanillaos.org/vos-handbook", "description": "Are you a new Vanilla OS user? Read the handbook to learn how to use the OS."}]

CHRONOS_COLLECTION_3
@kbdharun
kbdharun / fix-exited-mongodb.md
Created March 12, 2024 10:48
How to fix accidentally Exited MongoDB SQL Console in Google Cloud Skill Boost Lab?

If you accidentally exited the Mongo DB console while working on a Google Cloud Skill Boost Lab you can just type: sudo mongodb organization in the Console to enter back to continue with your tasks (Note: replace organization with the correct prompt name for your lab).

@kbdharun
kbdharun / proxmox-iso-location.txt
Created January 16, 2024 14:28
Location in which ISO's are stored in Proxmox
/var/lib/vz/template/iso
@kbdharun
kbdharun / update-nix-pkgs-2023.md
Created December 13, 2023 14:34
Update and test a Nix package with ease quickly on Linux 2023
  • Clone the nix-pkgs repository (This would take more than a Gigabit of data/space) and in a new branch perform the below changes.
  • For computing the hash, use:
nix-hash to-sri --type sha256 $(nix-prefetch-url --unpack <url.tar.gz>) --extra-experimental-features nix-command
  • For testing the changes, perform a build using nix-build -A <package>.

Now, push the changes along with release notes URL in the commit message following the suggested conventions.

@kbdharun
kbdharun / get-product-code-win.md
Created October 26, 2023 18:06
Get Product code of installed application in Windows
get-wmiobject Win32_Product | Sort-Object Name | Format-Table IdentifyingNumber, Name -AutoSize