Skip to content

Instantly share code, notes, and snippets.

View xemoe's full-sized avatar
🏠
Working from home

Teerapong Ladlee xemoe

🏠
Working from home
  • Bangkok, Thailand
View GitHub Profile
@pasqualevitiello
pasqualevitiello / sidebar.tsx
Last active July 2, 2025 09:19
Stripe-Style Collapse/Expand Toggle
"use client"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, VariantProps } from "class-variance-authority"
import { PanelLeftIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import { useIsMobile } from "@/hooks/use-mobile"
import { Button } from "@/components/ui/button"
@mennwebs
mennwebs / page.js
Last active August 18, 2025 00:56
Grist API with Next.js for Salary & Team Data
// Please check https://github.com/gristlabs/grist-api
import { GristDocAPI } from 'grist-api'
export default async function Page() {
const DOC_URL = process.env.GRIST_DOC_URL
const API_KEY = process.env.GRIST_API_KEY
const api = new GristDocAPI(DOC_URL, { apiKey: API_KEY })
const salary_data = await api.fetchTable('Salary')
const team_data = await api.fetchTable('Team')
const team = salary_data.map((person) => {
@dhh
dhh / linux-setup.sh
Last active October 30, 2025 22:31
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@bramtechs
bramtechs / upgrade-debian-wsl.md
Last active December 1, 2025 08:25
Add Debian 12 to 13 contribution

Upgrade Debian 9 (current WSL) to Debian 12 (bookworm testing)

Note: I do not maintain this gist anymore, but people report that it still works. Please check the comments for any revisions or extra things you should take into consideration.

As of writing, the Debian distro for WSL (Windows Subsystem for Linux) is quite old.

You can get more up-to-date package managers, text-editors and compilers by upgrading WSL to Debian 12 (current testing).

  • Root required
  • Use at your own risk, preferably on a fresh installation.
@JustinByrne
JustinByrne / laravel-ci-cd-workflow.yml
Last active May 29, 2024 21:09
Github Action to test laravel and then compile the assets to a production branch
name: CI/CD workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
testing:
@xemoe
xemoe / setup.md
Last active April 1, 2022 10:47
urd setup

setup dotfiles

sudo apt-get update
sudo apt-get install git
sudo locale-gen
sudo dpkg-reconfigure locales
git clone https://gist.github.com/675e0a9251a294537b9c.git dotfiles_setup
cd ./dotfiles_setup
./main.sh --pkg=common --user=srandev install
chsh -s /bin/zsh
@ankurk91
ankurk91 / github_gpg_key.md
Last active August 6, 2025 12:14
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
########################
## Software developer ##
## Teerapong ladlee   ##
########################

Teerapong ladlee

Experience & Responsibilities

@xemoe
xemoe / main.sh
Last active December 20, 2021 11:48
Default setup
#!/bin/bash
#######################################################################
##
## START HEADER SCRIPT
##
#######################################################################
type realpath &>/dev/null
if [ $? -eq 1 ]; then