Skip to content

Instantly share code, notes, and snippets.

View CyberAstronaut101's full-sized avatar
🎆

Elliot Mason CyberAstronaut101

🎆
View GitHub Profile
@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",
@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 / 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 / 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,