Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Girshovich dangirsh

View GitHub Profile
View gist:e7bda85b8c4c56cafd7e2cfa5f19e8a6
### Keybase proof
I hereby claim:
* I am dangirsh on github.
* I am dangirsh (https://keybase.io/dangirsh) on keybase.
* I have a public key ASAS9-Ssxj4KgJIXm4J4EJ7emqR_A5j0Q4-ygqy3oxVMNwo
To claim this, I am signing this object:
@dangirsh
dangirsh / key-chord-map.el
Created May 22, 2020
Combine key-chord.el with key maps to have many quick bindings in non-modal settings
View key-chord-map.el
(defun add-to-keymap (keymap bindings)
(dolist (binding bindings)
(define-key keymap (kbd (car binding)) (cdr binding))))
(defun add-to-dk-keymap (bindings)
(add-to-keymap dk-keymap bindings))
;; Example usage with dk and sl
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View install.sh
#!/bin/bash
#######################################
# Graphite Install
# Run with sudo for best results
#
#######################################
if [[ "$(/usr/bin/whoami)" != "root" ]]; then
echo "This script must be run as root or using sudo.Script aborted."
exit 1
You can’t perform that action at this time.