Skip to content

Instantly share code, notes, and snippets.

View markcam1's full-sized avatar

Cam markcam1

  • Oakland, California
View GitHub Profile
@markcam1
markcam1 / dockertoolboox_windows.md
Last active June 11, 2021 10:36
Install Docker Toolbox on Windows 10 Home edition and mounting volume

Docker toolbox | Windows 10 Home | installation and mounting volume

Check that your system has Virtualization enabled.

  • Enter your machine's bios and enable the virtualization

bios

@markcam1
markcam1 / .bash_profile
Last active November 28, 2018 19:35
Git Bash Terminal configurations to see
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='${debian_chroot:+($debian_chroot)}\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;36m\]\w \[\033[1;35m\]$(parse_git_branch) \[\033[1;33m\]\$ \[\033[0m\]'
@markcam1
markcam1 / cpp_notes.md
Last active January 8, 2019 04:37
c++ notes

Visual Studio Notes

Put the following statement before the return 0 in main.

system("pause");

This will cause the window to remain open until you hit any key.

@markcam1
markcam1 / .gitconfig
Created December 13, 2018 05:56
git config
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = markcam1
email = 32405690+markcam1@users.noreply.github.com
[push]
default = upstream
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
# Enable tab completion
source ~/.git-completion.bash
# colors!
green="\[\033[0;32m\]"
cyan="\[\033[0;36m\]"
purple="\[\033[0;35m\]"
reset="\[\033[0m\]"
# Change command prompt
alias subl='"C:\Program Files\Sublime Text 3\subl.exe"'
alias np='start notepad++'
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
@markcam1
markcam1 / virtualBox_screen.md
Last active December 14, 2018 05:00
virtualbox and linux distro distorted screen

Virtualbox and linux distro distorted screen

If you see a pixelated and distorted screen when starting a linux machine via Oracle vm virtual box

  • Press CtrlAltF3 to switch to text terminal
  • then CtrlAltF7 to switch back to GUI
@markcam1
markcam1 / vscode_extensions.md
Last active December 18, 2018 03:39
VS Code extensions
  1. Create list of extensions. code --list-extensions > code_extensions.md

  2. Move from one machine to another. copy and paste the echo output to machine B code --list-extensions | xargs -L 1 echo code --install-extension

  3. Share and sync extensions

My extensions as of 16 Dec 2018

@markcam1
markcam1 / git_MergeDiff.md
Created December 17, 2018 22:34
Git for Windows Merge and Diff Tool

Configuring Git Merge tool and Diff tool

A few options are listed below with some outside resources if valuable.

Beyond Compare 4

git config --global difftool.bc.path "c:/program files/beyond compare 4/bcomp.exe"
git config --global mergetool.bc.path "c:/program files/beyond compare 4/bcomp.exe"

Configuring Beyond Compare with Git