This file contains hidden or 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
| { | |
| Country: [ | |
| { | |
| name: UK, | |
| County: [ | |
| { | |
| name: London, | |
| District: [ | |
| { | |
| name: Camden |
This file contains hidden or 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
| // since_id comes form database - set at a specific date | |
| $results = SearchTwitter::get_tweets($keyword, $since_id); | |
| // We'll save the tweets in $result back to the database | |
| // since_id will therfore be updated to the newest tweet | |
| class SearchTwitter | |
| { | |
| public static function get_tweets($keyword, $since_id) { |
This file contains hidden or 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
| [Unit] | |
| Description=etcd | |
| Documentation=https://github.com/coreos | |
| [Service] | |
| ExecStart=/usr/bin/etcd --name master1 \ | |
| --initial-advertise-peer-urls http://11.76.137.62:2380 \ | |
| --listen-peer-urls http://11.76.137.62:2380 \ | |
| --listen-client-urls http://11.76.137.62:2379,http://127.0.0.1:2379 \ | |
| --advertise-client-urls http://11.76.137.62:2379 \ |
This file contains hidden or 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: example | |
| labels: | |
| name: example | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |
This file contains hidden or 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: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: prometheus | |
| data: | |
| prometheus.yml: | | |
| global: | |
| scrape_interval: 10s | |
| scrape_timeout: 10s | |
| evaluation_interval: 10s |
This file contains hidden or 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: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: alertmanager | |
| data: | |
| config.yml: |- | |
| global: | |
| # The directory from which notification templates are read. | |
| templates: | |
| - '/etc/alertmanager/template/*.tmpl' |
This file contains hidden or 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
| <template> | |
| <div class="demo" v-for="(m, $index) in modifications"> | |
| <h1>{{ m.name }}</h1> | |
| <button class="button is-primary" @click="toggleShow($index)"> | |
| Comments ({{ m.thread.messages.length }}) | |
| <i class="fa fa-3 icon is-small" :class="show ? 'fa-caret-up' : 'fa-caret-down'"></i> | |
| </button> | |
| <ul v-show="shouldShow($index)"> |