Skip to content

Instantly share code, notes, and snippets.

View tessro's full-sized avatar

Tess Rosania tessro

View GitHub Profile
@tessro
tessro / jiti+1.17.1.patch
Created June 17, 2023 07:10
jiti 1.17.1 tsx support patch
This file has been truncated, but you can view the full file.
diff --git a/node_modules/jiti/dist/babel.js b/node_modules/jiti/dist/babel.js
index 8d8be24..800fc16 100644
--- a/node_modules/jiti/dist/babel.js
+++ b/node_modules/jiti/dist/babel.js
@@ -1868,4 +1868,4 @@
(function (${_core.types.identifier(name)}) {
${namespaceTopLevel}
})(${realName} || (${_core.types.cloneNode(realName)} = ${fallthroughValue}));
- `}},"./node_modules/.pnpm/@babel+template@7.20.7/node_modules/@babel/template/lib/builder.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function createTemplateBuilder(formatter,defaultOpts){const templateFnCache=new WeakMap,templateAstCache=new WeakMap,cachedOpts=defaultOpts||(0,_options.validate)(null);return Object.assign(((tpl,...args)=>{if("string"==typeof tpl){if(args.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,_string.default)(formatter,tpl,(0,_options.merge)(cachedOpts,(0,_options.validate)(args[0]))))}if(Ar
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQEMA5aRv0EAA/2mAQgAhkrGuBuOyelzOPxogevHql/oUOK8xyElJjOOMSLMlW2N
SN8/6+ztv/10PvXPU13FPZQE4kaAV4//cGo6A5VIKxeJ8Ro4zwpmgqqY4oto+TzF
Mf8wdx+1kEnL/k6V5LH7TqdJT/2YGeILhmb9l7hG+sUrppTW2eVfqjXuFYLGId6W
ZhXeIkJB6cAbcnSG7TTBcspp+DVZo+mbh0FroPesg1yf1xQBzGXlbR1zil2zSO50
M6mVlay5z+mM4njTUEzxssETUdaozLdfgHllEOklRu9TbqCzSzhbakjBoh9Wj6sk
vtp1GSOj9ueV2LIDhRwunwYsmce5iSJdHfCLSUd8VdLAAgEcZhx77bLrk2WDIEVp
3KYdu6xZG3tAXnNqfxYDRbR+cqSpOljjAFUAHLaVrRKjDbeTWxKwrFPC2hMNpRtv
@tessro
tessro / keybase.md
Created June 10, 2015 05:44
My Keybase proof

Keybase proof

I hereby claim:

  • I am paulrosania on github.
  • I am paulrosania (https://keybase.io/paulrosania) on keybase.
  • I have a public key whose fingerprint is C0F3 B98E 2BAE 7A94 9EEA D41B AEA5 1EFB 705D C9A5

To claim this, I am signing this object:

@tessro
tessro / kill-slow-queries.sh
Created June 6, 2012 18:51
A script for killing slow MySQL queries, suited for a cron job
#!/bin/sh
# Credentials for a MySQL user with PROCESS, SUPER permissions
USERNAME=
PASSWORD=
# MySQL Server location
HOST=127.0.0.1
PORT=3306
#!/usr/bin/env ruby
#
# gzsplit - split a file into gzipped pieces
filename = ARGV[0]
prefix = ARGV[1] || "part"
line_number = 0
chunk_size = 500_000
next_part_number = 0
gzip = nil
@tessro
tessro / gist:2153849
Created March 21, 2012 22:41
configure `hub` using the OS X keychain
export GITHUB_USER=$(security find-generic-password -s github.token | grep acct | cut -d= -f2 | tr -d \")
export GITHUB_TOKEN=$(security find-generic-password -gs github.token 2>&1 >/dev/null | cut -d\ -f2 | tr -d \")
---
BUNDLE_PATH: vendor/bundle
BUNDLE_BUILD__MYSQL: --with-mysql-config=/usr/local/mysql/bin/mysql_config
---
BUNDLE_DISABLE_SHARED_GEMS: "1"
#!/bin/sh
# setup-xp.sh - Install and configure IE Application Compatibility images in VirtualBox
#
# Some parts from: http://www.peculier.com/blog/create-ie-vbox.html
## Prerequisites:
#
# - VirtualBox 4.0+
# - unrar (`brew install unrar`)
# - 7zip (`brew install 7zip`)
@tessro
tessro / gist:1515117
Created December 23, 2011 19:15 — forked from arnorhs/gist:1509904
gitopen - Open all files from a git diff or show command
#!/bin/bash
# This script will open all files from a git diff or a git show in vim.
# My bash skills are a bit primitive so this can probably be done more intelligently
# Usage:
# gitopen -- opens all added files that have changed since HEAD
# gitopen diff HEAD -- these are the default parameters
# gitopen diff master -- opens files that have changed from master