Skip to content

Instantly share code, notes, and snippets.

Avatar

Priyadarshan priyadarshan

  • Vasudeva Server #1
  • Jamaica, Queens, New York
View GitHub Profile
@priyadarshan
priyadarshan / words
Created Aug 1, 2020 — forked from wchargin/words
/usr/share/dict/words
View words
This file has been truncated, but you can view the full file.
A
A's
AA's
AB's
ABM's
AC's
ACTH's
AI's
AIDS's
View ini.lisp
(ql:quickload "cl-ppcre")
(ql:quickload "anaphora")
(defpackage :ini-parser
(:use :common-lisp :anaphora)
(:export :read-config-from-file))
(in-package :ini-parser)
(defparameter +empty-line+ (format nil "~%"))
@priyadarshan
priyadarshan / ntfs-filenames.txt
Created Feb 11, 2020 — forked from doctaphred/ntfs-filenames.txt
Invalid characters for Windows filenames
View ntfs-filenames.txt
Information from https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx :
Use any character in the current code page for a name, including Unicode
characters and characters in the extended character set (128–255), except
for the following:
- The following reserved characters:
< (less than)
> (greater than)
@priyadarshan
priyadarshan / shell-script
Created Feb 11, 2020 — forked from doctaphred/shell-script
How to start every shell script, since I can never remember
View shell-script
#!/bin/sh -euvx
# -e If non interactive then exit immediately if a command fails.
# -u Treat unset variables as an error when substituting.
# -v Print shell input lines as they are read.
# -x Print commands and their arguments as they are executed.
@priyadarshan
priyadarshan / README.md
Last active Jan 3, 2020
Install WSL/Debian and tools
View README.md

To select Debian as default distro:

wslconfig /s debian
View scoop-bucket-list.txt
> scoop bucket list
Ash258
extras
java
main
nonportable
rasa
z-dodorz
@priyadarshan
priyadarshan / braille-pixels.lisp
Created Nov 17, 2019 — forked from Goheeca/braille-pixels.lisp
Braille pixels images using cl-charms (@ SBCL)
View braille-pixels.lisp
#!/usr/bin/sbcl --script
#|
Usage
=====
$ ./braille-pixels.lisp [path]
Main
====
@priyadarshan
priyadarshan / threads.lisp
Created Nov 17, 2019 — forked from Goheeca/threads.lisp
Bordeaux Threads test
View threads.lisp
(require :asdf)
(require :bordeaux-threads)
(defun color-formatter (color)
(format nil "~a[~am~~?~a[m" #\Esc color #\Esc)) ; The formatter function wants a simple-string.
(defun message (color i thread)
(let ((color-format (color-formatter color))
(thread-name (bt:thread-name thread)))
(format t "~&Hello for the ~? time from the ~? thread.~%"
@priyadarshan
priyadarshan / ob-powershell.el
Created Oct 22, 2019 — forked from cbilson/ob-powershell.el
Rough draft: execute poweshell from emacs src blocks
View ob-powershell.el
;;; ob-powershell.el --- org-babel functions for powershell evaluation
;; Authors: Chris Bilson
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org
;;; Commentary:
;; Org-Babel support for evaluating powershell source code.
@priyadarshan
priyadarshan / eshell.org
Created Aug 28, 2019 — forked from ralt/eshell.org
my eshell config
View eshell.org

Eshell

eshell is the shell I’ve tried using over time, and in the end just never stick with it. Let’s try one more time with a couple of tricks. The first tricks are mostly documentation:

  • M-& in a tramp-aware session means you run commands in a new buffer, without a TTY. Great for things like tailf.
  • for ncurses-like applications, “visual commands” is the missing context. Applications like top are in the default list by default,
You can’t perform that action at this time.