Skip to content

Instantly share code, notes, and snippets.

View dtpeters's full-sized avatar

Daniel Peters dtpeters

View GitHub Profile
@dtpeters
dtpeters / kernel-dev.md
Created August 14, 2021 20:38 — forked from vegard/kernel-dev.md
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

class Helpers {
constructor() {
this.cvt_buf = new ArrayBuffer(8);
this.cvt_f64a = new Float64Array(this.cvt_buf);
this.cvt_u64a = new BigUint64Array(this.cvt_buf);
this.cvt_u32a = new Uint32Array(this.cvt_buf);
}
ftoi(f) {
@dtpeters
dtpeters / rlwrap_sbcl.md
Created May 24, 2017 23:12 — forked from spchamp/rlwrap_sbcl.md
Create an rlwrap wrapper for SBCL

Create an rlwrap wrapper for SBCL

Create the file /usr/local/bin/rlsbcl with such as the following contents

#!/bin/sh
CMD="${SBCL_HOME:-/usr/bin}/sbcl"
exec rlwrap -q '"' -m -O '^\*\>' "${CMD}" "$@"
@dtpeters
dtpeters / .stumpwmrc
Created January 19, 2017 07:52 — forked from dmb2/.stumpwmrc
Bill Zimmerly's stumpwmrc
;;;; -*- Mode: Lisp -*-
;; 20130620 (WBZ) This version of my .stumpwmrc is the culmination
;; of several days of study, experimentation, and asking of help
;; from others. (Beginning on 20130609.)
;;
;; This file is called "~/bin/stump/my.stumpwmrc" and is symbolically
;; linked as follows:
;;
;; $ cd; ln -s ~/bin/stump/my.stumpwmrc .stumpwmrc
@dtpeters
dtpeters / .stumpwmrc
Created January 19, 2017 07:52 — forked from dmb2/.stumpwmrc
My Stumpwmrc
;; -*-lisp-*-
;; .stumpwmrc
;; Author: David Bjergaard <dbjergaard@gmail.com>
;; License: GPL
;; Modeled off of gwern's stumpwmrc file at: http:en.wikipedia.org/wiki/User:Gwern/.stumpwmrc
(in-package :stumpwm)
;(load "/home/dave/builds/stumpwm/contrib/surfraw.lisp")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
post-receive#!/bin/sh
###
# This file will deploy code from the repository into the
# specified web-root.
#
# File name: post-receive
#
# Instructions:
# 1. Uncomment and edit the lines below as needed
@dtpeters
dtpeters / app.py
Created February 25, 2014 04:55 — forked from leplatrem/app.py
import simplejson
from flask import Flask, g, request
from couchdb.design import ViewDefinition
import flaskext.couchdb
app = Flask(__name__)
"""
CouchDB permanent view
@dtpeters
dtpeters / python-pep8.el
Created April 24, 2012 19:13 — forked from ieure/python-pep8.el
Run pep8.py on Python source in Emacs.
;;; python-pep8.el --- minor mode for running `pep8'
;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com>
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01
@dtpeters
dtpeters / python-pylint.el
Created April 24, 2012 19:12 — forked from ieure/python-pylint.el
Run pylint on Python source in Emacs.
;;; python-pylint.el --- minor mode for running `pylint'
;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com>
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01