Skip to content

Instantly share code, notes, and snippets.

@MJ111
MJ111 / .vimrc
Created March 7, 2019 14:32 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@MJ111
MJ111 / .bash_profile
Created February 28, 2019 00:11 — forked from stephenll/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
@MJ111
MJ111 / .bash_profile
Created February 27, 2019 14:38 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@MJ111
MJ111 / removeBOM.sh
Last active August 9, 2017 06:10 — forked from akost/convert.sh
Bash script for recursive utf-8 byte order mark removal
#!/bin/bash
# Recursive utf-8 byte order mark removal
# https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -o -name "*.sass" -type f |
while read file