Skip to content

Instantly share code, notes, and snippets.

View marioepugh's full-sized avatar

marioepugh marioepugh

View GitHub Profile
@marioepugh
marioepugh / image.gallery.R
Created September 1, 2017 23:25 — forked from flodel/image.gallery.R
Basic Craigslist API
#!/bin/bash
# Script: My First Bash Script
# Author: Mario Pugh
# Date of latest revision: 7/27/2020
# Purpose: Output System Information
# Declare variables
uname="uname --a"
#!/bin/bash
# Script: Grep and piping
# Author: Mario Pugh
# Date of latest revision: 7/28/2020
# Purpose: Manipulate output
# Declare variables
grep=grep
#!/bin/bash
# Script: Code a virus
# Author: Mario Pugh
# Date of latest revision: 7/29/2020
# Purpose: A virus that replicates it>
# Declare variables
counter=1
filenameDuplicated=$0
#!/bin/bash
# Script: System Performance Indicator
# Author: Mario Pugh
# Date of latest revision: 7/30/2020
# Purpose: Data Report generation and added to txt file
# Declare variable:
report_displayed="Data Report Generated"
#!/bin/bash
# Script: Automated backup
# Author: Mario Pugh
# Date of latest revision: 7/31/2020
# Purpose: Create a new file, in a new directory and back up file.
# Declare variable:
new_file="Backed up file"
# Script Name: powershellCPUinfo.ps1
# Author: Mario Pugh
# Date of last revision: 8/3/2020
# Purpose: A Powershell script that retrieves information about computer
# Declare variables
$CPUinfo = "System parameters"
# Declare functions
# Script Name: powershellManagement.ps1
# Author: Mario Pugh
# Date of last revision: 8/5/2020
# Purpose: A Powershell script that retrieves information from Event Log
# Declare variables
# Get all event logs from past 24 hours, output to last_24.txt
Get-EventLog Application -After (Get-Date).Addhours(-24) > last_24.txt
# Script Name: systemProcessCommands.ps1
# Author: Mario Pugh
# Date of last revision: 8/6/2020
# Purpose: A Powershell script that retrieves information from Task Manager
# Descriptor of each assignment component
# 1. Print to the terminal screen all active processes ordered by highest CPU time consumption at the top.
Get-Process | Sort CPU -Descending | Select -First 5 -Property ID,ProcessName,CPU
# Script Name: IPv4Getter.ps1
# Author: Mario Pugh
# Date of last revision: 8/10/2020
# Purpose: Powershell IP Analysis Output
# Declaration of variables
$IPv4 = "network_report.txt"
# Declaration of functions
Function infoGetter