Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kurtis Rainbolt-Greene krainboltgreene

View GitHub Profile
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
View paper_trail.rb
module PaperTrail
class RecordTrail
def record_create
return unless enabled?
@in_after_callback = true
@record.class.paper_trail.version_class.after_transaction do
VersionJob.perform_async(@record.class.paper_trail.version_class, data_for_create)
end
ensure
View webpack.config.js
const path = require("path");
const WebpackNodeExternals = require('webpack-node-externals')
const commonConfiguration = {
mode: process.env.NODE_ENV || "development",
}
const moduleBabel = {
test: /index\.js$/,
exclude: /node_modules/,
use: {
View webpack.config.js
const path = require("path");
const WebpackNodeExternals = require('webpack-node-externals')
module.exports = [
{
mode: process.env.NODE_ENV || "development",
entry: "./source/server/index.js",
target: "node",
externals: [
WebpackNodeExternals()
View gist:c96bcb3684403fa208a96869ce7e104f
krainboltgreene@lovelace.lan at ~/Code/unctionjs/_tempLate on ± core 𝑓 rm -rf node_modules package-lock.json
krainboltgreene@lovelace.lan at ~/Code/unctionjs/_tempLate on ± core 𝑓 npm install
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN Invalid name: "@unction/{{FQNAME}}"
npm WARN _tempLate No description
npm WARN _tempLate No repository field.
npm WARN _tempLate No README data
npm WARN _tempLate No license field.
up to date in 0.76s
You can’t perform that action at this time.