Skip to content

Instantly share code, notes, and snippets.

View cfcosta's full-sized avatar

Cainã Costa cfcosta

  • São Paulo, Brazil
View GitHub Profile
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/actions/GraphDataThunkActions.ts:35:80 - 'getState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/app/App.tsx:33:20 - 'e' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/app/AuthenticationController.tsx:67:5 - 'prevState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/BreadcrumbView/BreadcrumbView.tsx:65:5 - 'prevState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/BreadcrumbView/BreadcrumbView.tsx:66:5 - 'snapshot' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/CytoscapeGraph/ContextMenu/NodeContextMenu.tsx:147:22 - 'e' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/ki
$ npm run snyk-protect
> @kiali/kiali-ui@0.22.0 snyk-protect /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui
> snyk protect
<--- Last few GCs --->
[1712:0x5568d38c50a0] 67669 ms: Mark-sweep 1280.0 (1416.8) -> 1279.9 (1360.8) MB, 122.0 / 0.0 ms (average mu = 0.197, current mu = 0.000) last resort GC in old space requested
[1712:0x5568d38c50a0] 67797 ms: Mark-sweep 1279.9 (1360.8) -> 1279.9 (1352.3) MB, 128.3 / 0.0 ms (average mu = 0.105, current mu = 0.000) last resort GC in old space requested
use nom::is_alphabetic;
use std::str;
#[derive(Debug, PartialEq, Eq)]
pub enum Keyword {
Unknown,
Help,
Echo,
}
" Indent configuration
autocmd BufRead neomutt-* setf mail
autocmd BufRead *.tsx setf typescript
autocmd FileType bash,zsh setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType c,cpp setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType css,html setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType elm setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType go setlocal ts=2 sts=2 sw=2 noexpandtab list
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 re=1 expandtab
autocmd FileType sql setlocal ts=2 sts=2 sw=2 expandtab
FROM rhel7 as builder
ADD kiali /go/src/github.com/kiali/kiali
ADD kiali-ui /go/src/github.com/kiali/kiali-ui
ENV GOPATH=/go
WORKDIR /go/src/github.com/kiali/kiali
RUN yum upgrade -y
#set -xe
#docker-compose build
istioctl delete -f openshift/istio.yml
oc delete project poller
echo -n "Waiting until project is destroyed"
until ! oc get projects | grep "poller" &>/dev/null; do
echo -n .
FROM golang:alpine as golang-builder
ADD kiali /go/src/github.com/kiali/kiali
WORKDIR /go/src/github.com/kiali/kiali
RUN apk add make bash git && make build
FROM node:8-alpine as node-builder
ADD kiali-ui /opt/kiali-ui
WORKDIR /opt/kiali-ui
RUN apk update && apk add git && npm install -g yarn && yarn install && yarn build && ls -lah .
#!/usr/bin/bash
set -xe
SOURCE_ROOT="$(dirname "${BASH_SOURCE}")"
generate_mesh()
{
deploy_pair kiali-test-composite-pingpong
deploy_pair kiali-test-composite-depth
generate_traffic.rb
test-service/deploy/openshift/generate-mesh.sh
[package]
name = "hello"
version = "0.1.0"
authors = ["Cainã Costa <me@cfcosta.com>"]
[dependencies]
rocket = { version = "*", features = ["testing"] }
rocket_codegen = "*"
[dev-dependencies]