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
| /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) | |
| * Licensed under the MIT License (LICENSE.txt). | |
| * | |
| * Version 1.2.3 | |
| */ | |
| (function (factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| // AMD. Register as an anonymous module. | |
| define(['jquery'], factory); |
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
| jQuery('.gfield').each(function() { | |
| if( jQuery(this).find('.ginput_container').length && jQuery(this).find('.ginput_container').find('input').length && ( jQuery(this).find('.ginput_complex').length == 0 ) ) { | |
| var Label = jQuery(this).find('label').text(); | |
| var filler = ""; | |
| switch(true) { | |
| case String(Label).search(/first/i) != -1: |
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/sh | |
| if ps ax | grep -v grep | grep -v $0 | grep mysqld > /dev/null | |
| then | |
| echo "mysqld service running, everything is fine" | |
| else | |
| echo "mysqld is not running" | |
| service mysql start | |
| fi |
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
| sudo apt-get install phpmyadmin | |
| sudo ln -s /usr/share/phpmyadmin /var/www/default/phpmyadmin |
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
| wget http://wordpress.org/latest.tar.gz | |
| tar -xzvf latest.tar.gz | |
| mv ./wordpress/* . | |
| rm -rf wordpress | |
| rm wp-content/plugins/hello.php | |
| rm -rf wp-content/themes/twentythirteen | |
| rm -rf wp-content/themes/twentyfourteen | |
| rm latest.tar.gz |
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
| ssh -C -N vagrant@localhost -p 2222 -L 3307:127.0.0.1:3306 -i ~/htdocs/.vagrant/machines/default/virtualbox/private_key |
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 | |
| function removePortFromURL ( $url = false ) | |
| { | |
| if ( ! $url ) { | |
| return false; | |
| } | |
| $url = rtrim ( $url, '/' ); |
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 | |
| /************************************************************************** | |
| Plugin Name: Disable Search Query | |
| Description: Disables Search Queries in URL | |
| Version: 0.0.1 | |
| Author: Fastmover | |
| **************************************************************************/ | |
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
| #Generate Key and CSR | |
| sudo openssl genrsa -out websitename.com.key 4096 | |
| sudo openssl req -new -key websitename.com.key -out websitename.com.csr -sha512 |