I hereby claim:
- I am thebigblackeyes on github.
- I am tyler_nguyen (https://keybase.io/tyler_nguyen) on keybase.
- I have a public key ASAV8tFq3B55ZW8VYUkhDBB7uQfztVbNgc3W1AjP-XanDwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 80; | |
root /home/username/example.com; | |
index index.php index.html; | |
server_name example.com; | |
location / { | |
try_files $uri $uri/ /index.php?q=$uri&$args; |
Varnish: 6081 | |
Nginx: 8080, 443, 80 | |
Varnish Backend | |
server { | |
server_name {SERVERNAMES}; | |
listen 8080; | |
set $MAGE_ROOT /home/{USER}/public_html/magento; | |
set $MAGE_MODE production; |
## phpMyAdmin configuration | |
location ~ ^/PHPMYADMIN_PLACEHOLDER/(.*)$ { | |
alias /usr/share/phpMyAdmin/$1; | |
location ~ ^/PHPMYADMIN_PLACEHOLDER/(.+\.php)$ { | |
alias /usr/share/phpMyAdmin/$1; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
# Change to the project directory | |
cd /home/forge/domain.com | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
git pull origin master |
<div class="cart-promo"> | |
<h2>ENTER A PROMO CODE</h2> | |
<input type="text" id="devPromo"> | |
<a href="/checkout?discount=none" id="redemDevPromo">Apply Coupon</a> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
//listen to the promo button click | |
$('#redemDevPromo').on('click', function(event){ | |
//disable the button event |
<div class="discountcodefield"> | |
<label for="discount">Discount Code:</label> | |
<input autocomplete="off" type="hidden" name="discount" class="discount_code" /> | |
<input autocomplete="off" type="text" name="discount_code" class="discount_code_field" /> | |
<input type="button" name="apply_discount_code" class="btn discount_code_btn" value="Apply"/> | |
</div> | |
<div class="cart__savings discount_apply_code"> | |
</div> |
backend example1 { | |
.host = "backend.example1.com"; | |
.port = "8080"; | |
} | |
backend example2 { | |
.host = "backend.example2.com"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
if (req.http.host == "example1.com") { |
Scripts to run specific services
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |