sudo find / -size +100M -exec sudo ls -l {} \;
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
# Install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install composer | |
brew install homebrew/php/composer | |
### PHPCS | |
composer global require "squizlabs/php_codesniffer=*" | |
# Add to your .bash_profile |
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
<script type="text/javascript"> | |
var gesturesSetUp = false; | |
var ua = navigator.userAgent.toLowerCase(); | |
var isAndroid = ua.indexOf("android") > -1; | |
document.addEventListener('textlayerrendered', function (e) { | |
if (gesturesSetUp || e.detail.pageNumber !== PDFViewerApplication.page) { | |
return; | |
} |
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 | |
/* | |
CREATED: January 17, 2017. | |
Instructions: | |
- This shortcode can be used to show all the 64 districts of Bangladesh as a dropdown menu within Contact Form 7. | |
- The list will show Alphabetically and it is available for Both Bangla and English Language. | |
- This is not a plugin. So, Do not Download this file and install it on your wordpress site. Just copy any of the below code and paste it on the "form editor" of Wordpress Contact form 7 Plugin. |
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
<!--- Example url to link your Envato item directly to the checkout page --> | |
<a href="http://themeforest.net/item/qaween-responsive-wordpress-wedding-theme/6872711?s_rank=1?ref=themewarriors&license=regular&open_purchase_for_item_id=6872711&purchasable=source">Buy Now</a> |
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 | |
/** | |
* Hide List of folders from public with php | |
* Article url: http://abdulawal.com/hide-list-of-folders-from-public-with-php/ | |
*/ | |
$access = $_REQUEST['access']; | |
if($access == "admin"){ | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
echo "<ul>"; |
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 | |
/** | |
* File Name: extract-data-from-multi-select.php | |
* Description: A Simple way to Extract Data from a Multi Select Input and Store in a variable with spearating each values with comma. | |
* Author: Abdul Awal Uzzal | |
* Author Url: abdulawal.com | |
* Article: http://themencode.com/?p=435 | |
*/ | |
if(isset($_POST['select_name'])){ // select_name will be replaced with your input filed 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
<?php | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
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
Root url for website | |
--------------------------------------------------------- | |
<?php site_url(); ?> | |
<?php bloginfo('url'); ?> | |
title of specific post/page | |
--------------------------------------------------------- | |
<?php wp_title(); ?> | |
Title of site |
NewerOlder