Skip to content

Instantly share code, notes, and snippets.

View parchment's full-sized avatar

Victor Parchment parchment

View GitHub Profile
@parchment
parchment / doom.txt
Created July 30, 2022 10:37 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@parchment
parchment / Monokai Neue.terminal
Last active February 23, 2022 17:38
Monokai colourscheme for a macOS terminal.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR
EhMUFRZcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29s
b3JTcGFjZVYkY2xhc3NPECgwLjE2MTEwNjAyMDIgMC4xNzE5NjczODcyIDAuMjAwMDAz
@parchment
parchment / bootstrap.sh
Created April 23, 2020 08:26
Dotfile Installer
#!/bin/bash
echo -n "Install homebrew and fish shell (y/n)? " && read answer
if [ "$answer" != "${answer#[Yy]}" ] ; then
sudo apt-get install build-essential curl file git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install fish
sudo echo /home/linuxbrew/.linuxbrew/bin/fish | sudo tee -a /etc/shells
chsh -s /home/linuxbrew/.linuxbrew/bin/fish
echo 'set PATH homebrew /home/linuxbrew/.linuxbrew/bin $PATH' > $HOME/.config/fish/config.fish
@parchment
parchment / .profile
Last active June 27, 2020 10:52
Profile Configuration
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Set Time Zone to London
TZ='Europe/London'; export TZ
@parchment
parchment / .bashrc
Last active April 24, 2020 09:20
Bash Configuration
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@parchment
parchment / rc.conf
Created April 22, 2020 21:32
Ranger Configuration
# ===================================================================
# This file contains the default startup commands for ranger.
# To change them, it is recommended to create either /etc/ranger/rc.conf
# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom
# commands there.
#
# If you copy this whole file there, you may want to set the environment
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
#
# The purpose of this file is mainly to define keybindings and settings.
@parchment
parchment / .vimrc
Last active June 27, 2020 12:31
Vim Configuration
set autoread " reload on external file changes
set backspace=indent,eol,start " backspace behaviour
set clipboard=unnamed,unnamedplus " enable clipboard
set encoding=utf8 " enable utf8 support
set hidden " hide buffers, don't close
set mouse=a " enable mouse support
set wrap
set textwidth=80
set number " show line numbers
@parchment
parchment / one.py
Created April 22, 2020 18:49
One Dark (Ranger)
# This file is part of ranger, the console file manager.
# License: GNU GPL version 3, see the file "AUTHORS" for details.
from __future__ import (absolute_import, division, print_function)
from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import (
black, blue, cyan, green, magenta, red, white, yellow, default,
normal, bold, reverse, dim, BRIGHT,
default_colors,
@parchment
parchment / config.fish
Created April 22, 2020 18:48
Fish Shell Configuration
### PATH ###
set PATH homebrew /home/linuxbrew/.linuxbrew/bin $PATH
### ALIASES ###
alias c clear
alias r ranger
alias .. 'cd ..'
alias ... 'cd ../..'
alias .... 'cd ../../..'
alias ..... 'cd ../../../..'
@parchment
parchment / fish_variables
Created April 22, 2020 18:47
Fish Variables
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3100
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:61AFEF
SETUVAR fish_color_comment:990000
SETUVAR fish_color_cwd:61AFEF
SETUVAR fish_color_cwd_root:FF6188
SETUVAR fish_color_end:009900