Skip to content

Instantly share code, notes, and snippets.

View jbub's full-sized avatar

Juraj Bubniak jbub

View GitHub Profile
@jbub
jbub / pgcat.toml
Created May 15, 2023 07:27
pgcat.toml
# General pooler settings
[general]
# What IP to run on, 0.0.0.0 means accessible from everywhere.
host = "0.0.0.0"
# Port to run on, same as PgBouncer used in this example.
port = 6432
# Whether to enable prometheus exporter or not.
enable_prometheus_exporter = true
@jbub
jbub / resp.json
Created December 3, 2021 07:27
Fakturoid invoice API response
{
"accepted_at": null,
"attachment": null,
"bank_account": "655664",
"cancelled_at": null,
"client_city": "",
"client_country": "SK",
"client_local_vat_no": "",
"client_name": "Test customer",
"client_registration_no": "",
@jbub
jbub / log.txt
Created March 5, 2019 22:03
Athens minio crash
gc 1 @0.194s 1%: 0.039+9.2+0.88 ms clock, 0.079+5.5/0.47/8.1+1.7 ms cpu, 4->4->1 MB, 5 MB goal, 2 P
gc 2 @0.515s 1%: 0.014+7.9+0.039 ms clock, 0.029+0.79/1.8/4.9+0.078 ms cpu, 4->4->2 MB, 5 MB goal, 2 P
gc 3 @0.578s 0%: 0.010+2.4+0.032 ms clock, 0.021+0.34/0.011/2.3+0.065 ms cpu, 5->5->2 MB, 6 MB goal, 2 P
gc 4 @0.656s 0%: 0.007+2.3+0.21 ms clock, 0.014+0.13/1.2/1.7+0.43 ms cpu, 5->5->2 MB, 6 MB goal, 2 P
gc 5 @0.678s 0%: 0.008+2.6+0.035 ms clock, 0.017+0.18/0.38/2.0+0.070 ms cpu, 5->5->3 MB, 6 MB goal, 2 P
buffalo: Unless you set SESSION_SECRET env variable, your session storage is not protected!
time="2019-03-05T21:57:51Z" level=info msg="Exporter not specified. Traces won't be exported"
buffalo: Starting application at :3009
gc 6 @42.566s 0%: 3.3+6.9+0.039 ms clock, 6.6+0.24/3.9/0+0.078 ms cpu, 6->6->3 MB, 7 MB goal, 2 P
gc 7 @44.055s 0%: 0.010+15+0.043 ms clock, 0.020+0.11/7.7/10+0.086 ms cpu, 580->580->580 MB, 581 MB goal, 2 P
data:
count: 100
format:
name: csv
options:
delimiter: ";"
fields:
- name: id
resolver: ctx_index
- name: cookie
@jbub
jbub / spec.yml
Last active November 14, 2018 13:15
data:
count: 20
format:
name: csv
options:
delimiter: ";"
fields:
- name: id
resolver: ctx_index
- name: cookie
schema: ../schema.graphql
models:
DateTime:
model: my.domain.com/project/types.DateTime
exec:
filename: schema.go
model:
filename: models.go
@jbub
jbub / hl.md
Last active June 1, 2018 05:25

title: Plot Pie Charts of Tuna Landed Catch Composition on a Map in R author: Jethro Emmanuel date: "2018-05-30T10:10:44+08:00" slug: plot-pie-chart-tuna-landed-catch-map-in-r categories:

  • R
  • ggplot2 tags:
  • r
<section id="main">
  <div>
    <h1 id="title">{{ .Title }}</h1>
    {{ range .Data.Pages }}
      {{ .Render "summary"}}
    {{ end }}
  </div>
</section>
@jbub
jbub / cel.py
Created February 22, 2018 10:42
from celery import Celery
from celery.utils.log import get_task_logger
logger = get_task_logger(__name__)
app = Celery('cel')
app.config_from_object('celeryconfig')
@jbub
jbub / conf.py
Created December 20, 2017 09:13
BROKER_URL = env('BROKER_URL')
BROKER_HEARTBEAT = 30
BROKER_CONNECTION_TIMEOUT = 30
CELERYD_LOG_FORMAT = '[%(asctime)s:] %(message)s'
CELERYD_TASK_LOG_FORMAT = '[%(asctime)s:] %(message)s'
CELERY_DEFAULT_QUEUE = 'default'
CELERY_DEFAULT_EXCHANGE = 'default'
CELERY_DEFAULT_ROUTING_KEY = 'default'
CELERY_DEFAULT_EXCHANGE_TYPE = 'direct'