Skip to content

Instantly share code, notes, and snippets.

View litewarp's full-sized avatar

Nick Sethi litewarp

View GitHub Profile
@litewarp
litewarp / wezterm.lua
Created February 21, 2026 00:22 — forked from vladkens/wezterm.lua
WezTerm config for iTerm users https://vladkens.cc/from-iterm-to-wezterm/
-- https://wezfurlong.org/wezterm/config/files.html
-- https://alexplescan.com/posts/2024/08/10/wezterm/
-- https://github.com/wez/wezterm/issues/6112
-- https://github.com/wez/wezterm/issues/5754
local wezterm = require "wezterm"
local config = wezterm.config_builder()
local action = wezterm.action
local mux = wezterm.mux
config.audible_bell = "Disabled"
/**
* Plugin(s) to add typedPgRegistry to the build input.
* TypedPgRegistryPlugin adds the typedPgRegistry to the build input, and should always be used.
* ExportPgRegistryTypesPlugin exports types for the PgRegistry, and should only be used in development.
* The exported .d.ts file should be added to the tsconfig.json `include` array.
* The plugin only exports if the `exportPgRegistryTypesPath` option is set in the schema options.
*/
import type { PgCodec, PgEnumCodec, PgResource } from '@dataplan/pg'
import { mkdir, readFile, writeFile } from 'node:fs/promises'
@litewarp
litewarp / recovery.sh
Created July 23, 2019 17:43 — forked from jonathantneal/recovery.sh
Create or update macOS Mojave Recovery Partition Without Reinstalling
#!/bin/sh
# Set the macOS installer path as a variable
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
MOUNT_POINT="$MACOS_INSTALLER/Contents/SharedSupport"
echo "macOS installer is \"$MACOS_INSTALLER\""
# Set the target disk as a variable
TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//')
echo "Target disk is \"$TARGET\""
@litewarp
litewarp / rvm2rbenv.txt
Created April 18, 2019 18:22 — forked from brentertz/rvm2rbenv.txt
Switch from RVM to RBENV
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
--- dsdt.dsl 2018-03-04 16:00:00.866484238 -0800
+++ dsdt.dsl 2018-03-04 16:28:07.933272752 -0800
@@ -18,9 +18,8 @@
* Compiler ID "INTL"
* Compiler Version 0x20160527 (538314023)
*/
-DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000000)
+DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000001)
{
- External (_GPE.TBNF, MethodObj) // 0 Arguments
@litewarp
litewarp / capybara cheat sheet
Created September 2, 2017 00:14 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@litewarp
litewarp / Simple Form.md
Created August 29, 2017 19:46 — forked from stevenyap/Simple Form.md
Simple Form Cheatsheet

Gemfile

gem 'simple_form'

Installation

rails generate simple_form:install