Skip to content

Instantly share code, notes, and snippets.

View crab.txt
pay no attention to this
View bash-BNF-grammar.txt
<letter> ::= a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|
A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z
<digit> ::= 0|1|2|3|4|5|6|7|8|9
<number> ::= <digit>
| <number> <digit>
<word> ::= <letter>
| <word> <letter>
@ejmg
ejmg / how-to-manage-dot-files-with-only-git-atlassian.md
Created Oct 13, 2018
"The best way to store your dotfiles: A bare Git repository" tutorial ripped directly from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo for posterity and because I haven't documented it my org file yet and I don't want to lose it.
View how-to-manage-dot-files-with-only-git-atlassian.md
---
link: null
title: The best way to store your dotfiles: A bare Git repository
description: Recently I read about this amazing technique in an Hacker News thread on people's solutions to store their dotfiles. User StreakyCobra showed his elegant setup and ... It made so much sense! I am in the process of switching my own system to the same technique. The only pre-requisite is to install Git.
keywords: null
author: null
date: null
publisher: Atlassian Developers
stats: paragraph=37 sentences=63, words=860
---
@ejmg
ejmg / footnotes.md
Last active Sep 12, 2018
how to hack nice footnotes into github flavored markdown using manual html superscripts and github's built in hyperlinks for backreferences.
View footnotes.md

wutang clan ain't nothing to frick with1

[1]:suuuuuuuu

@ejmg
ejmg / a2dp.py
Created Apr 29, 2018 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
View a2dp.py
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
@ejmg
ejmg / unfavorite.js
Created Apr 11, 2018 — forked from ashander/unfavorite.js
Delete all your favorites (unfavorite or unlike every tweet) on twitter.com (thx to @JamieMason and @b44rd for inspiring this)
View unfavorite.js
// 1. Go to https://twitter.com/i/likes
// 2. Keep scrolling to the bottom repeatedly until all your favs are loaded.
// 3. Run this in your console (open in chrome by View > Developer > JavaScript Console)
// Notes: this may take a while if you have a lot of favs/likes
// you can only access your most recent ~2000 likes.
// inspired by https://gist.github.com/JamieMason/7580315
$('.ProfileTweet-actionButtonUndo').click()
@ejmg
ejmg / R-Wiki.md
Last active Mar 11, 2018
My wiki submission for CS441: Programming Languages
@ejmg
ejmg / he-warned-every-single-one-of-us.txt
Created Nov 1, 2017
html placeholder friendly version of Baudrillard's seminal non-fiction work of how we all will achieve utopian happiness via technology
View he-warned-every-single-one-of-us.txt
"Everything begain with objects, yet there is no longer a system of objects. The critique of objects was based on signs saturated with meaning, along with their phantasies and unconscious logic as well as their prestigious differential logic. Behind this dual logic lies the anthropological dream: the dream of the object as existing beyond and above exchange and use, above and beyond equivalence; the dream of a sacrificial logic, of gift, expenditure, potlatch, &quotdevil's share&quot consumption, symbolic exchange.1
All this still exists, and simultaneously it is disappearing. The description of this projective imaginary and symbolic universe was still the one of the obect as the mirror of the subject. The opposition of the subject and the object was still significant, as was the profound imaginary of the mirror and the scene.2 The scene of history as well as the scene of the everyday emerge in the shadow of history as it is progressively divested of po
@ejmg
ejmg / two-figures.tex
Created Oct 19, 2017
how to put two figures, side by side proportionally, in a latex file
View two-figures.tex
\usepackage{multirow,array}
\usepackage{floatrow}
% in combination with floatrow for properly adjusted figures, placeins ensures said figures appear
% where they are declared within the latex code, i.e. in subsection Part I of this paper. For proper
% usage with subsections, MUST use \FloatBarrier command after done with a figure
\usepackage[section]{placeins}
% ensures captions are properly centered under their respective figures
\usepackage[justification=centering]{caption}
% special command for table captions
\newfloatcommand{capbtabbox}{table}[][\FBwidth]