Skip to content

Instantly share code, notes, and snippets.

View jonasagx's full-sized avatar
🧘

Jonas Xavier jonasagx

🧘
  • Cambia Health
  • Portland, OR
View GitHub Profile
@getaaron
getaaron / irs-get-human.md
Created April 1, 2024 23:01
Get a person at the IRS
  • Call 1-800-829-1040
  • Press 1 for English (or other language as desired)
  • Press 2 for personal tax
  • Press 1 for form / tax history
  • Press 3 for other
  • Press 2 for other
  • Ignore 2 SSN prompts till you get secret other menu
  • Press 2 for personal tax
  • Press 3 for other
  • Wait for agent!
@andreasottosson
andreasottosson / enable_key_repeat_sublime.md
Last active August 30, 2022 17:34
Enable key repeat in macOS for Sublime Text in Vim mode

How-To

Paste the command in your macOS terminal, then restart Sublime Text.

For Sublime Text 3

defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

For Sublime Text 4

defaults write com.sublimetext.4 ApplePressAndHoldEnabled -bool false

go mod edit -module {NEW_MODULE_NAME}
-- rename all imported module
find . -type f -name '*.go' \
-exec sed -i -e 's,{OLD_MODULE},{NEW_MODULE},g' {} \;
@mikroskeem
mikroskeem / gccemacs_osx.md
Last active July 7, 2024 09:37
gccemacs on OSX

gccemacs on OS X

Read this first: http://akrl.sdf.org/gccemacs.html

Prerequisites

1) GCC with libgccjit enabled

For that you need to compile gcc (duh). I edited Homebrew's gcc formula:

@munificent
munificent / generate.c
Last active May 14, 2024 05:30
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@huytd
huytd / base16-ocean-mono.vim
Created June 7, 2017 23:09
Monochrome Vim Theme
" base16-vim (https://github.com/chriskempson/base16-vim)
" by Chris Kempson (http://chriskempson.com)
" Ocean scheme by Chris Kempson (http://chriskempson.com)
" This enables the coresponding base16-shell script to run so that
" :colorscheme works in terminals supported by base16-shell scripts
" User must set this variable in .vimrc
" let g:base16_shell_path=base16-builder/output/shell/
if !has('gui_running')
if exists("g:base16_shell_path")
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@bhrott
bhrott / osx-disabling-gpg-for-commits.sh
Created February 11, 2017 22:49
OSX: disabling gpg for commits
!#/bin/bash
git config --global commit.gpgsign false
$ mkdir venv
$ cd venv
$ virtualenv 3.4 -p $(which python3) --system-site-packages
$ cd ~
$ source ~/venv/3.4/bin/activate
$ mkdir projects
$ cd projects
$ git clone https://jonasagx@github.com/wiki-ai/revscoring
$ cd revscoring
$ python -m nltk.downloader stopwords