Skip to content

Instantly share code, notes, and snippets.

View dennisreimann's full-sized avatar
still hungry. still foolish.

d11n dennisreimann

still hungry. still foolish.
View GitHub Profile
@dennisreimann
dennisreimann / .travis.yml
Last active September 23, 2022 16:11
Travis-CI config for Yarn 2
language: node_js
cache:
# Yarn 2 does not store dependencies in node_modules anymore, at least not by default.
# If you are using the node-modules plugin, remove the `npm: false` line.
npm: false
# Yarn 2 caches to the local .yarn directory, not the Travis default `$HOME/.yarn`
directories:
- ./.yarn/cache
@dennisreimann
dennisreimann / status.sh
Created December 19, 2019 12:30
BTCPayServer Status Shell
#!/bin/sh
# by dennisreimann, but most of this is adapted from Stadicus:
# https://stadicus.github.io/RaspiBolt/raspibolt_61_system-overview.html
#
# Dependencies: jq
#
# source the environment so that we can use the variables
. $BTCPAY_BASE_DIRECTORY/.env
# set colors
@dennisreimann
dennisreimann / status.sh
Created December 6, 2019 15:38
BTC/LND Status Shell
#!/bin/sh
# by dennisreimann
# most of this is taken from Stadicus:
# https://stadicus.github.io/RaspiBolt/raspibolt_61_system-overview.html
# set colors
color_red='\033[0;31m'
color_green='\033[0;32m'
color_yellow='\033[0;33m'
color_blue='\033[0;34m'
@dennisreimann
dennisreimann / openalias-cli.js
Created October 25, 2019 11:22
Minimal OpenAlias implementation in Node.js
#!/usr/bin/env node
const resolveOpenalias = require('./openalias');
const address = process.argv[2]
if (!address) {
console.error('Please provide an address to resolve.\n\nUsage: ./openalias-cli.js my.domain.com')
process.exit(1)
}

Keybase proof

I hereby claim:

  • I am dennisreimann on github.
  • I am dennisreimann (https://keybase.io/dennisreimann) on keybase.
  • I have a public key ASDBBSKvX05Qufq72EMx5skXDINPJoT0oZA4PTNthAuUXwo

To claim this, I am signing this object:

@dennisreimann
dennisreimann / identicon.ex
Last active December 10, 2016 21:25
Code for the chapter on creating an Identicon in "The Complete Elixir and Phoenix Bootcamp" on Udemy.
# Code for the chapter on creating an Identicon in
# "The Complete Elixir and Phoenix Bootcamp" on Udemy.
# see https://www.udemy.com/the-complete-elixir-and-phoenix-bootcamp-and-tutorial/
defmodule Identicon do
defmodule Identicon.Image do
defstruct hex: nil, color: nil, grid: nil, pixel_map: nil
end
alias Identicon.{Image}
@dennisreimann
dennisreimann / Main.elm
Last active April 2, 2024 20:17
A reaction to the article "A small dive into, and rejection of, Elm"
{-
This file is a reaction to the article "A small dive into, and rejection of, Elm":
https://hackernoon.com/a-small-dive-into-and-rejection-of-elm-8217fd5da235#.9w3ml4r6b
I think constructive criticism is very welcome in the Elm community. Pointing out
possibilities for documentation improvements, mentioning missing features or ways
in which the language could evolve etc. are imho a vital part of a good community.
However, the article above is neither well informed nor constructive. IMHO ranting
@dennisreimann
dennisreimann / gulpfile.js
Created December 1, 2015 21:25
building elm projects with gulp: basic setup
var gulp = require('gulp');
var elm = require('gulp-elm');
var plumber = require('gulp-plumber');
var del = require('del');
// builds elm files and static resources (i.e. html and css) from src to dist folder
var paths = {
dest: 'dist',
elm: 'src/*.elm',
staticAssets: 'src/*.{html,css}'
@dennisreimann
dennisreimann / galen-foreach-example.gspec
Created September 3, 2015 13:36
Galen forEach example with nested objects
@objects
form-row-* .form__row
label .form__row__label
input .form__row__input
= Form =
@on small
@forEach [form-row-*] as row
${row}.label:
@dennisreimann
dennisreimann / coffeelint.json
Created October 16, 2014 05:12
gulp setup for building node-webkit apps
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "ignore"
},
"no_tabs": {
"name": "no_tabs",