Skip to content

Instantly share code, notes, and snippets.

View MrXcitement's full-sized avatar

Mike Barker MrXcitement

View GitHub Profile
@MrXcitement
MrXcitement / .vimrc
Last active October 31, 2024 21:52
vimrc minimal
" .vimrc --- A minimal vim configuration
" Mike Barker
" Created: October 31st, 2024
" Updated:
syntax on
filetype indent on
set autoindent
set backspace=2
set expandtab
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat << EOF # remove the space between << and EOF, this is due to web plugin issue
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@MrXcitement
MrXcitement / .vimrc
Created April 6, 2022 15:18
vimrc minnie
set hls ic is nu noswf

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@MrXcitement
MrXcitement / README-Template.md
Created April 12, 2021 17:48 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rem winrm-restore.cmd
@rem Restore the default WinRM settings for the local computer
@rem Mike Barker <mike@thebarkers.com>
@rem March 13th, 2017
winrm invoke restore winrm/config @{}
@MrXcitement
MrXcitement / rename_vm.sh
Created September 15, 2016 16:37 — forked from skunkie/rename_vm.sh
Shell script to rename a virtual machine in VMware ESXi
#!/bin/sh
# shell script to rename a virtual machine in ESXi
VOLNAME=$1
DIRNAME=$2
OLDNAME=$3
NEWNAME=$4
VM_DIRPATH="/vmfs/volumes/$VOLNAME/$DIRNAME"
f_OK() {
@MrXcitement
MrXcitement / boxstandard.txt
Last active August 29, 2015 14:19
My statndard boxstarter config
Set-ExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Enable-RemoteDesktop
cinst google-chrome-64
cinst 7zip
cinst atom
cinst sysinternals
cinst dropbox
cinst googledrive
@MrXcitement
MrXcitement / shellista.py
Created February 8, 2013 01:42 — forked from pudquick/shellista.py
Advanced shell for Pythonista
import os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip
# You can skip over reading this class, if you like.
# It's an implementation of mine of the bash parser in pure python
# This has advantages over shlex, glob, and shlex->glob in that it expects
# the strings to represent files from the start.
class BetterParser:
def __init__(self):
self.env_vars = {"$HOME": os.path.expanduser('~')}