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
/** Global Site Options */ | |
!defined('WP_SITEURL') && define('WP_SITEURL', "http://{$_SERVER['HTTP_HOST']}"); | |
!defined('WP_HOME') && define('WP_HOME', WP_SITEURL); |
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
find wp-admin -type f -print0 | git update-index --assume-unchanged -z --stdin |
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
#!/bin/bash -x | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
OPTIONS: | |
-h Show this message |
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
//Center Lightbox | |
function center_box(){ | |
var body = $('body')[0]; | |
var box_height = $('#lightbox').height(); | |
var box_width = $('#lightbox').width(); | |
var screen_height = $(body).height(); | |
var screen_width = $(body).width(); | |
var top = (screen_height / 2) - (box_height / 2); | |
var left = (screen_width / 2) - (box_width / 2); |
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
public function __call($method, $parameters){ | |
return dd(Request::route()); | |
} |
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
parse_str(file_get_contents("php://input"),$post_vars); |
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 | |
$unconvertedEntity = array( | |
'%', | |
' ', | |
'_' | |
); | |
$convertedChar = array( | |
'%', | |
' ', | |
'_' |
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
#!/bin/bash | |
filedir=$1; | |
echo "Starting converstion to mp4 script" | |
if [ -d "$filedir" ]; then | |
cd "$filedir" | |
for file in ./* ; | |
do | |
if [[ $file = *.mkv || $file = *.avi ]] ; then |
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
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk.i686 -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
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
function friday(e) { | |
if(e) { | |
// Not doin' nothin', it's Friday. | |
e.preventDefault(); | |
} | |
/************$~I**************************Z********************************* | |
***********O,7.++O$+********************O,..ZI****************************** | |
***********$..$.78.$******************$...7+. ~Z*******************+******** | |
***********.Z.~.7D.O****************O,...,+. ....+Z*************7O+77I*+**** |
OlderNewer