Skip to content

Instantly share code, notes, and snippets.

View rqreyes's full-sized avatar

Randy Reyes rqreyes

View GitHub Profile
@rqreyes
rqreyes / .htaccess
Last active January 23, 2016 04:05
increasing wordpress upload size
#Change upload limits
php_value memory_limit 34M
php_value post_max_size 33M
php_value upload_max_filesize 32M
php_value max_execution_time 600
#Change upload limits end
@rqreyes
rqreyes / footer.php
Last active January 23, 2016 04:04
automatic copyright year
@rqreyes
rqreyes / wp-config.php
Last active January 23, 2016 04:05
disables wordpress theme/plugin editor
/* Disables theme/plugin editor */
define( 'DISALLOW_FILE_EDIT', true );
@rqreyes
rqreyes / footer.php
Last active January 26, 2016 02:47
qc banner
@rqreyes
rqreyes / maintenance.html
Last active February 3, 2016 20:17
maintenance page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
.marketing { font-size: 11px; }
@rqreyes
rqreyes / .htaccess
Created January 23, 2016 04:18
maintenance page .htaccess
#ADD this block of code to the very top of the htaccess file
#make sure maintenance.html is in the root
#make sure to edit maintenance.html to include client specific information
#remove this code when the site maintenance is completed
# MAINTENANCE-PAGE REDIRECT
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^66\.27\.58\.251
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
@rqreyes
rqreyes / Default (Windows).sublime-keymap
Created January 23, 2016 04:59
sublime tab cycling
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
]
@rqreyes
rqreyes / index.html
Last active January 25, 2016 20:38
foundation off canvas nav
<!-- off canvas nav start -->
<div class="off-canvas-wrap">
<div class="inner-wrap">
<nav class="tab-bar">
<section class="left-small">
<a href="#" class="left-off-canvas-toggle menu-icon"><span></span></a>
</section>
<section class="middle tab-bar-section">
<h1 class="title">title</h1>
</section>
@rqreyes
rqreyes / .htaccess
Created January 27, 2016 23:22
redirect 410
ErrorDocument 410 /410.php
Redirect 410 /page-8469/
@rqreyes
rqreyes / style.css
Last active February 2, 2016 22:09
placeholder css
::-webkit-input-placeholder { /* Safari, Chrome and Opera */
color: #FFF;
}
:-moz-placeholder { /* Firefox 18- */
color: #FFF;
}
::-moz-placeholder { /* Firefox 19+ */
color: #FFF;
}
:-ms-input-placeholder { /* IE 10+ */