Skip to content

Instantly share code, notes, and snippets.

@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
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
org_name = ARGV[0]
unless org_name
abort "Usage #{$0} org_name"
end
@anildigital
anildigital / cleanup_swap.md
Last active June 28, 2024 12:55
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