I hereby claim:
- I am zanematthew on github.
- I am zanematthew (https://keybase.io/zanematthew) on keybase.
- I have a public key whose fingerprint is E819 EADC 34B1 8C07 B0BB B1C7 A95C 1EDB 1719 5D6C
To claim this, I am signing this object:
fastcgi_cache_path /home/foo/site.com/cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m; | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
server { | |
# also use www here | |
server_name site.com; | |
access_log /home/foo/site.com/logs/access.log; | |
error_log /home/foo/site.com/logs/error.log; |
git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; } | |
HOST='\033[02;36m\]\h'; HOST=' '$HOST | |
TIME='\033[01;31m\]\t \033[01;32m\]' | |
LOCATION=' \033[01;34m\]`pwd | sed "s#\(/[^/]\{1,\}/[^/]\{1,\}/[^/]\{1,\}/\).*\(/[^/]\{1,\}/[^/]\{1,\}\)/\{0,1\}#\1_\2#g"`' | |
BRANCH=' \033[00;33m\]$(git_branch)\[\033[00m\]\n\$ ' | |
PS1=$TIME$USER$HOST$LOCATION$BRANCH | |
PS2='\[\033[01;36m\]>' |
# Block direct EDD downloads for WordPress Networking | |
location ~ ^/wp-content/uploads/sites/(.*)/edd/(.*?)\.zip$ { | |
rewrite / permanent; | |
} |
<?php | |
/** | |
* Adding a new field to the register form | |
* | |
* These are the steps needed to add a new field in ZM ALR (2.0.0+) | |
* They are as follows: | |
* 1. Add your field to the array of fields | |
* 2. Check the validation of your new field | |
* 3. Do something with the value AFTER successful registration |
I hereby claim:
To claim this, I am signing this object:
## Sample initialization file for GNU nano | |
## Please note that you must have configured nano with --enable-nanorc | |
## for this file to be read! Also note that characters specially | |
## interpreted by the shell should not be escaped here. | |
## | |
## To make sure a value is not enabled, use "unset <option>" | |
## | |
## For the options that take parameters, the default value is given. | |
## Other options are unset by default. |
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"AlignTab", | |
"DocBlockr", | |
"Material Theme", |
<?php | |
// This is a sample for getting a request | |
Route::get('/request', function (\Illuminate\Http\Request $request) { | |
var_dump($request->input('code')); | |
dd($request); | |
if ($request->has('code')) { | |
$referral = $request->input('code'); |
#### | |
# | |
# Note this file should be place in: | |
# cd /etc/nginx/custom-sites/ | |
# Then be sure to restart nginx: | |
# $ sudo service nginx restart | |
location ~ ^/wp-content/uploads/(.*) { | |
if (!-f $request_filename) { | |
rewrite ^/wp-content/uploads/(.*)$ https://SOME-OTHER-URL-HERE.com/$1 redirect; | |
} |