Skip to content

Instantly share code, notes, and snippets.

View kubijo's full-sized avatar

Josef Kubíček kubijo

  • Braiins s.r.o.
  • Prague
View GitHub Profile
@kubijo
kubijo / debug
Last active March 4, 2022 16:50
Download $release source maps from sentry
#!/usr/bin/env bash
SELF="${0##*/}"
function usage {
cat <<EOF
Download & server production release source-map files
if they exist in the sentry release files archive.
usage:
const path = require('path');
const { xfs } = require('@yarnpkg/fslib');
/**
* @example preffixCssPath('foo/bar/baz.scss') // >> 'foo/bar/_baz.scss'
*
* @param {String} p
* @return {string}
*/
function preffixCssPath(p) {
Traceback (most recent call last):
File "/opt/dev/braiins/bos-dashboard/.venv/lib/python2.7/site-packages/flask/app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)
File "/opt/dev/braiins/bos-dashboard/.venv/lib/python2.7/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/opt/dev/braiins/bos-dashboard/.venv/lib/python2.7/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/dev/braiins/bos-dashboard/.venv/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/opt/dev/braiins/bos-dashboard/.venv/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
#!/usr/bin/env node
const host = "192.168.0.241:9091";
const header = "Cleanup completed transmition torrents";
// Modules
const { execSync } = require("child_process");
// Utils
const call = args =>
@kubijo
kubijo / d3.flow.js
Last active July 10, 2020 09:22
flow types for several D3 APIs
// @flow
/* eslint-disable no-use-before-define */
//
// Primitives
//
type x = number;
type y = number;
type dx = number;
type dy = number;

Keybase proof

I hereby claim:

  • I am kubijo on github.
  • I am kubijo (https://keybase.io/kubijo) on keybase.
  • I have a public key ASCEuVFdsVgH7HoCjBfn_2BjB-krcW0XN5Zv6m0LczCkVQo

To claim this, I am signing this object: