Skip to content

Instantly share code, notes, and snippets.

View vu3rdd's full-sized avatar

Ramakrishnan Muthukrishnan vu3rdd

View GitHub Profile
@vu3rdd
vu3rdd / hex2ascii
Created February 28, 2014 10:58
hex to ascii
$ echo hello world| xxd -g 0
0000000: 68656c6c6f20776f726c640a hello world.
$ echo 68656c6c6f20776f726c640a | xxd -r -p -
hello world
@vu3rdd
vu3rdd / p9-and-port.txt
Last active April 22, 2018 16:57
plan9port links
A few plan9port (plan9 from userspace) links:
1. http://dikutal.dk/blog/jlouis/acme-editor
2. https://github.com/jlouis/plan9-setup
3. http://9fans.net/archive/2007/11/120 (Russ Cox's post about his setup. Jlouis's setup is based on this setup)
4. https://forums.freebsd.org/viewtopic.php?&t=29736 (Nice post of a guy with handle mvatten on his setup in FreeBSD. He uses rio as his window manager)
5. https://forums.freebsd.org/viewtopic.php?&t=25487 (Nice post by blstuart)
6. https://groups.google.com/forum/#!topic/comp.os.plan9/Q0SJTXv9PgE (Evoluent mouse)
7. https://groups.google.com/forum/#!topic/comp.os.plan9/MhOeFT0hkhs (9vx)
8. https://groups.google.com/forum/#!topic/comp.os.plan9/0tzNmiJF6Xg (sending/installing 9atom patches)
@vu3rdd
vu3rdd / plan9qemu.md
Last active August 29, 2015 13:56
plan9 on qemu
@vu3rdd
vu3rdd / go-plan9.md
Last active August 29, 2015 13:57
go on plan9 (bell labs)

Download binaries for Python and Hg:

% hget http://www.9legacy.org/download/cpython-386.mkfs.bz2 > cpython-386.mkfs.bz2

Unzip and Install it.

% bunzip2 cpython-386.mkfs.bz2

% disk/mkext -d / < cpython-386.mkfs

@vu3rdd
vu3rdd / acmenotes.md
Last active August 29, 2015 13:58
acme notes

Introduction

  • Mouse 1: select text
  • Mouse 2: execute commands
  • Mouse 3: plumb?

Select all text ":0,$" (without double quotes) and then Mouse 2 or ":," and Mouse 2.

pipe selection to external command:

@vu3rdd
vu3rdd / p9-faq.md
Last active August 29, 2015 14:01
Plan9/9atom questions
  1. How can the default font be changed?
  2. How to create a new user?
  3. How can I build my own kernel?
  4. How can I update the OS+applications?

replica/pull /dist/replica/network (to update from the network)

  1. How can I see the source code changes and why the changes were made (i.e. equivalent of hg/git log)?
  2. How can I build Python and Hg?
  3. How can I get Golang?
@vu3rdd
vu3rdd / papers-queue.md
Last active August 29, 2015 14:05
Papers in my current read queue
@vu3rdd
vu3rdd / foldTree.hs
Last active February 2, 2018 09:03
why-fp-matters
-- if you search for "why fp matters" on google, the first hit is this page
-- http://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf
-- Unfortunately it has some bugs on page 7 (foldtree function..). This
-- has been fixed by the author and republished here:
-- http://www.cse.chalmers.se/~rjmh/Papers/whyfp.pdf
foldTree f g a (Node label subtrees) = f label (foldTree' subtrees)
where foldTree' [] = a
foldTree' (subtree : subtrees) = g (foldTree f g a subtree)
(foldTree' subtrees)