Skip to content

Instantly share code, notes, and snippets.

View sthagen's full-sized avatar
🏔️
above snow inside ☁️

Stefan Hagen sthagen

🏔️
above snow inside ☁️
View GitHub Profile
### Keybase proof
I hereby claim:
* I am sdrees on github.
* I am stefanhagen (https://keybase.io/stefanhagen) on keybase.
* I have a public key whose fingerprint is 2C06 803C B4FB FE2F F7D7 CC58 7890 A9A6 BD44 04E8
To claim this, I am signing this object:
@sthagen
sthagen / compiling_building_c_cpp_notes.md
Created June 22, 2019 18:47 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015.

Include Paths

On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found.

With gcc and llvm include paths are passed with -I/path/to/includes, you can pass as many -I as you need.

In Windows, cl.exe takes include paths with the following syntax: /I"c:\path\to\includes\ you can also pass as many as you need.

name: Elixir CI
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
@sthagen
sthagen / go-shebang-story.md
Created October 5, 2019 07:02 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

Keybase proof

I hereby claim:

  • I am sthagen on github.
  • I am stefanhagen (https://keybase.io/stefanhagen) on keybase.
  • I have a public key ASCR_oVOd30zOqjDn6r-EFsHpe0eKf0HiA-Qjs0dm0PI8wo

To claim this, I am signing this object:

@sthagen
sthagen / geo_interface.rst
Created March 6, 2020 21:19 — forked from sgillies/geo_interface.rst
A Python Protocol for Geospatial Data

Author: Sean Gillies Version: 1.0

Abstract

This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.

Introduction

import os
from datetime import datetime, timedelta
from typing import Any, Dict, Generator, List, Union
import requests
# Optional - to connect using OAuth credentials
from oauthlib.oauth1 import SIGNATURE_RSA
class JiraClient:
def __init__(
@sthagen
sthagen / citations.txt
Created March 7, 2021 22:15
Citation list of Digital Signature Services OS Standard
Hühnlein, D., Frosch, T., Schwenk, J., Piswanger, C.-M., Sel, M., Hühnlein, T., Wich, T., Nemmert, D., Lottes, R., Somorovsky, J., Mladenov, V., Condovici, C., Leitold, H., Stalla-Bourdillon, S., Tsakalakis, N., Eichholz, J., Kamm, F.-M., Kühne, A., Wabisch, D., Dean, R., Shamah, J., Kapanadze, M., Ponte, N., Martins, J., Portela, R., Karabat, Ç., Stojičić, S., Nedeljkovic, S., Bouckaert, V., Defays, A., Anderson, B., Jonas, M., Hermanns, C., Schubert, T., Wegener, D. & Sazonov, A., (2016). Futuretrust - future trust services for trustworthy global transactions. In: Hühnlein, D., Roßnagel, H., Schunck, C. H. & Talamo, M. (Hrsg.), Bonn: Gesellschaft für Informatik e.V.. (S. 27-41). https://dl.gi.de/bitstream/handle/20.500.12116/602/27.pdf?sequence=1&isAllowed=y
Hühnlein, D., Petrautzki, D., Schmölz, J., Wich, T., Horsch, M., Wieland, T., Eichholz, J., Wiesmaier, A., Braun, J., Feldmann, F., Potzernheim, S., Schwenk, J., Kahlo, C., Kühne, A. & Veit, H., (2012). On the design and implementation of the Open eCa
@sthagen
sthagen / dss-x-citations-20210305.md
Created March 8, 2021 06:16
DSS-X Citations-Index as of 2021-03-05 (draft)

Hühnlein, D., Frosch, T., Schwenk, J., Piswanger, C.-M., Sel, M., Hühnlein, T., Wich, T., Nemmert, D., Lottes, R., Somorovsky, J., Mladenov, V., Condovici, C., Leitold, H., Stalla-Bourdillon, S., Tsakalakis, N., Eichholz, J., Kamm, F.-M., Kühne, A., Wabisch, D., Dean, R., Shamah, J., Kapanadze, M., Ponte, N., Martins, J., Portela, R., Karabat, Ç., Stojičić, S., Nedeljkovic, S., Bouckaert, V., Defays, A., Anderson, B., Jonas, M., Hermanns, C., Schubert, T., Wegener, D. & Sazonov, A., (2016). Futuretrust - future trust services for trustworthy global transactions. In: Hühnlein, D., Roßnagel, H., Schunck, C. H. & Talamo, M. (Hrsg.), Bonn: Gesellschaft für Informatik e.V.. (S. 27-41). https://dl.gi.de/bitstream/handle/20.500.12116/602/27.pdf?sequence=1&isAllowed=y

Hühnlein, D., Petrautzki, D., Schmölz, J., Wich, T., Horsch, M., Wieland, T., Eichholz, J., Wiesmaier, A., Braun, J., Feldmann, F., Potzernheim, S., Schwenk, J., Kahlo, C., Kühne, A. & Veit, H., (2012). On the design and implementation of the Open eCa

@sthagen
sthagen / branch-upstream-changed.sh
Created November 24, 2021 04:43
git local clone follow of remote branch change
git branch -m master main && \
git fetch origin && \
git branch -u origin/main main && \
git remote set-head origin -a