Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kurtis Rainbolt-Greene krainboltgreene

🏠
Working from home
Block or report user

Report or block krainboltgreene

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:694be83f3d6573a1cfc16786d511d6a9
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = tapeToJest;
var _imports = require("../utils/imports");
var _consts = require("../utils/consts");
View example.js
get('hello')(new Map([['hello', 'world']]))
get('hello')({hello: 'world'})
get('hello')({goodbye: 'world'})
get(0)(['hello world'])
get(0)('hello world')
get(0)(null)
get(0)(undefined)
View bracketeering.js
const {upTo} = require("@unction/complete")
const {length} = require("@unction/complete")
const {reverse} = require("@unction/complete")
const {shuffle} = require("@unction/complete")
const {sample} = require("@unction/complete")
const {reduceKeys} = require("@unction/complete")
const {reduceWithValueKey} = require("@unction/complete")
const {mapValues} = require("@unction/complete")
const {last} = require("@unction/complete")
const {first} = require("@unction/complete")
View chunk.js
const chunk =
(maximum) =>
(list) =>
reduceWithValueKey(
(accumulated) =>
(item) =>
(index) => {
const [latestChunk, ...previousChunks] = accumulated;
if ((length(latestChunk) !== maximum) && (length(list) === index + 1)) {
View dictionary.json
{
"Abbreviations": [{
"det": "determiner",
"n": "noun",
"vi": "intransitive",
"vt": "transitive",
"vs": "stative",
"ex": "example"
}],
"Pronouns": [{
View .babelrc
{
"presets": [
"@babel/preset-typescript",
"@babel/env",
"minify"
],
"plugins": [
["module-resolver", {"alias": {"^@types/(.+)$": "./types/\\1"}}],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-object-rest-spread"
View search-console.rb
require "highline"
class RenderingEngine < Concurrent::Actor::Context
attr_reader :search
attr_reader :terminal
attr_reader :previous
attr_reader :current
def initialize()
@search = SearchEngine.spawn(:search)
View gist:b5e8a31454d469a26f8fb95a01fde0cc
E0324 19:04:43.304806 1 reflector.go:134] github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:282: Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:default:promtail" cannot list pods at the cluster scope
level=debug ts=2019-03-24T19:04:49.135627749Z caller=filetargetmanager.go:130 msg="new target" labels="{__address__=\"10.32.0.4\", __meta_kubernetes_pod_container_name=\"fluentd-gcp\"}"
level=debug ts=2019-03-24T19:04:49.138892921Z caller=filetargetmanager.go:144 msg="ignoring target, wrong host" labels="{__address__=\"10.32.0.4\", __host__=\"gke-primary-production-default-pool-a94f2735-037l\", __meta_kubernetes_namespace=\"kube-system\", __meta_kubernetes_pod_annotation_scheduler_alpha_kubernetes_io_critical_pod=\"\", __meta_kubernetes_pod_container_name=\"fluentd-gcp\", __meta_kubernetes_pod_controller_kind=\"DaemonSet\", __meta_kubernetes_pod_controller_name=\"fluentd-gcp-v3.2.0\", __meta_kubernetes_pod_host_ip=\"10.138.0.13\", __meta_kubernetes_pod_ip=\"10.32.0.
View new.txt
-~[
- ~{
- "attributes" => ~{
- "confidentality-status" => "white",
- "pod" => "global"
- }
- }
-]
+[]
View docker-compose.yml
version: "3.7"
x-logging-elk: &logging-elk
# driver: json-file
driver: gelf
options:
gelf-address: udp://172.16.0.38:12201
labels: container_group
x-sentry-environment: &sentry-environment
You can’t perform that action at this time.