Skip to content

Instantly share code, notes, and snippets.

View AVGVSTVS96's full-sized avatar

Bassim Shahidy AVGVSTVS96

View GitHub Profile
@juangiordana
juangiordana / neovim-nixos.md
Last active July 9, 2025 12:46
Simple instructions to run Neovim distributions in NixOS

Run Neovim distributions in NixOS

tl;dr

# /etc/nixos/configuration.nix
{
  programs.nix-ld.enable = true;
}
@letThemPlay
letThemPlay / hm.nix
Created November 18, 2024 09:15
Stripped Down version of agenix home-manager setup with Env Vars
{
inputs,
stateVersion,
pkgs,
nixvim,
...
}:
{
imports = [ ./hmuser.nix ];
@nikolovlazar
nikolovlazar / keybindings.json
Last active November 21, 2025 12:49
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@raisiqueira
raisiqueira / dialog.tsx
Created March 14, 2024 18:00
An Ark-UI implementation of the shadcn-ui dialog
import * as React from "react";
import { Dialog as ArkDialog, Portal } from "@ark-ui/react";
import { X } from "lucide-react";
import { cn } from "@/lib/utils";
const Dialog = ArkDialog.Root;
const DialogTrigger = ArkDialog.Trigger;
@ogerardin
ogerardin / gist:014aff71b7d7aacf4bbfb3b8bbc575b7
Created July 25, 2023 14:18
Convert VMware VM to UTM (Mac)
Export VM as OVF
/Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/ovftool VM.vmwarevm/VM.vmx .
Convert .vmdk to .qcow2
qemu-img convert -p -f vmdk -O qcow2 VM-disk1.vmdk VM-disk1.qcow2
Create custom VM in UTM matching VM hardware
Remove default disk
Add drive / import QCOW2 file (file is copied to default UTM VM folder)
Add CD/DVD drive
@AVGVSTVS96
AVGVSTVS96 / .zshrc
Last active June 3, 2023 03:56
ZSH Prompt - Displays current Git branch and directory with colors in terminal. Customize name 'MacBook-Pro'
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
setopt PROMPT_SUBST
PROMPT='%F{cyan}MacBook-Pro%f:%F{green}%1~%f %F{yellow}$(parse_git_branch)%f$ '
@max-sixty
max-sixty / fzf-config.fish
Last active October 7, 2024 16:52
Fish fzf settings & functions
## FZF settings & functions for fish; collected with attribution and modified.
# These rely on `git lg`; from git's config:
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
# They also rely on the following being installed:
# - bat
# - choose
# - delta
# - exa
# - fd
@stek29
stek29 / extract_telegram_macos.ipynb
Last active December 2, 2025 15:19
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// source https://github.com/apollographql/apollo-client/blob/master/src/react/hooks/utils/useDeepMemo.ts
import { useRef } from 'react';
import { equal } from '@wry/equality';
/**
* Memoize a result using deep equality. This hook has two advantages over
* React.useMemo: it uses deep equality to compare memo keys, and it guarantees
* that the memo function will only be called if the keys are unequal.
* React.useMemo cannot be relied on to do this, since it is only a performance
@janderssonse
janderssonse / git-commit-message-guidelines.md
Last active October 23, 2025 12:06
Git Commit Message Guidelines