Posts

Showing posts with the label terminal

Plan 9 : The Infinity Notebook

Image
  Plan 9 is an Operating System (OS) from Bell Labs which is a successor to UNIX. It builds on the learnings from the previous Operating systems. Network computing and graphics is an integral part of the OS rather than an afterthought. It is modular and portable - it comes with a cross compiler . It is available, under MIT License , which anybody can use, learn and tweak. Features Everything is a file. Singular Grid: All the computers running Plan 9 OS and connected together act like a singular grid. So there's no need for remote access solutions like VNC or RDP. This cool video shows a small glimpse of the possibilities. Process Isolation: Processes run within their own namespaces and are isolated from each other. So you can run rio (the window manager) within rio. Applications like Browsers don't need complicated sandboxing. And a crashing program is unlikely to bring down the OS. No DLL Hell : Binaries are always statically linked. So there's no DLL hell and there...

Git graph in GNU Emacs

Image
  Get a decent view of git tree in GNU Emacs (M-x magit-pg-repo ). By default, it draws the graph with last 100 commits. If you want a different behaviour, edit the following constant. (defconst magit-pg-command   (concat "git --no-pager log --branches --decorate=full "           "--pretty=format:\"%H%x00%P%x00%an%x00%ar%x00%s%x00%d\" "           " -n 100 ")   "The command used to fill the raw output buffer.")     If you want to use the script in terminal ( temacs -batch -l $PWD/magit-pretty-graph.el -f magit-pg-repo ), add the following path (adjust for versions) to the top of the script and uncomment line 238. (setq path '("~/.emacs.d/elpa/magit-20220603.1738/"          "~/.emacs.d/elpa/compat-28.1.1.1/"          "~/.emacs.d/elpa/dash-20220602.2113/"          "~/.ema...