Skip to content

Instantly share code, notes, and snippets.

View markcam1's full-sized avatar

Cam markcam1

  • Oakland, California
View GitHub Profile
@markcam1
markcam1 / Code_JiraProject.js
Last active February 28, 2019 18:43
Google App Scripts - Sheets Tutorial - Jira REST API
/*
Google App Scripts - Sheets Tutorial
Author: Mark Cameron
*/
function showMessageBox() {
Browser.msgBox('You touched me again!');
getWebsite();
}
@markcam1
markcam1 / schema_markup_generator.md
Last active February 10, 2019 02:43
Simple Schema generator

Schema Markup Generator

These are instructions to quickly create schema data on your website. Follow the instructions below to create *JSON-LD (JavaScript Object Notation - Linked Data).

Config

  1. Go to the technicalseo site;
  2. Select a type of markup from the dropdown list.

markup

@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

@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 / 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 / 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
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"
# 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
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# 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