Skip to content

Instantly share code, notes, and snippets.

View markcam1's full-sized avatar

Cam markcam1

  • Oakland, California
View GitHub Profile
@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 / .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
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 / 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

@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 / powershell.md
Created January 5, 2019 01:40
Add Powershell to rightclick menu | Windows

Add Powershell to right-click menu

  • Open RegEdit
  1. Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
  2. Computer\HKEY_CLASSES_ROOT\Directory\shell\Powershell
  • Right-click on the menu it, choose permissions
  • Permissions > Advanced
  • Owner: change to you
  • CHECK: Replace owner on subcontainers
@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 / network.md
Created January 8, 2019 17:50
home wifi and networking commands

Home Wifi and Networking commands

Investigate network and IP configurations

IP Config

ipconfig /all

Show all ARP entries in the table; it won't show everything unless it has them stored in the tables so so machines won't be shown but it does do a pretty good list