- https://websiteforstudents.com/configure-wordpress-with-nginx-mariadb-php-7-1-and-varnish-proxy-on-ubuntu-16-04-lts/
- https://www.tecmint.com/install-varnish-cache-for-apache-on-debian-and-ubuntu/
- http://docs.wp-rocket.me/article/891-purge-varnish-when-using-a-proxy
- http://varnish-cache.org/docs/4.0/users-guide/purging.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const signin = ` | |
input SigninInput { | |
email: String! | |
token: String! | |
refreshtoken: String! | |
firstname: String! | |
lastname: String! | |
} | |
mutation Authenticate($signin: SigninInput!) { | |
authenticate(input: $signin) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def execute | |
if !params[:query] | |
render_wrong_params_error | |
else | |
variables = ensure_hash(params[:variables]) | |
query = params[:query] | |
operation_name = params[:operationName] | |
context = { site_id: @site.id } | |
context = context.merge(current_user: User.find(auth_token[:user_id])) if user_id_in_token? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: default-http-backend | |
labels: | |
app: default-http-backend | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Deployment | |
apiVersion: "extensions/v1beta1" | |
metadata: | |
name: "app" | |
spec: | |
replicas: 2 | |
revisionHistoryLimit: 2 | |
template: | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 15920, | |
"title": "Demo post 4", | |
"item_type": "post", | |
"slug": "demo-post-4", | |
"media": null, | |
"created_at": 1511959770, | |
"updated_at": 1511959770, | |
"meta": {}, | |
"position": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require('lodash') | |
const { Client } = require('pg') | |
// CONFIGURATION | |
const client = new Client({ | |
host: process.env.PG_HOST, | |
port: process.env.PG_PORT, | |
user: 'admin', | |
password: process.env.PG_PASSWORD, | |
database: 'app-development' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Deployment | |
apiVersion: "extensions/v1beta1" | |
metadata: | |
name: "service-sharp" | |
spec: | |
replicas: 5 | |
revisionHistoryLimit: 2 | |
template: | |
metadata: | |
labels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Final expectation : being able to reference items in subcollections and retrieve | |
// them without duplicating them in the subcollection, by simply querying the parents subcollection | |
// Those two works ok | |
var docRef = db.collection('users').doc('alovelace'); | |
var setAda = docRef.set({ | |
first: 'Ada', | |
last: 'Lovelace', | |
born: 1815 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panic: runtime error: index out of range | |
goroutine 1 [running]: | |
github.com/kubeless/kubeless/pkg/utils.GetReadyPod(0xc420771260, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) | |
/Users/travis/gopath/src/github.com/kubeless/kubeless/pkg/utils/k8sutil.go:459 +0x1c7 | |
main.glob..func1(0x36b5340, 0xc42068b800, 0x1, 0x3) | |
/Users/travis/gopath/src/github.com/kubeless/kubeless/cmd/kubeless/call.go:113 +0x609 | |
github.com/kubeless/kubeless/vendor/github.com/spf13/cobra.(*Command).execute(0x36b5340, 0xc42068b770, 0x3, 0x3, 0x36b5340, 0xc42068b770) | |
/Users/travis/gopath/src/github.com/kubeless/kubeless/vendor/github.com/spf13/cobra/command.go:603 +0x22b | |
github.com/kubeless/kubeless/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420475200, 0x36b6aa0, 0x36b7760, 0x36b5de0) |