Install fonts:
- Bitstream Vera
- Noto Color Emoji
We set these fonts as the fallbacks, bitstream has the normal characters, Noto has the emoji
We don't want DejaVu to be used as a fallback, as this has overriding emoji
source ~/.vimrc | |
# IdeaVim config | |
sethandler <C-2> a:ide | |
sethandler <C-S-2> a:ide | |
sethandler <C-6> a:ide | |
sethandler <C-S-6> a:ide | |
sethandler <C-A> a:ide | |
sethandler <C-B> a:ide | |
sethandler <C-C> a:ide |
# Yay package manager | |
yay -Sc | |
# Yarn package manager | |
yarn cache clean | |
# Composer package manager | |
composer clear-cache |
const gpio = require('rpi-gpio') | |
const gpiop = gpio.promise | |
const { HueApi, lightState } = require('node-hue-api') | |
const hue = new HueApi('##IP##', '##USERNAME##') | |
const lights = { | |
bedroom: 1, | |
bathroom: 2, | |
lounge: 3, | |
loungeLamp: 4 |
git config --global alias.f "fetch --all -p" | |
git config --global alias.b "branch" | |
git config --global alias.ba "branch -a" | |
git config --global alias.m "merge --no-ff" | |
git config --global pager.branch false |
# Run this script from RPi | |
# curl -sS https://gist.github.com/joestrong/a65464a7bb2a44d6950eb613cce8d23c/raw/14dbdf6960b92c2034b96012f802c5f12bf054e8/setup.sh | bash - | |
# Config | |
cat <<EOF > ~/.vimrc | |
set nocompatible | |
set number | |
:inoremap jj <ESC> | |
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab | |
:set backspace=indent,eol,start |
Install fonts:
We set these fonts as the fallbacks, bitstream has the normal characters, Noto has the emoji
We don't want DejaVu to be used as a fallback, as this has overriding emoji
How to boot straight to application, with auto-login, and fluxbox as a window manager
apt-get install xorg-server xinit fluxbox
/etc/systemd/system/getty.target.wants/[email protected]
and add your username to ExecStart like ExecStart=-/sbin/agetty -a <user name> %I $TERM
.profile
: [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
exec /usr/bin/startfluxbox
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
apm develop <package_name> | |
cd ~/.atom/dev/packages/<package_name> | |
atom -d |
var gpsd = require('node-gpsd'); | |
var gpsData = null; | |
var gpsListener = new gpsd.Listener({ | |
port: 2947, | |
hostname: 'localhost' | |
}); | |
function startGPS () { |