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 / 10-intel.conf
Created March 13, 2016 02:30
/etc/X11/xorg.d/10-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
@bitjockey42
bitjockey42 / 50-mtrack.conf
Created March 13, 2016 02:25
/etc/X11/xorg.d/50-mtrack.conf
Section "InputClass"
Identifier "touchpad"
Driver "mtrack"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "Sensitivity" "0.65"
Option "SwipeDistance" "1"
Option "SwipeLeftButton" "1"
Option "SwipeRightButton" "1"
Option "SwipeUpButton" "1"
@bitjockey42
bitjockey42 / PKGBUILD
Last active February 22, 2016 00:39
broadcom-wl-dkms [AUR] modified PKGBUILD because verification of www.broadcom.com fails with curl
# Maintainer: Andrey Vihrov <andrey.vihrov at gmail.com>
# Contributor: Frank Vanderham <twelve.eighty (at) gmail.>
pkgname=broadcom-wl-dkms
pkgver=6.30.223.271
pkgrel=4
pkgdesc="Broadcom 802.11 Linux STA wireless driver"
arch=('i686' 'x86_64')
url="https://www.broadcom.com/support/?gid=1"
license=('custom')
@bitjockey42
bitjockey42 / .profile
Last active January 16, 2016 07:36
Load docker-machine environment variables automatically
if [[ $(pgrep docker-machine-driver-xhyve) ]]; then
if [[ $(docker-machine status dev) == *"Running"* ]]; then
eval $(docker-machine env dev)
else
echo "It looks like docker-machine did not start correctly"
fi
else
echo "docker-machine dev is not running"
echo "try running: docker-machine start dev"
fi
@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'`
#!/usr/bin/env sh
# ranger supports enhanced previews. If the option "use_preview_script"
# is set to True and this file exists, this script will be called and its
# output is displayed in ranger. ANSI color codes are supported.
# NOTES: This script is considered a configuration file. If you upgrade
# ranger, it will be left untouched. (You must update it yourself.)
# Also, ranger disables STDIN here, so interactive scripts won't work properly
# Meanings of exit codes:
@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

@bitjockey42
bitjockey42 / install.md
Created August 7, 2015 19:40
Install SIP and PyQT4 (pyenv, pyenv-virtualenv)

Download

pyenv virtualenv

Switch to the Python version you want to use:

@bitjockey42
bitjockey42 / 00_before.png
Last active August 29, 2015 14:25
Vertex GTK theme fix for cinnamon windows
00_before.png
@bitjockey42
bitjockey42 / setup_emacs.sh
Last active August 29, 2015 14:24
crouton chroot
# For a pure cli install, no X11 requirement
sudo apt-get install gcc automake ncurses-dev libgnutls-dev libdbus-1-dev libgif-dev