Skip to content

Instantly share code, notes, and snippets.

View steveandroulakis's full-sized avatar

Steve Androulakis steveandroulakis

View GitHub Profile
@steveandroulakis
steveandroulakis / OSSLoadCharacteristics-1701809089284.json
Created December 5, 2023 20:46
Grafana Dashboard: Temporal OSS 7 day and 30 day action counts
{
"annotations": {
"list": [
{
"$$hashKey": "object:71",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
@steveandroulakis
steveandroulakis / grafana_billable_actions.json
Last active September 28, 2023 18:51
Grafana Dashboard: Billable Actions from Temporal Server
{
"__inputs": [
{
"name": "DS_TEMPORALMETRICS",
"label": "TemporalMetrics",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: grafana-ingress
namespace: monitoring
spec:
entryPoints:
- web
routes:
- kind: Rule
@steveandroulakis
steveandroulakis / bam_pipe.py
Created September 22, 2016 01:54
really rough bam processing pipeline
#!/usr/bin/python
import sys, getopt
import glob
import os
import ntpath
from time import strftime
print '******bam_pipe******'
print strftime("%Y-%m-%d %H:%M:%S")
## bioapps TCP
### Aws location:
* Monash eSol AWS account [https://login.monash.edu/adfs/ls/idpinitiatedsignon](https://login.monash.edu/adfs/ls/idpinitiatedsignon)
* RES-SPT-Automation/Steve.Androulakis@monash.edu
* Oregon availability zone
* Elastic Beanstalk controlled
### Elastic beanstalk scaling settings
#!/bin/bash -i
sudo apt-get update < "/dev/null"
sudo apt-get install python-pip -y < "/dev/null"
sudo pip install awscli < "/dev/null"
# use eg. curl -s https://myurl.com/script.sh | bash /dev/stdin
# only run on an empty cloud server with blank vdb volume attached!
sudo apt-get update < "/dev/null"
sudo apt-get install curl -y < "/dev/null"
sudo true
# use eg. curl -s https://myurl.com/script.sh | bash /dev/stdin
# only run on an empty cloud server with blank vdb volume attached!
sudo apt-get update < "/dev/null"
sudo apt-get install curl -y < "/dev/null"
sudo true
# Install kernel extra's to enable docker aufs support
sudo apt-get -y install linux-image-extra-$(uname -r) < "/dev/null"
# Add Docker PPA and install latest version
#!/bin/bash
HOME_DIR=/home/
for name in $(find $HOME_DIR -maxdepth 1 -mindepth 1 -type d -printf '%f\n')
do
echo "USER = $name"
echo "DIR = $HOME_DIR$name"
WEB_DIR=/home/www/html/home/$name
#WEB_DIR=$name
@steveandroulakis
steveandroulakis / read_mytardis_its.py
Created January 16, 2015 11:04
Upload public mytardis.its.monash entries not found on tardis.edu.au
# -*- coding: utf-8 -*-
from mytardisuploader import mytardis_uploader
# steve.androulakis@monash.edu
address = 'http://118.138.233.132/'
username = 'mytardis'
password = 'astestdep'
institute = 'Monash University'
test_run = True
@steveandroulakis
steveandroulakis / read_tardis_edu.py
Last active August 29, 2015 14:13
tardis.edu.au public upload script
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
import mytardis_uploader
import os.path
# steve.androulakis@monash.edu
# Run as root (the LaRDS mytardis_its filestore needs it)
# Turn test=False at the bottom of this script to run
# for real.