Skip to content

Instantly share code, notes, and snippets.

View barbalex's full-sized avatar

Alexander Gabriel barbalex

View GitHub Profile
{
"uzl": null,
"wzl": null,
"taxon": "Orobanche purpurea aggr.",
"canton": "SH",
"family": "Orobanchaceae",
"obs_id": 770499,
"country": "CH",
"evab_id": null,
"name_de": "Violetter Würger",
{
"uzl": null,
"wzl": null,
"taxon": "Chara intermedia A. Braun",
"canton": "ZH",
"family": "Characeae",
"obs_id": 4081375,
"country": "CH",
"evab_id": null,
"name_de": "Kurzstachelige Armleuchteralge",
import { SubscriptionClient } from 'subscriptions-transport-ws'
const getToken = () => {
const none =
'eyJhbGciOiJIUzUxMiIsImtpZCI6IjRlMjdmNWIwNjllYWQ4ZjliZWYxZDE0Y2M2Mjc5YmRmYWYzNGM1MWIiLCJ0eXAiOiJKV1QifQ.eyJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLWRlZmF1bHQtcm9sZSI6Im5vbmUiLCJ4LWhhc3VyYS1hbGxvd2VkLXJvbGVzIjpbIm5vbmUiXSwieC1oYXN1cmEtdXNlci1pZCI6ImFhYWFhYWFhLWFhYWEtMTFlYS1hYWFhLWFhYWFhYWFhYWFhYSJ9LCJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vdmVybWVocnVuZy1hYWFhYSIsImF1ZCI6InZlcm1laHJ1bmctZjQ4YzQiLCJhdXRoX3RpbWUiOjE1OTE5Njg3MzQsInVzZXJfaWQiOiJYUnV6eHAxWDJ3YWFhYWF5ek9hV1Y2emdhYWFhIiwic3ViIjoiWFJ1enhwMVhhYWFhb3l6T2FXVjZ6Z0NDTDIiLCJpYXQiOjE1OTE5NjkzNDksImV4cCI6MTU5MTk3Mjk0OSwiZW1haWwiOiJ0ZXN0QHRlc3QuY2giLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsidGVzdEB0ZXN0LmNoIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0._BWw-QO7K_oTr72pHZBl4OlXox3_x59IGEnllj3PwaFO8fylhQX7YZyaNev7iqeiyzx2DRZyAQyFhffNjEWyog'
return window.localStorage.getItem('token') ?? none
}
[notice] 2020-02-02T21:55:06.409547Z nonode@nohost <0.352.0> -------- couch_replicator_scheduler: Job {"23028dc37efbde358d34e71bdd008813",[]} started as <0.22001.2>
[notice] 2020-02-02T21:55:08.098648Z nonode@nohost <0.352.0> -------- couch_replicator_scheduler: Job {"038a2d41f8b4d2858fdcd0b0b696c98e",[]} started as <0.22031.2>
[notice] 2020-02-02T21:55:09.583346Z nonode@nohost <0.22027.2> 3d629e946e localhost:5984 127.0.0.1 undefined POST /_session 200 ok 9
[notice] 2020-02-02T21:55:09.586781Z nonode@nohost <0.22027.2> fcd1e03905 localhost:5984 127.0.0.1 admin GET /bb/ 200 ok 3
[notice] 2020-02-02T21:55:09.586839Z nonode@nohost <0.22028.2> e6dc9119a2 127.0.0.1:5984 127.0.0.1 undefined GET /bb/ 200 ok 12
[notice] 2020-02-02T21:55:09.608993Z nonode@nohost <0.22027.2> 676d85b78b localhost:5984 127.0.0.1 admin GET /bb/ 200 ok 1
[notice] 2020-02-02T21:55:09.610082Z nonode@nohost <0.22028.2> 3ac14b9b5a 127.0.0.1:5984 127.0.0.1 undefined GET /bb/ 200 ok 1
[notice] 2020-02-02T21:55:09.695541Z nonode@nohost <0.22027.
@barbalex
barbalex / hasura_log.json
Created December 17, 2019 14:14
hasura log when updating
{"type":"startup","timestamp":"2019-12-17T13:53:29.123+0000","level":"info","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","plan_cache_options":{"plan_cache_size":null},"enabled_log_types":["http-log","websocket-log","startup","webhook-log"],"server_host":"HostAny","enable_allowlist":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":true,"unauth_role":null,"stringify_numeric_types":false,"enabled_apis":["metadata","graphql","config","pgdump"],"enable_telemetry":true,"enable_console":true,"auth_hook":null,"jwt_secret":{"audience":null,"claims_format":null,"claims_namespace":null,"key":"<JWK REDACTED>","type":"RS512","issuer":null},"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"console_assets_dir":null,"admin_secret_set":true,"port":8080}}}
{"type":"startup","timestamp":"2019-12-17T13:53:29.123+0000","level":"info","detail":{"kind":"postgres_co
@barbalex
barbalex / query-log.json
Created November 15, 2019 16:40
query-log after updating to beta.10
{
"internal": [
{
"definition": {
"role": "generalist",
"comment": null,
"permission": {
"set": {},
"check": {},
"columns": [
@barbalex
barbalex / log.json
Last active November 15, 2019 10:08
hasura server error
{
"timestamp": "2019-11-14T23:44:41.922+0000",
"level": "info",
"type": "startup",
"detail": {
"kind": "server_configuration",
"info": {
"live_query_options": {
"batch_size": 100,
"refetch_delay": 1
Alexanders-MacBook-Pro:awel-personal alexandergabriel$ node_modules/.bin/electron-rebuild -f -w better-sqlite3
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/alexandergabriel/awel-personal/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
/**
* writes a dataArray to an Excel workbook
*/
import Promise from 'bluebird'
const Excel = require('exceljs')
export default (path, dataArray) =>
new Promise((resolve, reject) => {
{
"name": "Kapla",
"productName": "Kapla",
"description": "Instrument, mit dem die Abteilung Recht des AWEL Geschäfte erfasst und Fristen kontrolliert",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/chentsulin/electron-react-boilerplate.git"
},
"author": {