Skip to content

Instantly share code, notes, and snippets.

View ejmg's full-sized avatar
💾

ejmg ejmg

💾
View GitHub Profile
pay no attention to this
@ejmg
ejmg / bash-BNF-grammar.txt
Last active October 28, 2018 21:46
don't ask
<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 October 13, 2018 18:40
"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.
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 43
---
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 September 12, 2018 06:02
how to hack nice footnotes into github flavored markdown using manual html superscripts and github's built in hyperlinks for backreferences.

wutang clan ain't nothing to frick with1

[1]:suuuuuuuu

@ejmg
ejmg / a2dp.py
Created April 29, 2018 04:39 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /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 April 11, 2018 03:13 — 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)
// 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 March 11, 2018 01:48
My wiki submission for CS441: Programming Languages
@ejmg
ejmg / he-warned-every-single-one-of-us.txt
Created November 1, 2017 13:27
html placeholder friendly version of Baudrillard's seminal non-fiction work of how we all will achieve utopian happiness via technology
"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 October 19, 2017 23:37
how to put two figures, side by side proportionally, in a latex file
\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]