Skip to content

Instantly share code, notes, and snippets.

Typical rails setup with docker+puma+nginx+postgres

Zaid Annas

Devsinc inc. 30/08/2018

Overview

@tykurtz
tykurtz / grokking_to_leetcode.md
Last active October 26, 2025 04:21
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@digikar99
digikar99 / lisp-resources-digikar-2020.md
Last active January 29, 2025 06:24
If programming is more than just a means of getting things done for you, then Common Lisp is for you!
@evilcel3ri
evilcel3ri / init.vim
Last active December 1, 2021 15:15
nvim configuration
let mapleader=","
call plug#begin()
set rtp+=~/.fzf
" colorschemes
Plug 'ayu-theme/ayu-vim'
" syntax helpers
Plug 'jparise/vim-graphql'
# Readline has a bunch of special-case bindings just for vi mode, which means we
# can't just add Kakoune-style bindings; instead, we must build Kakoune-style
# bindings from combinations of other (usually emacs-based) commands. BUT
# Readline doesn't support binding a key to a sequence of commands; instead,
# we bind commands to a likely-unused portion of the keymap, and then bind
# our actual keys to sequences of those unusual keys.
"\C-a\C-xm": set-mark
"\C-a\C-xh": backward-char
"\C-a\C-xl": forward-char
"\C-a\C-xw": forward-word

Uninstall brew package and dependencies

Remove package's dependencies (does not remove package):

brew deps [FORMULA] | xargs brew remove --ignore-dependencies

Remove package:

@jojonas
jojonas / st2vim_themes.py
Last active January 27, 2025 17:45
Converter for Sublime Text themes to VIM themes
from __future__ import print_function
import sys
import argparse
import os.path
import textwrap
import re
from pprint import pprint
import xml.etree.ElementTree as ET
@simonista
simonista / .vimrc
Last active October 14, 2025 13:04
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@flixr
flixr / .zshrc
Created December 12, 2011 16:50
zsh config file
# .zshrc
# (copyleft) 2012 by Felix Ruess
#
# ---[ System settings ]------------------------------------------------
limit -s coredumpsize 0
umask 0027