Skip to content

Instantly share code, notes, and snippets.

AJ Acevedo AJ-Acevedo

Block or report user

Report or block AJ-Acevedo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / pelotonFTP.sh
Last active Jan 2, 2018
Peloton Power Zone Calculator
View pelotonFTP.sh
#!/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 Jan 11, 2018
Pull a complete hardware list from Samanage and generate a list of MAC addresses
View samanage_GET_MAC.sh
#!/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 Oct 6, 2017
Deploy new Samanage Agent and uninstall old agent
View SamangeDeploy.bat
:: 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 / NYRR.html
Created Feb 25, 2017
tcsnycmarathon.org - Custom Confirmation
View NYRR.html
<style>
.custom-confirmation {
margin-top: -4em;
}
#confirmed-page {
margin-top: -4em;
}
</style>
@AJ-Acevedo
AJ-Acevedo / UpdateDescription.ps1
Last active Jan 22, 2016
Update the Description of a Windows Computer with PowerShell
View UpdateDescription.ps1
# 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 / myIP.sh
Created Jan 19, 2016
myIP - Show both the Public and Private IP Addresses on a Mac or Debian Linux system
View myIP.sh
#!/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 / MAC2MAC
Last active Aug 29, 2015
Convert a Cisco MAC address to a properly formatted MAC address
View MAC2MAC
cat MAC.csv | sed -e 's/[0-9a-fA-F]\{2\}/&:/g;s/.$//' >> REAL-MAC.csv
View github.php
<?php
`git pull origin master`;
?>
@AJ-Acevedo
AJ-Acevedo / ping8.ps1
Created Jul 17, 2014
PowerShell script to ping 8.8.8.8 for ten seconds
View ping8.ps1
#PowerShell script to ping 8.8.8.8 for ten seconds
function ping8() {
ping 8.8.8.8
Start-Sleep -s 10
Exit
}
ping8
@AJ-Acevedo
AJ-Acevedo / sheep.js
Last active Jun 9, 2016
Code School - Javascript Roadtrip Part 2 - Level 2 Challenges 7
View sheep.js
var numSheep = 4;
var monthsToPrint = 12;
for(var monthNumber = 1; monthNumber <= monthsToPrint; monthNumber++) {
if ( monthNumber % 4 == 0 ) {
numSheep /= 4;
console.log("Removing " + (numSheep * 3) + " sheep from the population. Phew!");
}
else if ( numSheep > 10000 ) {
You can’t perform that action at this time.