Skip to content

Instantly share code, notes, and snippets.

@Radmation
Radmation / wp-query-ref.php
Created March 14, 2018 22:12 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@Radmation
Radmation / Cloud Sites - Force HTTPS
Last active September 12, 2019 16:59
Cloud Sites - Force HTTPS
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
@Radmation
Radmation / Common .htaccess Redirects
Last active July 23, 2019 19:39 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@Radmation
Radmation / ngrok with Homestead
Created August 16, 2019 16:51
ngrok with Homestead
ngrok http -host-header=rewrite mysite.test:80
@Radmation
Radmation / Force HTTPS .htaccess
Created September 12, 2019 17:01
Force HTTPS .htaccess - typical servers
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@Radmation
Radmation / Code Review Template
Created July 30, 2020 17:45
Code Review Template (Markdown)
## Description of Updates
## Prerequisites
N/A
## Testing Steps
1. Code Diff Review
## Rollout Steps
N/A
@Radmation
Radmation / .editorconfig
Created July 30, 2020 17:46
PHPStorm Editor Config
[*]
charset = utf-8
end_of_line = crlf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
@Radmation
Radmation / .htaccess
Created August 6, 2020 16:10
Cloud Sites increase upload size
php_value memory_limit 128M
php_value upload_max_filesize 8M
php_value post_max_size 8M
php_value max_execution_time 30
php_value max_input_time 60
@Radmation
Radmation / styles.scss
Created May 5, 2021 21:14
Sass CLI watch
sass --watch main.scss:main.css --style compressed