Skip to content

Instantly share code, notes, and snippets.

View rphillips's full-sized avatar

Ryan Phillips rphillips

  • Red Hat
  • Austin, TX
View GitHub Profile
# 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:
@dogweather
dogweather / Dockerfile
Last active June 6, 2022 11:56
Elixir/Phoenix Docker-based Development Environment
# 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
@sjenning
sjenning / origin-latest.sh
Last active July 23, 2018 16:01
Get latest repo and packge version for origin upstream builds
#!/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"
@ahmetb
ahmetb / gcrgc.sh
Last active February 26, 2024 09:14
Script to clean up Google Container Registry images pushed before a particular date
#!/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.*
@jjbuchan
jjbuchan / gist:83b03c1fb24ea1039fe25e9e44f822a2
Last active August 6, 2016 05:14
Re-evaluating for incident
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:
@joerg-krause
joerg-krause / lj-amonitor.lua
Last active May 12, 2016 16:58
ALSA integration into Luvit
--[[
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,
@JoshTGreenwood
JoshTGreenwood / gist:443253f42fb80455792f
Created December 1, 2015 22:20
Automatically add magit cloned repos to the projectile project list
(defun add-project-to-projectile-known-projects (_ directory)
(projectile-add-known-project directory))
(advice-add 'magit-clone :after 'add-project-to-projectile-known-projects)
@creationix
creationix / rackspace-monitoring-agent.service
Last active August 29, 2015 14:04
Virgo service file for archlinux
; 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]
@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing