Skip to content

Instantly share code, notes, and snippets.

@anildigital
anildigital / cleanup_swap.md
Last active November 13, 2024 21:57
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 
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
org_name = ARGV[0]
unless org_name
abort "Usage #{$0} org_name"
end
@judofyr
judofyr / fun.rb
Created August 1, 2012 14:25 — forked from andkerosine/fun.rb
class Symbol
def | other
-> arg { other.to_proc[arg.send(self)] }
end
def call(*args)
-> arg { arg.send(self, *args) }
end
end