Skip to content

Instantly share code, notes, and snippets.

View bitjockey42's full-sized avatar
🤓
Forever a nerd.

Al Julian bitjockey42

🤓
Forever a nerd.
View GitHub Profile
@bitjockey42
bitjockey42 / moment.css
Last active October 23, 2017 08:35 — forked from Goom11/moment.css
Custom CSS file for Moment Firefox plugin
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 100;
src: url(https://github.com/theleagueof/raleway/raw/master/webfonts/raleway_thin-webfont.ttf) format('truetype');
}
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 300;
@bitjockey42
bitjockey42 / extend.sh
Last active April 11, 2017 08:10 — forked from wvengen/extend.sh
Extend non-HiDPI external display above HiDPI internal display
#!/bin/sh
# extend non-HiDPI external display on DP* above HiDPI internal display eDP*
# see also https://wiki.archlinux.org/index.php/HiDPI
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1`
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1`
ext_w=`xrandr | sed 's/^'"${EXT}"' [^0-9]* \([0-9]\+\)x.*$/\1/p;d'`
@bitjockey42
bitjockey42 / 00_OSX_Docker_Machine_Setup.md
Last active November 9, 2020 13:49 — forked from andystanton/Start up local Docker Machine on OSX automatically.md
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.

Requirements

# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: AJ <astrohckr@gmail.com>
# Credit: based on .screenrc-main-example by Christian Wills - cwills.sys@gmail.com
# Auto-detach on hangup
autodetach on
# Allow bold colors - necessary for some reason
attrcolor b ".I"