Skip to content

Instantly share code, notes, and snippets.

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

Nick Jones yankcrime

🤠
┬──┬◡ノ(° -°ノ)
View GitHub Profile
@yankcrime
yankcrime / zaphod.ps1
Last active March 23, 2021 12:59
Boxstarter config for Zaphod
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
# OR
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#
@yankcrime
yankcrime / Dockerfile
Created October 19, 2017 22:16
Dockerfile for network booting ARM64 machines
FROM ubuntu:xenial
ENV ARCH arm64
ENV DIST xenial
ENV MIRROR http://ports.ubuntu.com
RUN apt-get -q update
RUN apt-get -qy install dnsmasq iptables curl
RUN curl -o /pipework https://raw.githubusercontent.com/jpetazzo/pipework/master/pipework
RUN chmod +x pipework
RUN mkdir /tftp
WORKDIR /tftp
@yankcrime
yankcrime / win10vm.ps1
Last active September 7, 2022 04:42
Boxstarter configuration for Windows 10 Virtual Machines
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
# OR
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#
@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
@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 / 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 / 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" },
<?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>

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
@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.