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

Keybase proof

I hereby claim:

  • I am olso on github.
  • I am olso (https://keybase.io/olso) on keybase.
  • I have a public key ASAjyl8XHSDHwxAZp-o0tBRL9pOHZTa0IUfL_oSL8V7jVQo

To claim this, I am signing this object:

@olso
olso / timesheet-log.sh
Created July 31, 2017 09:49
Timesheet log
git log --after="2017-06-01" --until="2017-07-01" --pretty=format:'%ad;%s' --author='olso' > ~/Desktop/timesheet-june-log.csv
@olso
olso / chrome-disabled-web-sec.sh
Last active January 11, 2018 13:36
Launch Chrome with disabled web sec
open -n -a "Google Chrome" --args --disable-web-security --profile-directory="Profile 1"
@olso
olso / shamir-shares.md
Last active January 25, 2019 13:07
Shamir shares, if you crack, contains reward in form of bitcoin blockchain private key

secret-share-split --count 4 --threshold 3 > ~/shares.txt

01545e8642e2934a1074ff32bc8d491dade5821933258c22b00cebfa7c9b922fe01aeb3281093b513954ce25fb75ee32ea21333d7cac8dfbe319a91a874bbf0691b61dd2
025b2e71b0d9ec727319a57c879c72818c1d84bad26f41a0cd13bff6e6b42b60441aeb3281093b513954ce25fb75ee32ea21333d7cac8dfbe319a91a874bbf0691b61dd2
<?
// this script receives a Stripe dispute / chargeback and:
//
// - immediately refunds the payment
// - closes the user's account (in my DB, add your own code there)
//
// this is to automate dispute handling (because you never win a dispute on Stripe anyway)
// and by refunding avoiding the chargeback fee
//
@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);
@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 / 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 / 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