Skip to content

Instantly share code, notes, and snippets.

View richardbowden's full-sized avatar

Richard Bowden richardbowden

  • Western Australia
View GitHub Profile
@WilliamBundy
WilliamBundy / _vimrc
Created November 1, 2017 19:25
Will's vimrc as of 11/1/17
set nocompatible
behave mswin
filetype plugin indent on
call plug#begin('C:/Vim/vimfiles/bundle')
Plug 'raymond-w-ko/vim-lua-indent'
Plug 'tomasr/molokai'
Plug 'tpope/vim-surround'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'craigemery/vim-autotag'
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active January 21, 2025 00:39
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@drewolson
drewolson / reflection.go
Last active November 21, 2024 15:11
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
<?xml version='1.0'?>
<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
<signatures version='0.9'>
<enum name='iTunesEKndAlbumListing' value='1799449698'/>
<enum name='iTunesEKndCdInsert' value='1799570537'/>
<enum name='iTunesEKndTrackListing' value='1800696427'/>
<enum name='iTunesEPlSFastForwarding' value='1800426310'/>
<enum name='iTunesEPlSPaused' value='1800426352'/>
<enum name='iTunesEPlSPlaying' value='1800426320'/>
<enum name='iTunesEPlSRewinding' value='1800426322'/>