Skip to content

Instantly share code, notes, and snippets.

View jlouiss's full-sized avatar

Jean jlouiss

View GitHub Profile
@jlouiss
jlouiss / lisp-web-server.lsp
Created July 15, 2020 17:16
Credit: Land of Lisp
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; version 2 of the License.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; Partial Author: Conrad Barski, M.D.
@jlouiss
jlouiss / lisp-html-server.lsp
Created July 15, 2020 17:04
Credit: Practical Common Lisp
(in-package :com.gigamonkeys.url-function)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; API
(defmacro define-url-function (name (request &rest params) &body body)
(with-gensyms (entity)
(let ((params (mapcar #'normalize-param params)))
`(progn
(defun ,name (,request ,entity)
@jlouiss
jlouiss / lisp-simple-database.lsp
Created July 15, 2020 16:52
Credit: Practical Common Lisp
(in-package :com.gigamonkeys.simple-db)
(defvar *db* nil)
(defun make-cd (title artist rating ripped)
(list :title title :artist artist :rating rating :ripped ripped))
(defun add-record (cd) (push cd *db*))
(defun dump-db ()
(print "Hello world")
(defun factorial (n)
(if (= n 0) 1
(* n (factorial (- n 1)))))
https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-343655365
[ugjka@archee ~]$ cat /etc/fonts/conf.d/50-noto-color-emoji.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family">
@jlouiss
jlouiss / fix-infinality.md
Created September 15, 2018 15:44 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@jlouiss
jlouiss / pok3r-notes.md
Created April 9, 2018 07:14
Pok3r notes

Pok3r Notes

  • enable the third dipswitch after setting custom bindings
  • FN + R doesn't work with the third dipswitch turned off