Skip to content

Instantly share code, notes, and snippets.


Patrick Drechsler draptik

View GitHub Profile
draptik /
Created Jun 9, 2021
theme layout

This is a long title, but it's on a single line with 4k

There are 13 bullet points

  • foo01
draptik /
Last active Jan 1, 2021
Problems with F# SAFE linux 2020

Problems with SAFE Demos

I'm having trouble using the provided documentation/demos.

Main problems:

  • linux: demos are often windows-centric
  • since I'm using linux, I can't use .NET-Framework4.x... -> dotnet core (dotnet core 5)
  • FAKE and Paket have evolved, but most of the examples provided on will not compile under linux
    • NOTE: while learning SAFE, I don't want to spend my time also learning a new build system (FAKE) and
draptik /
Created Mar 18, 2020
create self-signed server and client certificate with openssl
## Create self signed certificate (server and client)
## Combination of
## -
## -
## Configuration file: `openssl.cnf` contains information about the site being configured.
View sql-murder-mystery-solution.sql
-- witness 1
--SELECT * from interview where person_id = 14887
--select * from get_fit_now_member where id like '48Z%' and membership_status = 'gold'
--select * from drivers_license where plate_number like '%H42W%'
-- witness 1
--select p.* from person p
--join drivers_license dl on p.license_id =
draptik /
Last active Jan 14, 2020
A solution to clmystery: A Command line murder mystery (

Solving the riddle

A solution to clmystery: Command line murder mystery.

Get all clues

grep "CLUE" crimescene

CLUE: Footage from an ATM security camera is blurry but shows that the perpetrator is a tall male, at least 6'.
View combine-pdf-pages
pdfjam --nup 2x3 \
--frame true \
--noautoscale false \
--delta "0.2cm 0.3cm" \
--scale 0.95 \
## Temporary workaround for ncurses bug (
export TERM=xterm
## Cleanup
draptik / Class1.cs
Created Jul 31, 2017
View Class1.cs
using FluentAssertions;
using Xunit;
namespace FooTests
/// <summary>
/// Important note: Fixtures can be shared across assemblies, but collection definitions must
/// be in the same assembly as the test that uses them.
View .gitconfig
default = simple
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ec = config --global -e
s = status
co = checkout
cob = checkout -b
up = pull --rebase
cm = !git add -A && git commit -m
docker run \
--rm \
-it \
-e LOCAL_USER_ID=`id -u $USER` \
-p 4001:4001 \
-v ${PWD}/share/octopress:/octopress \
-v ${PWD}/ \
draptik/octopress:0.2 \