This file contains hidden or 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
OUTPUT_MAC_ADDRESS="" | |
OUTPUT_COMPUTER_NAME="" | |
function IsExistingInterface() { | |
OUTPUT=$(echo $(ifconfig $1 2>&1)) | |
if [[ ! "$OUTPUT" == *"does not exist"* ]]; then | |
true | |
else | |
false |
This file contains hidden or 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 | |
/** | |
* Version: 3 | |
* Reference: https://devreply.com/questions/show/14 | |
* Date: 2016-08-28 | |
*/ | |
/** | |
* @return bool |
This file contains hidden or 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 | |
/** | |
* Version: 1- | |
* Reference: https://devreply.com/questions/show/14 | |
* Date: 2016-08-28 | |
*/ | |
?> |
This file contains hidden or 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
#!/bin/bash | |
# by iiitum | |
EMAIL="" | |
function shutdown() | |
{ | |
EVENT_TIME=$(date +%Y/%m/%d-%H:%M:%S) | |
ME=`whoami` | |
SUBJECT="System Shutdown: ${EVENT_TIME}" |
This file contains hidden or 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
#!/bin/bash | |
# credit: https://gist.github.com/actuallymentor/89b643f03df4776112c4 | |
# credit: https://gist.github.com/macbleser/9136424 | |
WP_OWNER=$1 # <-- wordpress owner | |
WP_GROUP=$2 # <-- wordpress group | |
WP_ROOT=$4 # <-- wordpress root directory | |
WS_GROUP=$3 # <-- webserver group | |
yes | apt-get install jpegoptim; |
This file contains hidden or 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 php | |
<?php | |
/* | |
The MIT License (MIT) | |
Copyright (c) 2015 iiitum | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
This file contains hidden or 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
# Last updated 2015-12-14 | |
JOOMLA_VERSION="3.4.5" | |
git clone https://github.com/joomla/joomla-cms.git | |
cd joomla-cms | |
git checkout tags/${JOOMLA_VERSION} | |
cd .. | |
mv joomla-cms/* `pwd` | |
rm -rf joomla-cms/ |
This file contains hidden or 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
# Last updated 2015-12-14 | |
WORDPRESS_VERSION="4.4.1" | |
SFTP_VERSION="0.7.1" | |
git clone https://github.com/WordPress/WordPress.git | |
cd WordPress | |
git checkout tags/${WORDPRESS_VERSION} | |
cd .. | |
mv WordPress/* `pwd` | |
rm -rf WordPress/ |