Skip to content

Instantly share code, notes, and snippets.

View treramey's full-sized avatar

Trevor Ramey treramey

View GitHub Profile
@treramey
treramey / clear-teams-downloads.sh
Last active April 4, 2025 20:36
Script to clear MSTeams Data
#!/bin/bash
rm -rf ~/Downloads/MSTeams
mkdir -p "~/Downloads/MSTeams"
touch "~/Downloads/MSTeams/$(date +%s).purge"
@treramey
treramey / conventional-commits-cheatsheet.md
Created January 27, 2025 16:25 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

brew install miniforge
conda init "$(basename "${SHELL}")"
conda info
# platform : osx-arm64
@treramey
treramey / Git Worktree Overview.md
Created September 25, 2024 15:08 — forked from GeorgeLyon/Git Worktree Overview.md
Git Worktree Overview

git worktree

What is it?

Git worktree it a git feature which allows you to checkout a single repository into multiple locations on your filesystem. It has a few rough edges, but if you follow a few simple rules it can be make context switching much easier than git's other mechanisms, such as stashing or switching branches. My folder structure will usually look something like this:

MyRepo/ master/ ← The original checkout, using something like git clone <repo url> master

@treramey
treramey / AZURE_CLI.md
Created August 28, 2024 14:59 — forked from anuragdhingra/AZURE_CLI.md
Clone all your azure DevOps repositories in your organization at once using Azure CLI.
  1. Install Azure CLI
brew install azure-cli
  1. Add the DevOps CLI extension -
az extension add --name azure-devops
  1. Set your default organization and project -
@treramey
treramey / AZURE_CLI.md
Created August 28, 2024 14:59 — forked from anuragdhingra/AZURE_CLI.md
Clone all your azure DevOps repositories in your organization at once using Azure CLI.
  1. Install Azure CLI
brew install azure-cli
  1. Add the DevOps CLI extension -
az extension add --name azure-devops
  1. Set your default organization and project -
@treramey
treramey / .ideavim
Last active June 24, 2025 03:19
.ideavim
" ┌─────────────────────────────────────────────────────────────────────────┐
" │ General Setup │
" └─────────────────────────────────────────────────────────────────────────┘
set history=1000
set timeoutlen=1000
set clipboard+=unnamed
set nrformats=
set scrolloff=8
set visualbell
set numbers
@treramey
treramey / context-boilerplate.tsx
Created July 1, 2024 19:31
react context boilerplate
import React, { createContext, useContext, useState, useEffect } from "react"
type Props = {
children: React.ReactNode
}
type Context = {
count: number
increment: () => void
}
import type { NextApiResponse } from "next";
export type ApiResponse = ApiSuccessResponse | ApiErrorResponse;
export interface ApiSuccessResponse<T = { [key: string]: any }> {
data: T;
}
export interface ApiErrorResponse {
code:
@treramey
treramey / gist:c3ba696958774e4d3bcceab5843a3bd8
Last active July 14, 2023 02:57
neovim build from source

neovim build from source wsl

For me the solution was build from source:

Install dependencies:

sudo apt-get install ninja-build gettext cmake unzip curl
  1. Clone Neovim repo: