- Project Requirements
- Configuration Management
- CI/CD
- Service Level Managment Requirements
- Monitoring
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
#!/bin/bash | |
# A port of ZFS stats for FreeBSD plugin to Linux, adapted to send metrics to statsd. | |
# | |
# Author: Daniele Valeriani <daniele@valeriani.co.uk> | |
# Author of the original munin plugin: David Bjornsson <dabb@lolnet.is> | |
# Author of the Linux port: Alex Chistyakov <alexclear@gmail.com> | |
PREFIX="servers.`hostname`.zfs" | |
STATSD_ADDR="YOUR STATSD SERVER" |
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
//schedule this function to run tomorrow at 3am using a time trigger | |
//in your Trellinator configuration sheet. It will then | |
//execute daily | |
function deleteOlderThanOneYear(board,signature,original_time) | |
{ | |
new Board(board).list("Completed").cards().each(function(card) | |
{ | |
if(card.movedToList() < Trellinator.now().minusDays(365)) | |
{ | |
card.archive(); |
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
#!/bin/zsh | |
# If you use #'s for defer and start dates, you'll need to escape the #'s or | |
# quote the whole string. | |
function of () { | |
if [[ $# -eq 0 ]]; then | |
open -a "OmniFocus" | |
else | |
osascript <<EOT |
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
require 'chef/provisioning/aws_driver' | |
require 'byebug' | |
current_dir = File.dirname(__FILE__) # to get relative files... encrypted databag | |
with_chef_server "https://api.chef.io/organizations/#{ENV['CHEF_ORG']}", | |
:client_name => Chef::Config[:node_name], | |
:signing_key_filename => Chef::Config[:client_key] | |
setup_winrm_ssl_user_data = <<EOD | |
<powershell> |
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
# get version id | |
query($name: String!, $owner: String!) { | |
repository(name: $name, owner: $owner) { | |
id | |
name | |
registryPackages(first: 10) { | |
nodes { | |
versions(first: 10) { | |
nodes{ | |
id |
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
// Material Palenight Color Scheme for Blink Shell | |
// by Greg Gamel (https://github.com/ggamel) (https://greg.is) | |
black = '#292d3e'; | |
red = '#f07178'; // red | |
green = '#c3e88d'; // green | |
yellow = '#ffcb6b'; // yellow | |
blue = '#82aaff'; // blue | |
magenta = '#c792ea'; // pink | |
cyan = '#89ddff'; // cyan |
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
op list items --tags ssh | op get item - --fields title | parallel -l 1 'op get item {} --fields notesPlain | ssh-add -' |
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
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
class IncidenceWidget { | |
constructor() { | |
this.previousDaysToShow = 31; | |
this.apiUrlDistricts = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=RS,GEN,cases7_bl_per_100k,cases7_per_100k,BL&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json` | |
this.apiUrlDistrictsHistory = (districtId) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/ArcGIS/rest/services/Covid19_hubv/FeatureServer/0/query?where=IdLandkreis%20%3D%20%27${districtId}%27%20AND%20Meldedatum%20%3E%3D%20TIMESTAMP%20%27${this.getDateString(-this.previousDaysToShow)}%2000%3A00%3A00%27%20AND%20Meldedatum%20%3C%3D%20TIMESTAMP%20%27${this.getDateString(1)}%2000%3A00%3A00%27&outFields=Landkreis,Meldedatum,AnzahlFall&outSR=4326&f=json` | |
this.stateToAbbr = { | |
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
#!/bin/bash -eu | |
# Increase Virtual Memory for Elasticsearch on GKE | |
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html | |
# Dependencies: kubectl, gcloud, jq | |
nodes() { | |
kubectl get nodes -o custom-columns=n:.metadata.name --no-headers | |
} |
OlderNewer