Skip to content

Instantly share code, notes, and snippets.

View AJ-Acevedo's full-sized avatar

AJ Acevedo AJ-Acevedo

View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / github.php
Created October 26, 2014 23:39
GitHub Web Hook
<?php
`git pull origin master`;
?>
@AJ-Acevedo
AJ-Acevedo / MAC2MAC
Last active August 29, 2015 14:18
Convert a Cisco MAC address to a properly formatted MAC address
cat MAC.csv | sed -e 's/[0-9a-fA-F]\{2\}/&:/g;s/.$//' >> REAL-MAC.csv
@AJ-Acevedo
AJ-Acevedo / myIP.sh
Created January 19, 2016 04:50
myIP - Show both the Public and Private IP Addresses on a Mac or Debian Linux system
#!/usr/bin/env bash
#
# myIP
# Description: Show both the Public and Private IP Addresses on a Mac or Debian Linux system.
# Usage: Drop this file in ~/bin, add ~/bin to your $PATH and just type myIP on the CLI. That's it!
#
# URL: AJAlabs.com
# Author: AJ Acevedo
# Copyright (c) 2016 AJ Acevedo
# License: MIT - https://opensource.org/licenses/MIT
@AJ-Acevedo
AJ-Acevedo / UpdateDescription.ps1
Last active January 22, 2016 21:22
Update the Description of a Windows Computer with PowerShell
# Update-Description
# Description: Update the Computer Description of a Windows Computer with PowerShell. The description is updated in both Active Direcotry and on the PC.
# Usage: UpdateDescription -computername 420XX-XXXX -description "First Last Desktop"
#
# URL: AJAlabs.com
# Author: AJ Acevedo
# Copyright (c) 2016 AJ Acevedo
# License: MIT - https://opensource.org/licenses/MIT
#
# Version: v0.4
@AJ-Acevedo
AJ-Acevedo / NYRR.html
Created February 25, 2017 23:25
tcsnycmarathon.org - Custom Confirmation
<style>
.custom-confirmation {
margin-top: -4em;
}
#confirmed-page {
margin-top: -4em;
}
</style>
@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
::
@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 / 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 / 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 / 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.
#