Skip to content

Instantly share code, notes, and snippets.

@kacurez
kacurez / apiCalls.md
Last active July 18, 2023 08:21
create workspace data filter setting via CRUD

1. Create parent workspace

curl --location 'http://localhost:3000//api/v1/entities/workspaces' \
--header 'Content-Type: application/vnd.gooddata.api+json' \
--header 'Accept: application/vnd.gooddata.api+json' \
--header 'Authorization: Bearer YWRtaW46Ym9vdHN0cmFwOmFkbWluMTIz' \
--data '{
  "data": {
    "id": "parent-workspace",
    "type": "workspace",
@kacurez
kacurez / Isolated network of docker container run from AKS POD.md
Last active December 11, 2019 16:47
description of the problem we encoutner when trying to implement our platform infrastructure in Azure aks via Azure CNI networking mode

Application overview

We allow to run 3rd party docker containers on our platform. A process that is responsible for running those 3rd party docker containers is called docker runner. The docker runner has access to the internal database(mysql db) however the 3rd party docker containers run from the docker runner can only have access to the internet and access to the internal database must be denied.

Application implementation in Azure kubernetes service and the problem

Have a look at the following picture: image

We have an aks cluster deployed into vnet(AKS virtual network) via Azure CNI(Advanced networking) where:

@kacurez
kacurez / test.md
Last active December 11, 2019 11:39

image

@kacurez
kacurez / custom_credentials_auth.md
Last active August 7, 2019 13:37
custom credentials authorization for google drive extractor

Instructions for authorization setup via custom credentials for Google Drive Extractor

  1. Go to https://console.developers.google.com
  2. Select a an existing project or create a new one image
  3. Go to APIs Overview and click on + Enable APIS and Services image
  4. Allow Google Drive API and Google Sheets API - search for the Google Drive API and in the detail click on Enable button. Repeat the step to allow Google Sheets API as well. image image
@kacurez
kacurez / renameTableCaseSensitiveTest.sql
Last active July 17, 2019 14:13
mysql rename table drop constraint fail
-- this script fails on Mysql 5.7 hosted on Azure but works on the same MySQL 5.7 hosted on AWS.
DROP TABLE IF EXISTS `Table2Renamed`;
DROP TABLE IF EXISTS `Table2`;
DROP TABLE IF EXISTS `Table1`;
CREATE TABLE `Table1` (
`id` int(11) unsigned NOT NULL,
`value` text DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
import React from 'react';
import route from '../../utils/configRowsRoute';
import { createConfiguration as rowCreateConfiguration, parseConfiguration as rowParseConfiguration } from './adapters/row';
import { createConfiguration as credentialsCreateConfiguration, parseConfiguration as credentialsParseConfiguration, isCompleted as credentialsIsCompleted } from './adapters/credentials';
import ConfigurationForm from './react/components/Configuration';
import CredentialsForm from './react/components/Credentials';
import fuzzy from 'fuzzy';
const routeSettings = {
@kacurez
kacurez / pokus.md
Last active December 19, 2017 13:56

aaaaa

pokus

  • aa
  • fsdf
  • asdasd

image