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 / qt-hidpi.sh
Created May 21, 2016 22:07
For QT5 apps in Ubuntu that don't use 5.6
# /etc/profile.d/qt-hidpi.sh
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_DEVICE_PIXEL_RATIO=2
@bitjockey42
bitjockey42 / 3 finger drag in Linux with xf86-input-mtrack.markdown
Last active October 9, 2016 03:03
Put this as /etc/X11/xorg.conf.d/50-mtrack.conf

Missing your 3-finger window drag from OS X in Linux?

Fear not, for this fork of xf86-input-mtrack supports 3 finger drag.

You only need to add these lines to your /etc/X11/xorg.conf.d/50-mtrack.conf:

     Option "SwipeDistance" "1"
     Option "SwipeLeftButton" "1"
 Option "SwipeRightButton" "1"

Ubuntu 16.04

Overview

This gist is at 4a6d8c218817447357e7412128625292 Dual boot OS X 10.11 and Ubuntu 16.04.

Partition Layout

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 233.8G  0 disk 
├─sda1   8:1    0   200M  0 part /boot/efi
├─sda2   8:2    0    59G  0 part 
@bitjockey42
bitjockey42 / Ubuntu 16.04 systemd-boot.md
Last active September 25, 2019 10:07
Ubuntu 16.04 using systemd-boot instead of grubby

You do not need a separate /boot partition unless you have an LVM setup (used in dm-crypt setups).

Run ubiquity -b to open the installer with the option of skipping grub installation (since we're using systemd-boot).

When you get to the screen "Ubuntu has finished installation" choose Continue testing.

Open a Terminal.

Chroot into the new system.

// System
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
#include <assert.h>
@bitjockey42
bitjockey42 / Install dlite.markdown
Last active May 10, 2016 14:11
How to set up dlite (stable 1.1.5) on OS X El Capitan (10.11.4)

With homebrew

Install:

brew install dlite
sudo dlite install
dlite update -v 2.3.0
dlite start
#
# Lambda Mod
# A simple theme inspired by lambda from oh-my-zsh and lambda_mod from prezto
#
# Authors:
# AJ (0x414A) <aj@hckr.eml.cc>
# Halfo
# Nicolas A. Tonne <nixo@gmx.com>
#
# Lambda_Mod Authors:
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@bitjockey42
bitjockey42 / 00-Ubuntu 16.04 on Macbook Pro 10,1.markdown
Last active March 29, 2019 20:02
Ubuntu 16.04 configurations on Macbook Pro 10,1

Ubuntu 16.04 on Macbook Pro 10,1 with Encrypted Root

NOTE: This is for dual-booting OS X 10.11 with Ubuntu 16.04.

Install

Preparation in OS X

Resize OS X partition with Disk Utility.

@bitjockey42
bitjockey42 / .spacemacs
Last active November 16, 2016 11:41
My spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory