Skip to content

Instantly share code, notes, and snippets.

View emmeowzing's full-sized avatar
I code for coffee ☕

Emma Doyle emmeowzing

I code for coffee ☕
View GitHub Profile

Keybase proof

I hereby claim:

  • I am emmeowzing on github.
  • I am emmeowzing (https://keybase.io/emmeowzing) on keybase.
  • I have a public key ASArpR1GvfuRWp3d1-d_hKEp2rmdQ-7wwmqJ8PNVxUYWngo

To claim this, I am signing this object:

@emmeowzing
emmeowzing / .gitlab-ci.yml
Created December 22, 2022 03:42
Run Terraform in different environments and cloud providers
stages:
- init
- validate
- plan
- apply
- destroy
workflow:
rules:
@emmeowzing
emmeowzing / rancher-cluster-switch.sh
Last active November 18, 2022 19:40
Switch Rancher clusters from your terminal, updating / merging your kube config
#! /usr/bin/env bash
# Connect to one of our clusters via Rancher's CLI.
set -e
_RANCHER_URL="${1:-$RANCHER_URL}"
_RANCHER_TOKEN="${2:-$RANCHER_TOKEN}"
DEFAULT_CLUSTER="${3:-development}
Istio Workshop
==============
Lawrence @ Solo.io
Jad Sadek @ Solo.io
Hiring at Solo.io
At Solo we're building the Gloo platform
Gloo mesh, edge, portal, extensions
Tests will be sent out toward end of the workshop
Requires >=80% correct.
Retake is allowed (with a new email). Expect badge within a few weeks.
#! /bin/bash
# Run bowmaster prelude on your Linux machine!
BOWMASTER_FN="bowmaster-prelude.swf"
if ! hash gnash
then
sudo apt install -y gnash=0.8.11~git20160608-1.4
fi
@emmeowzing
emmeowzing / update_rule.py
Last active August 10, 2020 23:19
An example PUT request to update a rule.
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
An example PUT request on our rules endpoint.
"""
from typing import Dict, Optional
@emmeowzing
emmeowzing / gunicorn_config.py
Created October 24, 2019 23:08
Gunicorn config for Flask
# -*- coding: utf-8 -*-
from multiprocessing import cpu_count
bind = '0.0.0.0:5000'
# Maximum number of backlog requests to hold onto before users get error messages.
backlog = 100
workers = cpu_count() * 2 + 1
#! /usr/bin/env python3.6
# -*- coding: utf-8 -*-
"""
What I believe to be the same (or similar) pattern as expressed in Haskell.
"""
from abc import abstractmethod
from typing import Callable, Any, Generic, TypeVar, List, Text, Optional
@emmeowzing
emmeowzing / config.sex
Last active August 28, 2019 02:10
Generate Gaussian and Moffat filters for SExtractor
# Default configuration file for SExtractor 2.19.5
# EB 2013-12-14
#
#-------------------------------- Catalog ------------------------------------
PARAMETERS_NAME output.param # name of the file containing catalog contents
#------------------------------- Extraction ----------------------------------
@emmeowzing
emmeowzing / inverter.c
Created April 27, 2017 14:22
Example matrix inversion using the GNU Scientific Library
/* A simple example of inverting a matrix using the gsl */
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_linalg.h>