Skip to content

Instantly share code, notes, and snippets.

View dleslie's full-sized avatar

Dan Leslie dleslie

View GitHub Profile
@dleslie
dleslie / oka.md
Last active March 6, 2018 16:10
Oka and Guns

/u/canadianscofflaw

The Oka Crisis showed that an armed population can stand up to our Government and prevail. Whether or not you agree with the Mohawks, the fact remains that the golf course was not built and the conflict greatly reshaped how the Federal Government involves itself in native issues. Further reading.

/u/metameanderer

I understand where you're coming from, but was the Oka crisis really that representative of what happens if an armed populace rose up? If it was the case presented it would have been put down pretty quickly as the military would have rolled over the territory.

If we were talking about the whole population I might disagree, but if there had been a "full blown uprising" the military could have put it down rather quickly. The iconic picture would never have happened as the

pacman -S mingw-w64-x86_64-toolchain ruby python3 openssh mingw-w64-x86_64-allegro mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_gfx mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-SDL2_ttf wget curl emacs
@dleslie
dleslie / identifiers.txt
Created April 4, 2017 22:18
wget -r -H -nc -np -nH --cut-dirs=1 -A .mp3 -e robots=off -l1 -B 'https://archive.org/download/' -i ./identifiers.txt
07CBCRadio3PodcastEpisode7
101101WizardSCouncil
102102SaskatoonSecret
103103PedalPower
104104YachtRock
105105TheCanadianDictionarySpecial
106106LifeAfterDeath
107107PromDate
108108WestVanGirls
109109TwinPowerSummer
@dleslie
dleslie / gist:2c8d2e5a463672fbb822
Created December 10, 2015 23:26
South Park Season 19
I loved season 19 of South Park. It ended about as well as I could have hoped.
For those wondering: no, the overall theme of this season was /not/ that
fighting for social justice is wrong. On the contrary, it affirmed that seeking
to improve society is a laudable goal. Where it drew a line was where it was
reasonable; the point at which one's belief in their own righteousness has
allowed them to overlook their own faults and poor behaviour.
IMHO, what South Park primarily attempted to convey is that something to be
concerned about is the manner in which media and advertising wields our concerns
@dleslie
dleslie / gist:6565d765fe0770833466
Created June 23, 2015 16:18
Function to manually trigger a revert of all buffers presently visiting a file
(defun revert-all-buffers ()
"Reverts all buffers that are visiting a file."
(interactive)
(mapcar
(lambda (buf)
(with-current-buffer buf
(when (buffer-file-name)
(revert-buffer t t t))))
(buffer-list)))
-*- mode: compilation; default-directory: "~/Workspace/code/dleslie/monad-egg/" -*-
Compilation started at Sat May 2 07:59:56
chicken-install -test
retrieving ...
checking platform for `monad' ...
checking dependencies for `monad' ...
mapped (srfi-1 srfi-1) to ()
install order:
("monad")
-*- mode: compilation; default-directory: "~/Workspace/code/dleslie/monad-egg/" -*-
Compilation started at Sat May 2 07:58:01
chicken-install -test
retrieving ...
checking platform for `monad' ...
checking dependencies for `monad' ...
mapped (srfi-1 srfi-1) to ()
install order:
("monad")
(defun override-theme (arg)
"Disables all enabled themes and then loads the provided theme."
(interactive
(list
(intern (completing-read "Load custom theme: "
(mapcar 'symbol-name (custom-available-themes))))))
(while custom-enabled-themes
(disable-theme (car custom-enabled-themes)))
(load-theme arg t))
@dleslie
dleslie / gist:fa2f8f32e9a5b5e2acec
Created October 15, 2014 00:55
glxinfo for i915
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
git config --global alias.lg "log --color --graph --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"