(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# These filters are based on email that Tim Hockin sent to kubernetes-dev a | |
# while ago on how to bring some sanity to github notifications with Kubernetes. | |
# | |
# https://groups.google.com/forum/#!msg/kubernetes-dev/5qU8irU7_tE/aZov0LpCBwAJ | |
# | |
# This file can be processed with https://github.com/mesozoic/gmail-yaml-filters | |
# Mark all k8s email | |
- match: | |
any: |
# Elixir + Phoenix | |
FROM elixir:1.6.1 | |
# Install debian packages | |
RUN apt-get update | |
RUN apt-get install --yes build-essential inotify-tools postgresql-client | |
# Install Phoenix packages | |
RUN mix local.hex --force |
#!/bin/bash | |
set -euo pipefail | |
#set -x | |
# tree can be the name of a branch (master, release-3.8, etc) or a release tag (v3.9.0-alpha.4) | |
TREE="$1" | |
REPOURL=$(curl -s "https://storage.googleapis.com/origin-ci-test/releases/openshift/origin/$TREE/.latest-rpms") | |
echo "copy to following lines into your openshift-ansible inventory file" |
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
#!/usr/bin/env groovy | |
import groovy.jmx.builder.JmxBuilder | |
import javax.management.ObjectName | |
import groovy.json.JsonOutput | |
@Grapes( | |
@Grab(group='args4j', module='args4j', version='2.33') | |
) | |
import org.kohsuke.args4j.* |
If we receive an email with a list of accounts related to the ddos in LON, we need to do the following: | |
The email will likely be from Slade and will relate to a new comment in this gist - https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9 | |
The last one I have run is "992837, als0FRG5zP" from https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9#gistcomment-4193 | |
so look for anything after it. | |
You need to convert that to a list with just the tenant ids: | |
e.g. | |
I copy it into sublime and remove the alarm ids, then: |
--[[ | |
The MIT License (MIT) | |
Copyright (c) 2016 Jörg Krause <joerg.krause@embedded.rocks> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
(defun add-project-to-projectile-known-projects (_ directory) | |
(projectile-add-known-project directory)) | |
(advice-add 'magit-clone :after 'add-project-to-projectile-known-projects) |
; Create this file at /etc/systemd/system/rackspace-monitoring-agent.service | |
; Then reload the configs using `systemctl daemon-reload` | |
; Enable it with `systemctl enable rackspace-monitoring-agent.service` | |
; Restart this service using `systemctl restart rackspace-monitoring-agent` | |
[Unit] | |
Description=Rackspace Monitoring Agent | |
After=network.target | |
[Service] |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.