Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@markstachowski
markstachowski / fish_shell.md
Created April 18, 2018 17:30 — forked from idleberg/fish_shell.md
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@markstachowski
markstachowski / Vagrantfile
Created April 21, 2018 11:09 — forked from tadas-s/Vagrantfile
Installing your personal dotfiles on each Vagrant VM you use
# Change this to suit your dotfiles setup and copy to your *HOST* machine: $HOME/.vagrant.d/Vagrantfile
Vagrant.configure(2) do |config|
# Mount your dotfiles to vagrant user's home folder (or wherever you want):
config.vm.synced_folder "#{ENV['HOME']}/dotfiles", '/home/vagrant/dotfiles'
# Install dotfiles on every 'vagrant provision' call.
# For example, let's imagine your your dotfiles have 'install.sh' script:
config.vm.provision 'shell', privileged: false, inline: '/home/vagrant/dotfiles/install.sh'
end
oIFS="$IFS" IFS="'\"" sudo grep menuentry /boot/efi/EFI/fedora/grub.cfg | \ while read ignore line ignoreb ; do echo "$line"|grep -ve ^\\$ -ve ^\- done IFS="$oIFS"
https://gist.githubusercontent.com/markstachowski/4483e48412eacb674bf98b3d1541bfea/raw/7c3a565467447e103e5f301b95187ed8dbc3a0b2/grub2
@markstachowski
markstachowski / README.markdown
Created April 30, 2018 08:19 — forked from terlar/README.markdown
ArchLinux on Mac Book Retina 13"
@markstachowski
markstachowski / gnuize.sh
Last active May 4, 2018 17:15 — forked from clayfreeman/gnuize.sh
GNU-ize Mac OS X El Capitan
#!/bin/bash
# Install required packages from Homebrew
brew tap homebrew/dupes
brew install coreutils binutils diffutils ed findutils gawk gnu-indent gnu-sed \
gnu-tar gnu-which gnutls grep gzip screen watch wdiff wget bash gdb gpatch \
m4 make nano file-formula git less openssh python rsync svn unzip vim \
--default-names --with-default-names --with-gettext --override-system-vi \
--override-system-vim --custom-system-icons
brew cleanup
@markstachowski
markstachowski / vmware-tools.md
Created May 18, 2018 11:35 — forked from brc/vmware-tools.md
Installing VMWare tools in Arch Linux

Install OEM VMwareTools

git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
curl -O https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/6.0.5/2209127/packages/com.vmware.fusion.tools.linux.zip.tar
for i in {0..6}; do sudo mkdir -pv /etc/init.d/rc${i}.d; done
sudo pacman -S net-utils
./untar-and-patch-and-compile.sh
@markstachowski
markstachowski / gist:4d6c7b6ef2c4ac3f70e5ffd5366fcca8
Created May 19, 2018 01:31 — forked from dotcomputercraft/gist:b7283bd52f4b5389e748
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
the best way (I've found) to completely uninstall node + npm is to do the following:
go to /usr/local/lib and delete any node and node_modules
go to /usr/local/include and delete any node and node_modules directory
if you installed with brew install node, then run brew uninstall node in your terminal
check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
go to /usr/local/bin and delete any node executable
You may need to do the additional instructions as well:
sudo rm /usr/local/bin/npm
@markstachowski
markstachowski / install_ffmpeg.sh
Created May 27, 2018 00:17 — forked from Piasy/install_ffmpeg.sh
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
@markstachowski
markstachowski / .bash_profile
Created June 11, 2018 05:00 — forked from jernejcic/.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