Skip to content

Instantly share code, notes, and snippets.

View NickCrew's full-sized avatar

Nick Ferguson NickCrew

View GitHub Profile
@NickCrew
NickCrew / preseed.cfg
Created December 1, 2018 16:23
Ubuntu 18.04 Preseed
# Ubuntu 18.04 preseed config
# Larry Smith Jr.
# @mrlesmithjr
# http://everythingshouldbevirtual.com
### Localization
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
@NickCrew
NickCrew / .vimrc
Created October 26, 2018 21:21
.vimrc for Windows
call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'mbbill/undotree'
Plug 'unblevable/quick-scope'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'chriskempson/base16-vim'
Plug 'jremmen/vim-ripgrep'
Plug 'ervandew/supertab'
call plug#end()
@NickCrew
NickCrew / settings.json
Last active February 14, 2019 17:02
vscode config
{
"powershell.codeFormatting.openBraceOnSameLine": false,
"powershell.codeFormatting.newLineAfterCloseBrace": false,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.ignoreOneLineBlock": false,
"powershell.codeFormatting.preset": "Custom",
@NickCrew
NickCrew / live-snap.sh
Created August 22, 2018 17:58
Libvirt Live Snapshot with Block Commit
#!/bin/bash
#
# Take an external snapshot with virsh using live block commit feature
#
# Usage: ./snap domain-name backup-destination prune_lvl(integer)
#
# Creates log collection directory in backup-destination
#
# PRUNE_LVL variable determines how many snapshots will be kept for each
# domain. 4 is the default.