Skip to content

Instantly share code, notes, and snippets.

View mr-sudaca's full-sized avatar

Jhon Quintero mr-sudaca

View GitHub Profile
@mr-sudaca
mr-sudaca / cleanup_swap.md
Created October 19, 2025 23:57 — forked from anildigital/cleanup_swap.md
Cleanup swap space on macOS

To see current swap usage

sysctl -a | grep swap

Use only when when your system is in a very bad shape

$ sudo pkill -HUP -u _windowserver 

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@mr-sudaca
mr-sudaca / Makefile
Created February 16, 2015 22:58 — forked from tonyseek/Makefile
monaco for powerline
PATCHED_FILENAME = "Monaco for Powerline.ttf"
$(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd
fontforge -script fontpatcher.py Monaco.ttf
@echo "(´・_・`) You can install the $(PATCHED_FILENAME) now."
Monaco.ttf: Monaco.dfont
fondu Monaco.dfont
rm *.bdf