I hereby claim:
- I am vikalpj on github.
- I am mevikalp (https://keybase.io/mevikalp) on keybase.
- I have a public key ASC1swPrGPz6y7HxfcSV81k1ll0BqcDzPhShPqUc3Nq07Qo
To claim this, I am signing this object:
| # https://feliciano.tech/blog/running-wordpress-behind-an-sslhttps-terminating-proxy/ | |
| if($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){ | |
| $_SERVER['HTTPS'] = 'on'; | |
| $_SERVER['SERVER_PORT'] = 443; | |
| } |
| <?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( |
| # Add this to your bash profile. | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[1;34m\]" | |
| NO_COLOUR="\[\033[0m\]" | |
| CYAN="\[\033[0;36m\]" | |
| PURPLE="\[\033[0;35m\]" | |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| import urllib2 | |
| from django.template.defaultfilters import slugify | |
| from django.core.files.base import ContentFile | |
| from django.dispatch import receiver | |
| from avatar.models import Avatar | |
| from allauth.account.signals import user_signed_up |
I hereby claim:
To claim this, I am signing this object:
| 1. Create a set of ssh keys using | |
| ssh-keygen -t rsa -b 4096 -C "<email> " | |
| Note: the keep the file name to be `id_rsa_nginfinite` if you change the file name then make sure you replace the references of id_rsa_nginfinite in the `make-bower-build.sh` | |
| 2. Go to https://github.com/sroze/ngInfiniteScroll-bower/settings/keys and add the .pub key here, Also make sure that this has Write access, so that travis should be able to push the commits | |
| 3. In the `ngInfiniteScroll` repo encrypt the private key | |
| travis encrypt-file <private_key_name> |
| @register.inclusion_tag('admin/submit_line.html', takes_context=True) | |
| def submit_row(context): | |
| """ | |
| Displays the row of buttons for delete and save. | |
| """ | |
| ctx = original_submit_row(context) | |
| ctx.update({ | |
| 'show_save_and_add_another': context.get('show_save_and_add_another', ctx['show_save_and_add_another']), | |
| 'show_save_and_continue': context.get('show_save_and_continue', ctx['show_save_and_continue']), |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.