Skip to content

Instantly share code, notes, and snippets.

View Vaisakhkm2625's full-sized avatar

Vaisakh K M Vaisakhkm2625

  • <-- you don't need to know :)
View GitHub Profile
@Vaisakhkm2625
Vaisakhkm2625 / a.nix
Last active November 5, 2024 14:26
non free allow nix
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
});
in
@Vaisakhkm2625
Vaisakhkm2625 / cloneallrepo.sh
Created September 1, 2024 17:13
clone all repo from github
eval "$(ssh-agent -s)" # Start the ssh-agent
ssh-add ~/.ssh/id_rsa # Add your SSH key:
gh repo list --json=sshUrl --limit 1000 -q ".[].sshUrl" | xargs -n1 git clone
linode
setup fedora vm
```
useradd vaisakh
passwd vaisakh
usermod -a-G wheel vaisakh
su vaisakh
sudo dnf update
@Vaisakhkm2625
Vaisakhkm2625 / starpatternsin.py
Created July 6, 2024 21:53
star-pattern-sinwave
for i in range(1,10000):
print(round(35+35*math.sin(i/5))*" ","*")
# https://jeancharles.quillet.org/posts/2022-01-30-Local-mariadb-server-with-nix-shell.html
let pkgs = import <nixpkgs> {};
in pkgs.mkShell {
buildInputs = [ pkgs.mariadb ];
shellHook = ''
MYSQL_BASEDIR=${pkgs.mariadb}
MYSQL_HOME=$PWD/mysql
MYSQL_DATADIR=$MYSQL_HOME/data
export MYSQL_UNIX_PORT=$MYSQL_HOME/mysql.sock
MYSQL_PID_FILE=$MYSQL_HOME/mysql.pid

make qr code for selected text

let selection = window.getSelection().toString();
let encodedSelection = encodeURIComponent(selection)

let popupContent = `<html lang="en">
<head>
 
@Vaisakhkm2625
Vaisakhkm2625 / snippetmanagers.md
Created February 22, 2024 10:06
cli snippet managers
@Vaisakhkm2625
Vaisakhkm2625 / gist:ba1ff2503f1b2748a010f42837675d7f
Last active October 20, 2023 20:51
host sveltekit in github pages
```
npm i -D @sveltejs/adapter-static
```
```
echo "export const prerender = true;" >> ./src/routes/+layout.js
```
change
```