Skip to content

Instantly share code, notes, and snippets.

View matus123's full-sized avatar

Matus Kislan matus123

View GitHub Profile
@matus123
matus123 / gist:723d15f8dd9b29069a8ffa4162534118
Created March 24, 2021 12:06
spark kubernetes service account errors
21/03/24 11:13:04 INFO SparkContext: Running Spark version 3.1.1
21/03/24 11:13:04 INFO ResourceUtils: ==============================================================
21/03/24 11:13:04 INFO ResourceUtils: No custom resources configured for spark.driver.
21/03/24 11:13:04 INFO ResourceUtils: ==============================================================
21/03/24 11:13:04 INFO SparkContext: Submitted application: test_fn4444
21/03/24 11:13:04 INFO ResourceProfile: Default ResourceProfile created, executor resources: Map(cores -> name: cores, amount: 1, script: , vendor: , memory -> name: memory, amount: 512, script: , vendor: , offHeap -> name: offHeap, amount: 0, script: , vendor: ), task resources: Map(cpus -> name: cpus, amount: 1.0)
21/03/24 11:13:04 INFO ResourceProfile: Limiting resource is cpus at 1 tasks per executor
21/03/24 11:13:04 INFO ResourceProfileManager: Added ResourceProfile id: 0
21/03/24 11:13:04 INFO SecurityManager: Changing view acls to: 185,root
21/03/24 11:13:04 INFO SecurityManager: Cha
# COPIED FROM https://github.com/interline-io/valhalla-docker
# Dockerfile to build Valhalla in stage 1,
# then build our image by pulling out
# the compiled Valhalla binaries from stage 1.
# #####################################
# ############ STAGE 1 ################
# #####################################
@matus123
matus123 / gist:7c9f7650d2dc707132e507de2f96dc32
Created April 23, 2020 10:36
bullmq repeat jobs with multiple queueSchedulers
const { Queue, QueueScheduler, Worker } = require('bullmq');
const connection = {
host: 'localhost',
port: 60002,
};
function delay(ms) {
return new Promise((resolve) => {
setTimeout(() => resolve(), ms);
@matus123
matus123 / test.js
Last active April 22, 2020 13:26
bullmq repeat jobs
const { Queue, QueueScheduler, Worker } = require('bullmq');
const connection = {
host: 'localhost',
port: 60002,
};
function delay(ms) {
return new Promise((resolve) => {
setTimeout(() => resolve(), ms);
@matus123
matus123 / fullscreen bug
Created July 7, 2015 17:56
SFML 2.3 fullscreen bug Linux
#include <iostream>
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow m_window( sf::VideoMode(1366, 768, 24), "test v0.1", sf::Style::Fullscreen);
//sf::RenderWindow m_window( sf::VideoMode(1923, 1241, 124), "test v0.1", sf::Style::Fullscreen);