Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
| import groovy.json.* | |
| class Person { | |
| String name | |
| List addresses = [] | |
| } | |
| class Address { | |
| String address | |
| String state |
| """ This is a simple gist to show how to mock | |
| private methods. I've got lots of questions | |
| regarding this topic. Most people seems confused. | |
| Hope it helps. | |
| """ | |
| import unittest | |
| import mock |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <Data> | |
| <Series> | |
| <id>83462</id> | |
| <Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors> | |
| <Airs_DayOfWeek>Monday</Airs_DayOfWeek> | |
| <Airs_Time>10:00 PM</Airs_Time> | |
| <ContentRating>TV-PG</ContentRating> | |
| <FirstAired>2009-03-09</FirstAired> | |
| <Genre>|Drama|</Genre> |
Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
| #!/bin/bash | |
| # This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch. | |
| # There are six variants that I have built: | |
| # - pre-commit: stops commits to master/main/develop branches. | |
| # - pre-commit-2: also includes a core.whitespace check. | |
| # - pre-commit-3: the core.whitespace check and an EOF-newline-check. | |
| # - pre-commit-4: only the core.whitespace check. | |
| # - pre-commit-5: elixir formatting check. | |
| # - pre-commit-6: prettier formatting check. | |
| # Set the desired version like this before proceeding: |
| #!/bin/bash | |
| # Allows to attach and remove EBS volumes managed under LVM to | |
| # have a dynamically sized partition attached to an EC2 instance | |
| # | |
| # Intance needs either to be launched with a role able to access to relevant AWS API endpoints | |
| # or the credentials can be hardcoded in the config. | |
| # | |
| # Minimal IAM Role: | |
| # { |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "strings" | |
| ) | |
| func main() { |
| package utils | |
| import groovy.json.JsonBuilder | |
| import groovy.json.JsonSlurper | |
| class HDD { | |
| static save(Object content, String filePath) { | |
| new File(filePath).write(new JsonBuilder(content).toPrettyString()) | |
| } |
| proxy http://{proxy_server}:{proxy_port} | |
| https-proxy http://{proxy_server}:{proxy_port} | |
| strict-ssl=false |