Skip to content

Instantly share code, notes, and snippets.

@jhlb
jhlb / init.el
Created March 8, 2018 15:55
init.el march 8, 2018
;; JHL Emacs Configuration 2018-03-08
;; confirm before exit
(setq confirm-kill-emacs 'y-or-n-p)
;; Remove GUI
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
;; JHL Emacs Configuration 2016-02-20
;; Remove GUI
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
;; Simplify Startup
(modify-frame-parameters nil '((wait-for-wm . nil)))
(setq inhibit-startup-message t)
;; JHL Emacs Configuration 2015-03-05
;; Remove GUI
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
;; Simplify Startup
(modify-frame-parameters nil '((wait-for-wm . nil)))
(setq inhibit-startup-message t)
;; get rid of menu bar, scroll, etc.
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
; Inconsolata.
; requires ~/.fonts/Inconsolata.otf
(set-default-font "-unknown-Inconsolata-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")
(add-to-list 'default-frame-alist '(font . "-unknown-Inconsolata-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1"))
@jhlb
jhlb / progbar.py
Last active April 19, 2023 20:03
progbar.py : Print current position in file versus file length.
#!/bin/env python
import sys, os
USAGE="""
./progbar.py PROCESS_ID [FILE_DESCRIPTOR_NUMBER]
Usage:
./progbar.py PROCESS_ID
#!/usr/bin/python
import sys, os
USAGE="""progbar.py PROCESS_ID [FILE_DESCRIPTOR_NUMBER]
Usage:
progbar.py PROCESS_ID
Prints all file descriptor numbers along with the location of