Skip to content

Instantly share code, notes, and snippets.

View jjaaccoobb's full-sized avatar

Jacob jjaaccoobb

  • 18:42 (UTC -07:00)
View GitHub Profile
jjaaccoobb /
Created July 22, 2020 22:41
Import bash history into zsh history format
while read -r line; do echo ": $(date +%s):0;$line"; done < .bash_history > .bash_history_to_zsh_history
jjaaccoobb / init.lua
Created March 11, 2020 19:46
System-wide shortcut/global hotkey for alacritty terminal using Hammerspoon
hs.hotkey.bind({"ctrl"}, "space", function()
local app = hs.application.get("kitty")
if app then
if not app:mainWindow() then
app:selectMenuItem({"kitty", "New OS window"})
elseif app:isFrontmost() then
jjaaccoobb / .gitconfig
Last active March 8, 2020 05:13
Curl me to add git's aliases which should be included by default: co/checkout, br/branch ci/commit st/status to .gitconfig
git config --global checkout ; git config --global branch ; git config --global commit ; git config --global status
jjaaccoobb /
Created February 2, 2020 22:00
Shell script snippet to watch filesize increases in realtime
watch -n 0.1 du -s lookingatu.txt
jjaaccoobb / reddit-comments.js
Last active February 2, 2020 22:07
Node script to recursively fetch a user's comments until done or API quota exceeded
const fetch = require('node-fetch');
const cheerio = require('cheerio');
(async () => {
let nextPage = '';
let pageNo = 1;
while (nextPage) {
const response = await fetch(nextPage);
const body = await response.text();
jjaaccoobb /
Created October 27, 2019 05:43 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


jjaaccoobb /
Last active July 17, 2019 18:55
Disable editor window's font antialiasing for VS Code (MacOS)

Disable Antialias for only the editor window in VS Code

This is useful for when you want to use a bitmap font (e.g. Terminus) for the editor, while keeping workbench font antialiased.

Edit stylesheet

vim /Applications/Visual\ Studio\

The classname for the editor already exists in the stylesheet. Add the following declaration to it at the top of the file.

curl -s 2>&1 | sed '1,11d' | sed '/^$/q' | sed -z 's/\n[[:space:]]//g' | sed 's/ */ /g' > bayshows.txt

Keybase proof

I hereby claim:

  • I am jjaaccoobb on github.
  • I am jabopper ( on keybase.
  • I have a public key ASC-k17oT5J_0YsgzFYvLpdv07QE4x8fggFSWUPdHvUL1go

To claim this, I am signing this object: