Skip to content

Instantly share code, notes, and snippets.

View daixtrose's full-sized avatar

Markus Werle daixtrose

View GitHub Profile
apiVersion: v1
data:
authorized_keys: |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID9Zt/CR+kt1omLPJmMLCJu1w3aIpg7IO0Vv7up+MVFI jp@hex
kind: ConfigMap
metadata:
name: shpod
@daixtrose
daixtrose / the-most-important-ui.md
Created November 23, 2018 09:53
Resources from my talk about self-care in tech 🌱
@daixtrose
daixtrose / effective_modern_cmake.md
Created November 7, 2018 12:05 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@daixtrose
daixtrose / demo.cpp
Last active April 4, 2018 14:59
C++ overload resolution with local lambda and global functions
#include <typeinfo>
#include <iostream>
#include <string>
namespace {
struct Something {
};
template <typename T>
@daixtrose
daixtrose / backup-github.sh
Created April 21, 2017 20:02 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@daixtrose
daixtrose / pr.md
Created July 8, 2016 19:12 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@daixtrose
daixtrose / introrx.md
Created May 18, 2016 10:44 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing