Skip to content

Instantly share code, notes, and snippets.

View goldenratio's full-sized avatar

Karthik VJ goldenratio

View GitHub Profile
Fedora 42 - x86_64 - Updates 63 kB/s | 11 kB 00:00
Fedora 42 - x86_64 - Updates 987 kB/s | 1.4 MB 00:01
Last metadata expiration check: 0:00:02 ago on Sun 08 Jun 2025 03:51:24 PM EEST.
Installed package fwupd-2.0.10-1.fc42.x86_64 not available.
Installed package libnfsidmap-1:2.8.3-1.rc1.fc42.x86_64 not available.
Installed package selinux-policy-41.41-1.fc42.noarch not available.
Installed package selinux-policy-targeted-41.41-1.fc42.noarch not available.
Installed package netavark-2:1.15.1-1.fc42.x86_64 not available.
Installed package libgs-10.05.1-1.fc42.x86_64 not available.
Installed package ghostscript-10.05.1-1.fc42.x86_64 not available.
NetworkManager-ssh-selinux-0:1.3.1-1.fc42.x86_64
duplicate with "NetworkManager-ssh-selinux-0:1.4.1-2.fc42.x86_64"
NetworkManager-ssh-selinux-0:1.4.1-2.fc42.x86_64
duplicate with "NetworkManager-ssh-selinux-0:1.3.1-1.fc42.x86_64"
NetworkManager-vpnc-1:1.4.0-2.fc42.x86_64
duplicate with "NetworkManager-vpnc-1:1.4.0-3.fc42.x86_64"
NetworkManager-vpnc-1:1.4.0-3.fc42.x86_64
duplicate with "NetworkManager-vpnc-1:1.4.0-2.fc42.x86_64"
SDL3-0:3.2.10-1.fc42.x86_64
duplicate with "SDL3-0:3.2.12-1.fc42.x86_64"
@goldenratio
goldenratio / canvas-animation.js
Created April 12, 2025 10:23
some canvas ball animation
window['playAnimation'] = (options = {}) => {
const { ballCount = 4, onClose = () => { } } = options;
const root = document.getElementById('root');
// Style root to center contents
root.style.display = 'flex';
root.style.justifyContent = 'center';
root.style.alignItems = 'center';
root.style.height = '100vh';
@goldenratio
goldenratio / .eslintrc.js
Created February 6, 2025 22:28
eslint CHAD rules
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
@goldenratio
goldenratio / bash-mac-os.md
Last active October 14, 2024 21:07
Upgrading Bash on macOS

Install Homebrew

$ brew install bash

$ which -a bash

/usr/local/bin/bash 
/bin/bash
@goldenratio
goldenratio / 871593ad-c175-46c0-8e9f-8b87bcbf6019.json
Created August 11, 2024 20:00
hoppscotch collection for micro blog api
{"v":2,"name":"micro-blog-api","folders":[],"requests":[{"v":"6","method":"POST","endpoint":"http://127.0.0.1:8080/echo","testScript":"","requestVariables":[],"params":[],"preRequestScript":"","name":"echo","body":{"contentType":"application/json","body":"{\n \"username\": \"foo\",\n \"password\": \"bar\"\n}"},"auth":{"authActive":true,"password":"sasasa","username":"sasa","authType":"basic"},"headers":[]},{"v":"6","params":[],"preRequestScript":"","name":"auth login","endpoint":"http://127.0.0.1:8080/auth/login","testScript":"const jsonData = pw.response.body;\n// Set an environment variable\npw.env.set(\"jwt_token\", jsonData.jwtToken);\n// pw.env.set(\"user_id\", jsonData.userId);","auth":{"authActive":true,"authType":"inherit"},"body":{"body":"{\n \"email\": \"<<email>>\",\n \"password\": \"password1\"\n}\n","contentType":"application/json"},"method":"POST","requestVariables":[],"headers":[{"value":"application/json","key":"Content-Type","active":true}]},{"method":"POST","requestVariables":[],"headers
@goldenratio
goldenratio / flake.nix
Created June 17, 2024 19:46
A Nix Flake for running FusionAuth with Docker Compose
{
description = "A Nix Flake for running FusionAuth with Docker Compose";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = { self, nixpkgs }:
let
# The set of systems to provide outputs for
https://vscode.dev/editor/profile/github/65105bf55582081f31892a05a44bb8b8
{"name":"fermi-vscode-profile","settings":"{\"settings\":\"{\\n \\\"terminal.integrated.defaultProfile.linux\\\": \\\"bash\\\",\\n \\\"terminal.integrated.profiles.linux\\\": {\\n \\\"bash\\\": {\\n \\\"path\\\": \\\"host-spawn\\\",\\n \\\"args\\\": [\\\"bash\\\"]\\n }\\n },\\n \\\"git.enableSmartCommit\\\": true,\\n \\\"editor.stickyScroll.enabled\\\": false,\\n \\\"workbench.colorTheme\\\": \\\"Fleet Palenight\\\",\\n \\\"editor.fontFamily\\\": \\\"'JetBrains Mono', 'Droid Sans Mono', 'monospace', monospace\\\",\\n \\\"editor.fontVariations\\\": false,\\n \\\"workbench.editor.enablePreview\\\": false,\\n \\\"files.autoSave\\\": \\\"afterDelay\\\",\\n \\\"editor.tabSize\\\": 2,\\n \\\"rust-analyzer.inlayHints.chainingHints.enable\\\": false,\\n \\\"rust-analyzer.inlayHints.closingBraceHints.enable\\\": false,\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"workbench.activityBar.location\\\": \\\"top\\\",\\n \\\"window.customTitleBar
@goldenratio
goldenratio / gist:b05643b0809ecece5303505148cf1475
Last active December 9, 2023 20:59
diagnostics astro error
22:49:40 [check] Getting diagnostics for Astro files in C:\Projects\demo...
public/pdfjs-moz/pdf.mjs:17305:106 - warning ts(6133): 'x' is declared but its value is never read.
17305 /******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
~
public/pdfjs-moz/pdf.mjs:17288:33 - warning ts(6133): 'x' is declared but its value is never read.
17288 /******/ ret[webpackQueues] = x => {};
~