Skip to content

Instantly share code, notes, and snippets.

brianblakely / blue-owl-edit.omp.json
Last active February 10, 2023 22:29
Oh My Posh Config
"$schema": "",
"blocks": [
"alignment": "left",
"segments": [
"background": "#a313a8",
"foreground": "#FFEB3B",
"style": "plain",
brianblakely / config
Last active February 26, 2021 17:02
SSH Per-Domain Config
IdentitiesOnly yes
brianblakely / .bash_profile
Last active September 11, 2020 18:34
My Bash Prompt
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
brianblakely /
Last active December 23, 2019 17:25
Update or install VS Code on RHEL, Fedora, and CentOS based distributions.
echo 'Beginning Visual Studio Code update.'
sudo rpm --import
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=" > /etc/yum.repos.d/vscode.repo'
sudo dnf check-update
sudo dnf install code
brianblakely / 1_brocbab_pre-promise.js
Last active March 11, 2019 16:26
Broccoli Babel Plugin with and without Promises
// Unfinished - before throwing up hands and moving on to refactor
Babel.prototype.write = function(readTree, destDir) {
var self = this;
return readTree(self.inputTree).then(function(srcDir) {
var promise = new rsvp.Promise(function(resolve, reject) {
recreaddir(srcDir, function(err, files) {
brianblakely / es6_eli5.txt
Last active August 27, 2021 16:22
These short descriptions will familiarize you with new things in ES6,
quickly and simply.
A lot of details are ignored to aid this purpose. This content is only intended
as a starting point or brief refresher.
Most of the descriptions use pre-ES6 JavaScript as a frame of reference.
brianblakely / objectObserveDebugging.js
Last active August 29, 2015 14:07
Object.observe for JavaScript Debugging
// By observing changes to an object with Object.observe,
// and turning on Async Call Stacks in Chrome Dev Tools,
// you can find the source of those changes.
var myObject = {
foo: 'bar'
Object.observe(myObject, function(changes) {
// This asynchronous callback runs when myObject is changed
brianblakely / rem-calibrate.css
Created July 13, 2012 18:55
Simulate vw with rems
/* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */
:root {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
-o-text-size-adjust: none;
text-size-adjust: none;
brianblakely / stars.css
Created June 21, 2012 20:47
Star Rules
* {
/* makes border and padding grow inward from width & height
- mix-and-match units for various box model properties
- ex. width: 25%; padding: 15px;
- no workie in IE7
-moz-box-sizing: border-box;
box-sizing: border-box;
/* hiding overflow creates a block formatting context
brianblakely / gist:2220593
Created March 27, 2012 21:40
Very Semantic Table
<caption>2009 Employee Sales by Department</caption>
<th scope="col">food</th>
<th scope="col">auto</th>
<th scope="col">household</th>
<th scope="col">furniture</th>
<th scope="col">kitchen</th>