Skip to content

Instantly share code, notes, and snippets.

View jjaaccoobb's full-sized avatar
💭
Nmu?

Jacob jjaaccoobb

💭
Nmu?
  • 18:42 (UTC -07:00)
View GitHub Profile
@jjaaccoobb
jjaaccoobb / bash_history_to_zsh_history.sh
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
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
app:hide()
else
app:activate()
end
@jjaaccoobb
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 alias.co checkout ; git config --global alias.br branch ; git config --global alias.ci commit ; git config --global alias.st status
@jjaaccoobb
jjaaccoobb / watchfilesize-snippet.sh
Created February 2, 2020 22:00
Shell script snippet to watch filesize increases in realtime
watch -n 0.1 du -s lookingatu.txt
@jjaaccoobb
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 = 'https://old.reddit.com/user/fbiciansa.gov';
let pageNo = 1;
while (nextPage) {
const response = await fetch(nextPage);
const body = await response.text();
@jjaaccoobb
jjaaccoobb / README-Template.md
Created October 27, 2019 05:43 — forked from PurpleBooth/README-Template.md
A template to make good README.md

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.

Prerequisites

@jjaaccoobb
jjaaccoobb / gist.md
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\ Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.css

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

curl -s http://jon.luini.com/thelist/thelist.txt 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 (https://keybase.io/jabopper) on keybase.
  • I have a public key ASC-k17oT5J_0YsgzFYvLpdv07QE4x8fggFSWUPdHvUL1go

To claim this, I am signing this object: