Skip to content

Instantly share code, notes, and snippets.

View jamesramsay's full-sized avatar
🚀

James Ramsay jamesramsay

🚀
View GitHub Profile
[
{
"name": "SofleKeyboard",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 2,
[
{
"name": "SofleKeyboard",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 3,
@jamesramsay
jamesramsay / example.rb
Created July 17, 2020 03:15 — forked from mislav/example.rb
Dump objects into YAML using specific style
full_data = {
response: {body: StyledYAML.literal(DATA.read), status: 200},
person: StyledYAML.inline('name' => 'Steve', 'age' => 24),
array: StyledYAML.inline(%w[ apples bananas oranges ])
}
StyledYAML.dump full_data, $stdout
__END__
{
@jamesramsay
jamesramsay / init.d.homebridge.sh
Created April 22, 2020 06:01 — forked from gregwym/init.d.homebridge.sh
Homebridge init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: homebridge
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Description: HomeKit support for the impatient
### END INIT INFO
# -*- coding: utf-8 -*-
@jamesramsay
jamesramsay / Pandoc
Last active June 4, 2018 00:37 — forked from schmurfy/gist:3199254
Pandoc install for converting Pandoc to TeX to PDF
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
# Install tufte-latex and dependencies
$ tlmgr install tufte-latex
$ tlmgr install changepage
$ tlmgr install paralist
$ tlmgr install titlesec