Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View olso's full-sized avatar
🏠
Working from home

Martin Olsansky olso

🏠
Working from home
View GitHub Profile
@olso
olso / my-spotify.json
Last active July 5, 2023 08:51
sziget festival 2023 music artists (376) - created 04.07.2023
["011eVl0FyqNUnk3QYmk8WL","01p7Homi0d4XxZ06f2NYYD","022EiWsch2zvty0qBUksDO","023YMawCG3OvACmRjWxLWC","02BMnlA7rSCkmRL0bk5yBI","02kJSzxNuaWGqwubyUba0Z","03izpJLcUsyHBRo8B0VmpV","03r4iKL2g2442PT9n2UKsx","041iTeoMIwXMlShuQPIVKo","04c4aSTmNl9PZenyKf9HAZ","04ei5kNgmDuNAydFhhIHnD","04sdYA6aRRrgtQbIj2Z8Fm","04tBaW21jyUfeP5iqiKBVq","053q0ukIDRgzwTr4vNSwab","057qREWR4HFblc9ghFDqZn","066X20Nz7iquqkkCW6Jxy6","06xa1OLBsMQJFXcl2tQkH4","07EcmJpfAday8xGkslfanE","07MxlqJkTQAH8jHkTLii9l","07RLNeraLVTmD306R6en8j","07W5P7XeF76KG9QecpdSCC","07d5etnpjriczFBB8pxmRe","085pc2PYOi8bGKj0PNjekA","0AkpPlFLnr0VQwZQeMGht0","0C0XlULifJtAgn6ZNCW2eu","0CbbftseLRwYyUdmOXvH6l","0CfkmCl2XN2IWxYcMzPMlq","0D4Wk6S4YE9fbVSozQ6vq2","0DGAOR3KtqWwWSwDzhzqOa","0EEHriKw0Gzrmb2ZII2apY","0GZP8QBchHTcjn9jFtLDtK","0HlxL5hisLf59ETEPM3cUA","0IF46mUS8NXjgHabxk2MCM","0JlTFsR41vwvQTppOR3yio","0KvmdoRMUgAuHqgVJGuIMd","0L8ExT028jH3ddEcZwqJJ5","0NDElNqwGRCmsYIQFapp6K","0NTJ337UEOc4nerp6w7msP","0NbfKEOTQCcwd6o7wSDOHI","0O7NhieDairfQvi9jr66Cx","0O98jlCaPzvsoei6U5jfEL
1. resend all rides to your email throught app (manual clicking but not so bad)
2. in gmail, go to settings and disable conversation mode view
3. select all emails from bold and right click to send as attachement
4. send this email to yourself
5. download all attachements
6. (optinal) revert settings in step 2.
download invoices using bash:
for f in * ; do
URL=`grep -roh "$f" -e 'https:\/\/invoice.taxify.eu\/[^"]*'`
@olso
olso / gist:78634c1f87f523fbcf5455c1b4e4fc52
Created June 24, 2020 11:12
Gitlab multiple runners on the same host and limit one job per runner, due to node module caching. Also separated runner per repo
concurrent = 4
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "hoeapp"
url = "https://gitlab.com/"
token = ""
@olso
olso / LottieWebReact.tsx
Last active January 19, 2023 01:38
Lottie web example with react, styled components, hooks, typescript, ssr, without memory leaks (hopefully)
import * as React from "react";
import styled from "styled-components";
import lottie from "lottie-web";
import { up } from "styled-breakpoints";
import { isServer } from "client/consts/env";
const Container = styled.div`
width: 100vw;
height: 100vh;
@olso
olso / how.md
Created May 28, 2019 21:20
audi a3 engineering menu

No SD in the MMI insert !!!

  1. Unpack the downloaded file and copy it directly to the root of the SD

  2. Start up the MMI, wait 2-3 minutes (it's important to wait, otherwise it will not start the script!)

  3. Insert SD in slot 1

  4. Now should automatically open an Audi image with the message "Rotate switch to Hidden Menu activation to start!", The message should then disappear immediately.

@olso
olso / Genomics_A_Programmers_Guide.md
Created May 17, 2019 22:28 — forked from andy-thomason/Genomics_A_Programmers_Guide.md
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@olso
olso / checkpoint.sh
Created April 1, 2019 11:56 — forked from bubenkoff/checkpoint.sh
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
# Usage: checkpoint.sh load|unload
# You will need sudo power, of course
#
if [ $1 == "unload" ]
@olso
olso / node-haskell.md
Created March 13, 2019 18:04 — forked from paf31/node-haskell.md
Reimplementing a NodeJS Service in Haskell

Introduction

At DICOM Grid, we recently made the decision to use Haskell for some of our newer projects, mostly small, independent web services. This isn't the first time I've had the opportunity to use Haskell at work - I had previously used Haskell to write tools to automate some processes like generation of documentation for TypeScript code - but this is the first time we will be deploying Haskell code into production.

Over the past few months, I have been working on two Haskell services:

  • A reimplementation of an existing socket.io service, previously written for NodeJS using TypeScript.
  • A new service, which would interact with third-party components using standard data formats from the medical industry.

I will write here mostly about the first project, since it is a self-contained project which provides a good example of the power of Haskell. Moreover, the proces

@olso
olso / import_ESCO_csv_en.cql
Created February 18, 2019 11:47 — forked from rvanbruggen/import_ESCO_csv_en.cql
ESCO database in Neo4j
//Import ESCO using CSV files
create index ON :Occupation(ISCOGroup);
create index ON :Occupation(altLabels);
create index ON :Skill(altLabels);
create index ON :ISCOGroup(code);
create index ON :Skill(conceptUri);
create index ON :ISCOGroup(conceptUri);
create index ON :Occupation(conceptUri);
create index ON :Occupation(preferredLabel);
create index ON :Skill(preferredLabel);