Skip to content

Instantly share code, notes, and snippets.

View CyberAstronaut101's full-sized avatar
🎆

Elliot Mason CyberAstronaut101

🎆
View GitHub Profile
@CyberAstronaut101
CyberAstronaut101 / DiscreteMathTips.md
Last active February 12, 2019 01:44
Discrete Math First Test 'Solving Tips'

Section 1.1

■ To verify that two sets A and B are equal, written A = B, show that for every x, if x ∈ A, then x ∈ B, and if x ∈ B, then x ∈ A.

■ To verify that two sets A and B are not equal, written A ≠ B, find at least one element that is in A but not in B, or find at least one element that is in B but not in A. One or the other conditions sufces; you need not (and may not be able to) show both conditions.

■ To verify that A is a subset of B, written A ⊆ B, show that for every x, if x ∈ A,

@CyberAstronaut101
CyberAstronaut101 / turing_scripts.md
Last active February 14, 2019 01:16
Scripts on Turing

To see where the shell will look for binaries to execute: echo $PATH. You should see that the first entry is /home/yourADusername/bin

This means that anything you place in your ~/bin folder that is also executable will be executed.

Here are a few scripts that make working on turing quicker:

/home/ejmason/bin/myproc

this script will run ps -aefl --forest .... every second

@CyberAstronaut101
CyberAstronaut101 / createTOC.js
Created May 19, 2019 04:06
Markdown TOC generator
/*
* Quck Node.js script to create the TOC for a *.md markdown file
*/
var Remarkable = require('remarkable')
var toc = require('markdown-toc')
var fs = require('fs')
function render(str, options) {
return new Remarkable()
.use(toc.plugin(options)) // register plugin
@CyberAstronaut101
CyberAstronaut101 / Packer.json
Last active July 30, 2019 15:19
Packer file.managed no attribute 'path' LOG
{
"builders": [
{
"type": "googlecompute",
"project_id": "",
"network_project_id": "",
"network": "",
"subnetwork": "",
"omit_external_ip": "false",
"use_internal_ip": "true",
>>>eNpjYBBgMGZgYGBm5mFJzk/MYWVh5UrOLyhILdLNL0oF8jiTi0pT
UnXzM0FSbCmpxalFJczMzCwpmWCaKzUvNbdSNymxOBXIY00vSiwuBjI
4Movy86AmsBQn5qWAJItL8vNAAqwlRampIFXcpUWJeZmluVCFDIyC/f
NkG1rkGED4fz2Dwf//IAxkXQA6EYRBLmVgBArAAGtyTmZaGgNDgwsDg
4IjIyNjtcg694dVU+wZIfJ6DlDGB6hIxG6oyINWKCNiNZTRcRjKcJgP
Y9TDGP0OjMZg8NkewYDYVQI0GWoJhwOCAZFsAUkyMva+3brg+7ELdox
/Vn685JuUYM+YKRvqK1D63g4oyQ7UwMgEJ2bNBIGdMB8wwMx8YA+Vum
nPePYMCLyxZ2QF6RABEQ4WQOKANzB4BPiArAU9QEJBhgHmNDuYMSIOj
Glg8A3mk8cwxmV7dH+oODDagAyXAxEnQATYQrjLGKHMSAeIhCRCFqjV
iAHZ+hSE507CbDyMZDWaG1RgbjBxwOIFNBEVpIDnAtmTAideMMMdAQz
@CyberAstronaut101
CyberAstronaut101 / customtheme.zsh-theme
Created August 9, 2019 20:42
custom oh-my-zsh theme
source /home/masonel/.oh-my-zsh/scripts/kube-ps1.sh
LINE_DIVIDER_='$FG[237]${(l.COLUMNS..-.)}'
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}} %{$reset_color%}"
# Grab the current machine name
CURRENT_MACH_="%{$FG[154]%}%m%{$fg[white]%} %{$reset_color%}"
# Define Custom Color Variables
========================================================
ipconfig /all
========================================================
Windows IP Configuration
Host Name . . . . . . . . . . . . : csce-2020-062
Primary Dns Suffix . . . . . . . : uark.edu
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
========================================================
net user
========================================================
User accounts for \\CSCE-2020-062
-------------------------------------------------------------------------------
Administrator DefaultAccount Guest
ineg-admin WDAGUtilityAccount
The command completed successfully.
========================================================
systeminfo
========================================================
Host Name: CSCE-2020-062
OS Name: Microsoft Windows 10 Enterprise LTSC
OS Version: 10.0.17763 N/A Build 17763
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
::==========================================================
:: Elliot Mason - Computer Forensics - Lab 02
:: Computer Information Collection Script
::==========================================================
:: Set script variables here
@echo off
SET seperator=========================================================
SET SystemInfo="System_Info.txt"