Skip to content

Instantly share code, notes, and snippets.

View theMagicalKarp's full-sized avatar
🦕

Robert Sheehy theMagicalKarp

🦕
View GitHub Profile
gsjgklneight6zqfz
7one718onegfqtdbtxfcmd
xvtfhkm8c9
914two8
vxzzvdhfqfsix83c1ttvbbstxgdrkfcnmm3
76mkvhmbkpm
8sixssmlzlhrnineggmrvg6
threeninedtr7219
two2geight
3nine9fivetwo9twohxhc8

What

This is a deno typscript script, which pulls all the pods in the cluster, and runs a given, web assembly compiled, opa policiy on each pod.

Requirements

Usage

What

This is a deno typscript script, which pulls all the pods in the cluster, and runs a given opa policiy on each pod.

Requirements

Usage

Keybase proof

I hereby claim:

  • I am themagicalkarp on github.
  • I am rsheehy (https://keybase.io/rsheehy) on keybase.
  • I have a public key whose fingerprint is BBA2 F984 AABD 717D E633 2744 6125 4BAE 1B8C 4E71

To claim this, I am signing this object:

@theMagicalKarp
theMagicalKarp / assignment_1.html
Created April 4, 2014 02:49
The goal of this assignment is to familiarize you with array handling in javascript. This is important because handling lists is very common when rendering html on a page. As a guideline you should only have to modify code inside the provided functions with comments. The rest of the code tests your implementations gives you feedback on your prog…
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Assignment 1</title>
<style>
@theMagicalKarp
theMagicalKarp / annoying_algorave.py
Created November 27, 2013 17:29
A sample of the new programming music craze.
import time
def beeps(count, offset):
for x in xrange(count):
print '\a'
time.sleep(offset)
for n in xrange(10):
beeps(n, .1)
time.sleep(.1)
@theMagicalKarp
theMagicalKarp / rainbow.html
Created September 16, 2013 00:24
Had the opportunity to play with colors in js/html and had a little too much fun.
<html>
<style>
div {
height:5px;
}
</style>
<body>
<script>
var htmlDivs = [];
var colors = [];
@theMagicalKarp
theMagicalKarp / kittenfy.js
Created August 2, 2013 14:21
A cute script to replace every image on a webpage with a kitten.
var images = document.getElementsByTagName("img");
for (var i = 0; i < images.length; i++) {
var image = images[i];
// images courtesy of placekitten.com
image.src = 'http://placekitten.com/g/' + image.width + '/' + image.height;
}
@theMagicalKarp
theMagicalKarp / memoize_decorator.py
Created July 31, 2013 21:39
This is a simple python decorator to cache a functions value by input.
import cPickle
def memoize(original_function, function_cache={}):
try:
cache = function_cache[original_function]
except KeyError:
cache = function_cache[original_function] = {}
def check_cache(*args, **kwargs):
hashed_kwargs = cPickle.dumps(kwargs)
try: