Skip to content

Instantly share code, notes, and snippets.

View goldenratio's full-sized avatar

Karthik VJ goldenratio

View GitHub Profile
You could simply add a second remote:
```
git remote add bitbucket /url/to/am/empty/bitbucket/repo
```
and push everything to bitbucket:
```
git push --mirror bitbucket
```
#!/usr/bin/env node
// @ts-expect-error don't want to setup node/npm
import fs from "node:fs";
// @ts-expect-error don't want to setup node/npm
import path from "node:path";
// @ts-expect-error don't want to setup node/npm
import { fileURLToPath } from "node:url";
const _filename = fileURLToPath(import.meta.url);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Particle System</title>
<style>
body {
margin: 0;
overflow: hidden;
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.313
Instance Extensions: count = 24
===============================
VK_EXT_acquire_drm_display : extension revision 1
document.querySelectorAll('canvas').forEach((canvas, i) => {
const ctx2d = canvas.getContext('2d');
const ctxWebGL = canvas.getContext('webgl') || canvas.getContext('webgl2');
console.log(`Canvas ${i}:`, {
'2D': !!ctx2d,
'WebGL': !!ctxWebGL
});
});
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