This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.custom-confirmation { | |
margin-top: -4em; | |
} | |
#confirmed-page { | |
margin-top: -4em; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat MAC.csv | sed -e 's/[0-9a-fA-F]\{2\}/&:/g;s/.$//' >> REAL-MAC.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
`git pull origin master`; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#PowerShell script to ping 8.8.8.8 for ten seconds | |
function ping8() { | |
ping 8.8.8.8 | |
Start-Sleep -s 10 | |
Exit | |
} | |
ping8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* | |
* JavaScript Fizz Buzz using a for loop | |
* Copyright (c) 2013 AJ Acevedo | http://ajacevedo.com | |
* This content is released under the MIT License. | |
* http://www.opensource.org/licenses/mit-license.php | |
* Version: 0.1 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form role="form"> | |
<div class="form-group"> | |
<label for="contactForm">Contact Us</label> | |
</div> | |
<!-- TODO: Move styles into style.css --> | |
<div class="form-group"> | |
<input type="text" class="form-control" style="width:233px" placeholder="Your First Name"> | |
</div> | |
<div class="form-group"> | |
<input type="text" class="form-control" id="lastInput" style="width:233px" placeholder="Your Last Name"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE flightlu_posts SET guid = replace(guid, 'http://csp.ajacommerce.com', 'http://localhost'); | |
UPDATE flightlu_posts SET post_content = replace(post_content, 'http://csp.ajacommerce.com', 'http://localhost'); | |
UPDATE flightlu_postmeta SET meta_value = replace(meta_value,'http://csp.ajacommerce.com', 'http://localhost'); | |
UPDATE flightlu_options SET option_value = replace(option_value, 'http://csp.ajacommerce.com', 'http://localhost') WHERE option_name = 'home' OR option_name = 'siteurl' OR option_name = 'dashboard_widget_options'; |