Skip to content

Instantly share code, notes, and snippets.

const request = require('request');
const fs = require('fs');
const fileData = fs.createReadStream('evidence.txt');
request.post({
url: 'http://sscs-tribunals-api-demo.service.core-compute-demo.internal/evidence/upload',
headers: {
'Content-Type': 'multipart/form-data'
},
formData: {
file: {
const request = require('request');
const fs = require('fs');
const fileData = fs.createReadStream('evidence.txt');
request.post({
url: 'http://sscs-tribunals-api-demo.service.core-compute-demo.internal/evidence/upload',
headers: {
'Content-Type': 'multipart/form-data'
},
formData: {
file: {
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "httpbin.example.com"
- "nginx.example.com"
- "nets.example.com"
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "httpbin.example.com"
- "nginx.example.com"
- "nets.example.com"
gateways:
apiVersion: "config.istio.io/v1alpha2"
kind: denier
metadata:
name: denyproductpagehandler
namespace: default
spec:
status:
code: 7
message: Not allowed
---
set nocompatible
syntax on
filetype plugin indent on
call plug#begin('~/.vim/plugged')
" (Optinal) for Tag Sidebar
" Plug 'majutsushi/tagbar'
Plug 'scrooloose/nerdcommenter'
~/.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;
@bechampion
bechampion / i3.conf
Created April 10, 2019 09:39
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!
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","
#! 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