Skip to content

Instantly share code, notes, and snippets.

View cast.go
package main
import (
"encoding/json"
"fmt"
"reflect"
)
type FruitBasket struct {
Name string
View casc
apiVersion: jenkins.io/v1alpha2
kind: Jenkins
metadata:
name: custom
spec:
groovyScripts:
configurations:
- name: jenkins-operator-user-configuration-sporting
configurationAsCode:
configurations:
View casc
apiVersion: jenkins.io/v1alpha2
kind: Jenkins
metadata:
name: custom
spec:
groovyScripts:
configurations:
- name: jenkins-operator-user-configuration-sporting
configurationAsCode:
configurations:
View gist:2a38835ac91bb8a3e7e6ce540ab3a10e
#! perl
# This extension implements vim like scrollback buffer navigation, search, and
# paste. Initially based on the searchable-scrollback extension and some gf
# related code borrowed from the matcher extension.
#
# Copyright (C) 2007 - 2013 Eric Van Dewoestine
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
View instance.tf
resource "google_compute_instance" "publicinstances" {
count = length(local.mappublicinstances)
project = var.serviceprojectid
dynamic "service_account"{
for_each = local.mappublicinstances[count.index]["sa"] == true ? [true] : []
content {
scopes = ["https://www.googleapis.com/auth/bigquery","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/source.full_control","https://www.googleapis.com/auth/source.read_only","https://www.googleapis.com/auth/compute.readonly","https://www.googleapis.com/auth/compute","https://www.googleapis.com/auth/datastore","https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/pubsub","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","
View i3.conf
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
View gist:0e451a73e1d4898be8e8c4c63d23c4cd
~/.mozilla/firefox/ijh87dyn.default/chrome cat userChrome.css
#urlbar,
#searchbar
{
font-size: 16px !important;
border-radius: 99px !important;
background-color: var(--toolbar-field-background-color) !important;
color: inherit !important;
border: 0 !important;
box-shadow: none !important;
View gist:2c4ee1eaa918ba56efdc69691480938b
set nocompatible
syntax on
filetype plugin indent on
call plug#begin('~/.vim/plugged')
" (Optinal) for Tag Sidebar
" Plug 'majutsushi/tagbar'
Plug 'scrooloose/nerdcommenter'
View denier.yaml
apiVersion: "config.istio.io/v1alpha2"
kind: denier
metadata:
name: denyproductpagehandler
namespace: default
spec:
status:
code: 7
message: Not allowed
---
View gist:66bad61c70eb7e8977a8dc56735b2def
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "httpbin.example.com"
- "nginx.example.com"
- "nets.example.com"
gateways: