Skip to content

Instantly share code, notes, and snippets.

View markcam1's full-sized avatar

Cam markcam1

  • Oakland, California
View GitHub Profile
@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 / 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 / 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 / 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 / Code_example.js
Created February 28, 2019 18:44
Google App Scripts | Sheets Tutorial | example.com
/*
Google App Scripts - Sheets Tutorial
Author: Mark Cameron
*/
function showMessageBox() {
Browser.msgBox('You touched me!');
getWebsite();
}
@markcam1
markcam1 / Code_dummyData.js
Created February 28, 2019 18:54
Google App Scripts | Sheets Tutorial | dummy data
/*
Google App Scripts - Sheets Tutorial
Author: Mark Cameron
*/
function showMessageBox() {
Browser.msgBox('You touched me!');
getWebsite();
}
@markcam1
markcam1 / Code_aerobatic.js
Created February 28, 2019 19:57
Google App Scripts | Sheets Tutorial | aerobatic auth
/*
Google App Scripts - Sheets Tutorial
Author: Mark Cameron
*/
function showMessageBox() {
Browser.msgBox('You touched me!');
getWebsite();
}
@markcam1
markcam1 / Code_placeholder.js
Created February 28, 2019 20:40
Google App Scripts | Sheets Tutorial | json placeholder
/*
Google App Scripts - Sheets Tutorial
Author: Mark Cameron
*/
function showMessageBox() {
Browser.msgBox('You touched me!');
getWebsite();
}
@markcam1
markcam1 / dowloadWithAuth.py
Created April 24, 2019 23:30
Python: download website with basic auth and simple json parsing
import requests
import json
import logging
import getpass
#logging config:
logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s')
logging.debug('Start of program')
@markcam1
markcam1 / simpleDownload.sh
Last active June 6, 2019 16:29
simple website download script with SHELL
#!/bin/sh
# Mark Cameron: shell script to download website
printf "starting script ...\n\n"
#Variable for file name
FILE=downloaded_site.txt
#Variable for website location
URL=http://example.com