Skip to content

Instantly share code, notes, and snippets.

View AJ-Acevedo's full-sized avatar
🤓
Studying

AJ Acevedo AJ-Acevedo

🤓
Studying
View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / romanhosh1.cc
Last active December 5, 2022 00:23 — forked from romanhosh/escape room project not complete c++
escape room project not complete c++
#include <iostream>
int main() {
// Variables
int start = 0;
int answer= 0;
int store = 0;
int pin = 0;
int tries = 0;
@AJ-Acevedo
AJ-Acevedo / pyip.py
Last active May 6, 2022 03:44
A Python 3 script to display your external IP address
#!/usr/bin/env python3
# PyIP
# Author: AJ Acevedo
# Description: A Python 3 script to display your external IP address
# This could also be achived using curl on the CLI
# curl https://ipecho.net/plain
# Requests: https://docs.python-requests.org/en/latest/
# Version 0.1
@AJ-Acevedo
AJ-Acevedo / pyepoch.py
Created May 6, 2021 02:22
Python Epoch time converter for Cisco CDR
#!/usr/bin/env python3
# PyEpoch
# Python Epoch time converter for Cisco CDR
# Version 0.1
# Author: AJ Acevedo - GitHub @AJ-Acevedo
import datetime
epoch_time = 1617372006
@AJ-Acevedo
AJ-Acevedo / pyver.py
Last active May 6, 2022 03:59
PyVer - A simple python script to show what version of python is being run by when executed
#!/usr/bin/env python3
# PyVer
# Version 0.4
# A simple python script to show what version of python is being run when executed.
# Author: AJ Acevedo - GitHub @AJ-Acevedo
import sys

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@AJ-Acevedo
AJ-Acevedo / Fibonacci2nth.py
Last active April 12, 2021 02:23
Calculate the Fibonacci Sequence using Python to the nth number in the sequence specified by user input on the CLI
#!/usr/bin/env python
# Fibonacci2nth
# version 0.2
#
# Fibonacci Sequence using Python
#
# Calculate the Fibonacci Sequence using Python to the nth number in the
# sequence specified by user input on the CLI.
#
@AJ-Acevedo
AJ-Acevedo / fibonacci2num.py
Last active April 12, 2021 02:26
Calculate the Fibonacci Sequence using Python to a number specified by user input on the CLI
#!/usr/bin/env python
# Fibonacci2Num
# version 0.2
#
# Fibonacci Sequence using Python
#
# Calculate the Fibonacci Sequence using Python to a number specified by user input on the CLI.
# The user's input string is restricted to the input fuctions's 1024 character limit.
#
@AJ-Acevedo
AJ-Acevedo / pelotonFTP.sh
Last active January 10, 2022 03:48
Peloton Power Zone Calculator
#!/usr/bin/env bash
# AJAlabs.com
#
# Peloton Power Zone Calculator
# v0.3
#
# LICENSE: MIT LICENSE (https://opensource.org/licenses/MIT)
@AJ-Acevedo
AJ-Acevedo / samanage_GET_MAC.sh
Last active January 11, 2018 16:13
Pull a complete hardware list from Samanage and generate a list of MAC addresses
#!/usr/bin/env bash
# Description: Pull a complete hardware list from Samanage and generate a list of MAC addresses
# syntax: ./samanage_GET_MAC.sh
#
# Author: AJ Acevedo
# License: MIT License
# Version 0.5
# API TOKEN
TOKEN="INSERT YOUR API TOKEN HERE"
@AJ-Acevedo
AJ-Acevedo / SamangeDeploy.bat
Last active October 6, 2017 20:20
Deploy new Samanage Agent and uninstall old agent
:: SamangeDeploy
:: Description: Verify if the old version of Samanage is installed, uninstall and update to latest version
::
:: URL: AJAlabs.com
:: Author: AJ Acevedo
:: Copyright (c) 2017 AJ Acevedo
:: License: MIT - https://opensource.org/licenses/MIT
::
:: Version: v1.0
::