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 | |
# This bash script works JUST with WP-CLI | |
# You can get it from here: | |
# http://wp-cli.org/ | |
# | |
# If you don't know what to do with this file: | |
# | |
# 1) Install wp-cli on your workspace | |
# 2) Create a file call wpinstall.sh |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "You must be a root user" 2>&1 | |
exit 1 | |
fi | |
echo "<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName $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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = 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
//============================================================ | |
// Some of this mixins are from: | |
// | |
// adamcbrewer: github.com/adamcbrewer | |
// | |
// And other places I can't really remember | |
// | |
//============================================================ | |
//============================================================ |
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 | |
# Pre-commit hook to make a mysql dump right before committing and add it to the commit. | |
# | |
# Change the following values to suit your local setup. | |
# Add this file on your .git/hooks/ and name it as 'pre-commit' | |
# | |
# The name of a database user with read access to the database. | |
DBUSER=[dbuser] |
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 | |
# Post-merge hook to add a mysql db when post-merge occurs. | |
# | |
## Change the following values to suit your local setup. | |
# The name of a database user with read access to the database. | |
DBUSER=[dbuser] | |
# The password associated with the above user. Leave commented if none. | |
DBPASS=[dbpass] |
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
/* | |
* NOTE: This script works better with the following CSS file: | |
* https://gist.github.com/teledirigido/d5e311df185ad23adaf5 (cs_select.scss) | |
options = { | |
# REQUIRED div html tag class for the generated input | |
selector: '.classSelector', |
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 custom_menu = { | |
handle_colors: function(){ | |
// by default this works with $(window).on('load resize scroll') | |
$('.scroller').on('load resize scroll', function(){ | |
var index_item = custom_menu._get_index(), | |
class_item = $('.wrapper-milkguard:eq('+index_item+')').data('menu-color') |
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
ExpiresActive On | |
ExpiresDefault A0 | |
# 1 WEEK - possible to be changed, unlikely | |
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> | |
ExpiresDefault A604800 | |
</FilesMatch> | |
# 3 HOUR - core content, changes quickly | |
<FilesMatch "\.(txt|xml|js|css)$"> |
OlderNewer