Skip to content

Instantly share code, notes, and snippets.

View craigwillis85's full-sized avatar

Craig Willis craigwillis85

View GitHub Profile
{
Country: [
{
name: UK,
County: [
{
name: London,
District: [
{
name: Camden
// 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) {
[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 \
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example
labels:
name: example
spec:
replicas: 1
selector:
matchLabels:
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus
data:
prometheus.yml: |
global:
scrape_interval: 10s
scrape_timeout: 10s
evaluation_interval: 10s
apiVersion: v1
kind: ConfigMap
metadata:
name: alertmanager
data:
config.yml: |-
global:
# The directory from which notification templates are read.
templates:
- '/etc/alertmanager/template/*.tmpl'
<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 }}) &nbsp;
<i class="fa fa-3 icon is-small" :class="show ? 'fa-caret-up' : 'fa-caret-down'"></i>
</button>
<ul v-show="shouldShow($index)">