Skip to content

Instantly share code, notes, and snippets.

View tessro's full-sized avatar

Tess Rosania tessro

View GitHub Profile
@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 \")
#!/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 / 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
@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:

-----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 / 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/@[email protected]/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