Skip to content

Instantly share code, notes, and snippets.

@isido
isido / gist:3ff6f251f98f3736fee6
Created June 6, 2014 09:00
CentOS: after update, check which processes use old libs.
lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u
var min = [ 1024, 7000, 512];
var max = [ 1024, 1000000, 2048];
var pri = [ 1024, 7000, 512];
var fac = new Array(3);
var free_space = 35000;
for (var i = 0; i < min.length; ++i) {
fac[i] = pri[i] - min[i];
}
@isido
isido / .emacs
Created January 23, 2014 12:10
Emacs configuration at work
(add-to-list 'load-path "/usr/local/Cellar/ledger/2.6.3/share/emacs")
(require 'ledger)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-default-init nil)
'(inhibit-startup-screen t))
(custom-set-faces
You Are A:
Neutral Good Elf Wizard (5th Level)
Ability Scores:
Strength- 14
Dexterity- 11