Skip to content

Instantly share code, notes, and snippets.

View yankcrime's full-sized avatar
🤠
┬──┬◡ノ(° -°ノ)

Nick Jones yankcrime

🤠
┬──┬◡ノ(° -°ノ)
View GitHub Profile
@yankcrime
yankcrime / .bashrc
Last active April 14, 2020 17:24
MVP bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
set -o vi
" minimal++ .vimrc
"
" filetype detection and syntax highlighting
filetype plugin indent on
syntax on
" it's there so let's activate it
runtime macros/matchit.vim
" various settings
@yankcrime
yankcrime / inventory
Last active July 30, 2018 11:05
ceph-ansible inventory for testing
# vi: set ts=2 sts=2 sw=2 et ft=yaml :
all:
vars:
# Config that could be applied in group_vars/all.yml
# vars config could also be applied in group_vars/all.yml
ceph_origin: repository
ceph_repository: community
ceph_stable_release: mimic
cephx: true
monitor_interface: "eth0"
@yankcrime
yankcrime / network_interfaces
Created July 10, 2018 07:14
inventory/group_vars/controllers/network-interfaces
---
###############################################################################
# Network interface definitions for the controller group.
# Controllers have four physical Ethernet interfaces:
# ens785f0 & ens785f1: 1G, unused.
# eno1 & eno2: 10G, bonded.
# We create VLAN subinterfaces on the bond interface for the required VLANs.

Craft file selinux.spec with:

Summary: Dummy package for selinux-policy-base
Name: selinux-policy-base
Version: 0
Release: 0
License: Public
Group:  System Environment/Base
Provides: selinux-policy-base
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Plain</string>
@yankcrime
yankcrime / keybindings.json
Created February 21, 2018 11:09
VSCode Keybindings
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+1", "command": "workbench.action.focusFirstEditorGroup" },
{ "key": "ctrl+2", "command": "workbench.action.focusSecondEditorGroup" },
{ "key": "ctrl+3", "command": "workbench.action.focusThirdEditorGroup" },
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
@yankcrime
yankcrime / Dockerfile
Last active September 5, 2019 09:04
Dockerfile for neomutt
# Dockerfile for NeoMutt plus 'essentials'
# Largely inspired by Jess Frazelle (@jessfraz)
#
FROM alpine:3.6
RUN apk --no-cache add \
ca-certificates
ENV HOME /home/user
RUN adduser -u 1000 -D user \
@yankcrime
yankcrime / .vimrc
Last active July 2, 2024 10:45
MVP .vimrc, pilfered from @romainl
" filetype support
filetype plugin indent on
syntax on
" because it's there
runtime macros/matchit.vim
" various settings
set autoindent
set backspace=indent,eol,start
@yankcrime
yankcrime / .tmux.conf
Last active June 25, 2018 09:16
MVP tmux.conf
# use control+a as a prefix like screen
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
unbind %
bind | split-window -h
bind - split-window -v
bind-key space next-window