- Create a GKE cluster with a GPU node pool:
gcloud container clusters create gpu-sharing-demo --zone us-central1-c
import ec2 = require('@aws-cdk/aws-ec2'); | |
import ecs = require('@aws-cdk/aws-ecs'); | |
import secrets = require('@aws-cdk/aws-secretsmanager'); | |
import cdk = require('@aws-cdk/core'); | |
export interface StaticSiteProps extends cdk.StackProps { | |
connectionString: string; | |
hasuraVersion: string; | |
vpc: ec2.IVpc; | |
} |
// LZW-compress a string | |
function lzw_encode(s) { | |
var dict = {}; | |
var data = (s + "").split(""); | |
var out = []; | |
var currChar; | |
var phrase = data[0]; | |
var code = 256; | |
for (var i=1; i<data.length; i++) { | |
currChar=data[i]; |
javascript:(function() { | |
var bookmarklet = { | |
init: function() { | |
this.parse(); | |
}, | |
parse: function() { | |
page = ""; | |
$(".PlaylistPage:visible") | |
.children(".Collection") | |
.find(".Track") |
This repository contains files tailored for bootstrapping, installing and configuring ElasticSearch with Chef Solo on the Ubuntu operating system, inspired by this article.
Launch and ssh into Ubuntu 12.04 instance (if on ec2, use ami from alestic.com and with a security group as detailed here)
Now, copy the files to the machine and execute the bootstrap script:
import Data.Maybe | |
import Control.Monad | |
type Literal = Integer | |
type Clause = [Literal] | |
type Formula = [Clause] | |
type Record = [Literal] | |
data SolverState = SolverState { formula :: Formula | |
, record :: Record |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |