Skip to content

Instantly share code, notes, and snippets.

@commonquail
commonquail / dapt.sh
Created January 5, 2014 14:01
Setup Debian D development evironment. Installs Sayol's D APT repository (http://d-apt.sourceforge.net/) and prompts to install compilers and DUB.
#!/bin/bash
# Setup a D development environment on a Debian system.
# Installs the D APT repository and prompts to install compilers DMD, LDC, and
# GDC, and package manager DUB.
# Licence: MIT/Expat.
daptsrc=http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list
daptlist=/etc/apt/sources.list.d/d-apt.list
wget ${daptsrc} -O ${daptlist}
@commonquail
commonquail / ubuntu-with-cinnamon.md
Last active February 7, 2016 12:37
Ubuntu with Cinnamon

Installation

Disable the Unity overlay scrollbar, which causes rendering issues in Cinnamon:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

Install Cinnamon from moorkaï's PPA:

#!/bin/bash
set -o errexit
# Neovim
sudo add-apt-repository --yes ppa:neovim-ppa/unstable
# Git
sudo add-apt-repository --yes ppa:pdoes/ppa
sudo apt-get update
@commonquail
commonquail / driver-irql-not-less-or-equal.md
Last active May 20, 2017 13:46
Troubleshooting DRIVER_IRQL_NOT_LESS_OR_EQUAL(L1C63x64.sys) on Windows 10

DRIVER_IRQL_NOT_LESS_OR_EQUAL is a famous Blue Screen of Death error, often caused by a bad driver somewhere. The Internet is awash with reports of variants of this error.

This particular variant, L1C63x64.sys, was an occasional occurrence for me on Windows 7, but seemingly only while torrenting.

Upgrading to Windows 10 turned the error from occasional to frequent within the first few days,

@commonquail
commonquail / README.md
Created October 14, 2017 07:17
Patch Git repo with diff between non-repo

Given two directories, one a Git repository and the other not, how do you apply the recursive diff between those two directories as a patch to the Git repository?

This might happen if you download source code without its history and make changes to it, then later acquire the history and wanting to secure your changes.

The easy way ...

@commonquail
commonquail / Makefile
Last active April 22, 2018 00:36
Evaluate, generate intermediate code, and compile to native Common Lisp with sbcl
src=foo.lisp
obj=$(src:.lisp=.fasl)
bin=foo
.SUFFIXES:
.PHONY: eval
eval:
sbcl --noinform --load $(basename $(src)) --eval '(main)' --eval '(exit)' \
2>/dev/null
@commonquail
commonquail / .gitignore
Created January 12, 2019 18:13 — forked from stuart-marks/ReadFileJavaApplicationBufferedReader7.java
Processing Large Files in Java, Variation 7
*.class
indiv18.zip
itcont.txt
sample.txt
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
@commonquail
commonquail / git-restore-branches.sh
Created April 29, 2015 08:13
Restores the branchnames of all merged branches between two revisions
#!/bin/bash
#
# Restores the branchnames of all merged branches
# between two revisions,
# and prints them to stdout.
#
# If the end revision is omitted it defaults to HEAD.
#
# If a branchname already exists,
# it is not moved,