Skip to content

Instantly share code, notes, and snippets.

View aryanprince's full-sized avatar
🪄
Working Magic

Aryan Prince aryanprince

🪄
Working Magic
View GitHub Profile
@dhh
dhh / linux-setup.sh
Last active May 20, 2024 09:02
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl btop \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
"use client";
import {
Dialog,
DialogContent,
DialogTitle,
DialogTrigger
} from "@/components/ui/dialog";
import useDragDrop from "@/hooks/useDragDrop";
import { cn, formatBytes } from "@/lib/utils";
@iambryancs
iambryancs / pyenv-wsl-ubuntu_22.04.md
Created May 31, 2023 10:31
Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Env

  • Windows 10
  • Ubuntu 22.04 WSL
  • zsh

Requirements

  • git
@ciiqr
ciiqr / zod-optional-null.ts
Last active May 19, 2024 16:29
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@TehBrian
TehBrian / final-cut-pro-trial-reset.sh
Created June 21, 2022 19:33
Final Cut Pro Trial Reset
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash
@kurtmkurtm
kurtmkurtm / GitHub Action Test Publish
Last active November 7, 2022 01:02
Sample .NET Core GitHub actions workflow, with published markdown tests results using LiquidTestReports.Markdown - https://www.nuget.org/packages/LiquidTestReports.Markdown
name: .NET Core Build with Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
@Beneboe
Beneboe / how-to-setup-verified-commits.md
Last active March 20, 2024 18:20
How to Setup Verified Commits on Github