Skip to content

Instantly share code, notes, and snippets.

View jcburley's full-sized avatar

James Craig Burley jcburley

View GitHub Profile
@jogo3000
jogo3000 / my-disable-mouse.el
Created December 6, 2020 06:28
Temporarily disables mouse when I'm typing
;; Disable mouse on typing
(defvar jogo3000/mouse-disabled nil)
(use-package disable-mouse)
(defun jogo3000/disable-mouse ()
"Disable mouse."
(setq jogo3000/mouse-disabled t)
(global-disable-mouse-mode t))
(defun jogo3000/enable-mouse ()
@benjiqq
benjiqq / joker_commits.joke
Last active June 22, 2020 11:17
joker commits
(ns github
(:require
[joker.http :as h]
[joker.json :as j]))
(defonce url "https://api.github.com/repos/candid82/joker/commits")
(defn get-commits
[]
(j/read-string (:body (joker.http/send {:url url}))))
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@hmason
hmason / test.sh
Created August 21, 2012 22:01
Did you know that bash will reload a script *while it is executing*?!
#!/bin/bash
function addnext {
NUM=$1
sleep 1
echo HI $NUM
NUM=$(expr $NUM + 1)
echo addnext $NUM >> $0
}