Skip to content

Instantly share code, notes, and snippets.

View frank-dspeed's full-sized avatar
🇩🇪
I Engineer

Frank Lemanschik frank-dspeed

🇩🇪
I Engineer
View GitHub Profile
@Frando
Frando / index.js
Created March 23, 2018 18:46
hyperdrive & hypergraph in same hyperdb
var hyperdb = require('hyperdb')
var sub = require('subhyperdb')
var hyperdrive = require('hyperdrive')
var hypergraph = require('hyper-graph-db')
var hyperdriveMessages = require('hyperdrive/lib/messages')
var dbName = process.argv[2]
var op = process.argv[3]
if (op !== 'read' && op !== 'write') {
@elclanrs
elclanrs / 1-easy.js
Created December 25, 2017 23:32 — forked from nybblr/1-easy.js
3 examples of using Async Generators and Async Iteration in JavaScript!
// Create a Promise that resolves after ms time
var timer = function(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
};
// Repeatedly generate a number starting
// from 0 after a random amount of time
var source = async function*() {
@frank-dspeed
frank-dspeed / gist:c6d90c112bf537f9b002176b8d385f76
Created November 19, 2017 15:08
Bash Script to Create Domain debian ubuntu apache letsencrypt
#!/bin/bash
# Settings
# Path to the letsencrypt-auto tool
LE_TOOL=/opt/letsencrypt/letsencrypt-auto
#LE_TOOL=/opt/letsencrypt/letsencrypt
# Directory where the acme client puts the generated certs
LE_OUTPUT=/etc/letsencrypt/live
@frank-dspeed
frank-dspeed / import-relativ-self.html
Last active November 16, 2017 20:33
Basics HTML5 + WebComponents
<html><head>
<script type="text/javascript">
let ownerDocument = document.currentScript.ownerDocument
let baseUrl = ownerDocument.location.pathname.split('import.html')[0]
let base = document.createElement('base')
base.href = baseUrl
ownerDocument.head.appendChild(base)
</script>
<!-- here base gets attached -->
</head><body>
@katopz
katopz / setup-zeromq.sh
Last active April 12, 2025 00:09 — forked from cdjhlee/zeromq_install.sh
Setup zeromq in Ubuntu 16.04
#!/usr/bin/bash
# Download zeromq
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
@Geoff-Ford
Geoff-Ford / composing-software.md
Last active July 4, 2025 23:36
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

@Geoff-Ford
Geoff-Ford / master-javascript-interview.md
Last active April 4, 2025 21:36
Eric Elliott's Master the JavaScript Interview Series
@phillipskevin
phillipskevin / _codemods
Last active October 26, 2017 14:59
codemods
This is a set of codemods
@pokusew
pokusew / index.js
Last active June 16, 2021 13:23
Modified basic example (https://github.com/pokusew/nfc-pcsc/examples/index.js) of reading and writing NFC cards with nfc-pcsc lib
"use strict";
// #############
// Basic example
// - example reading and writing data on from/to card
// - should work well with any compatible PC/SC card reader
// - tested with Mifare Ultralight cards but should work with many others
// - example authentication for Mifare Classic cards
// #############
@mosquito
mosquito / README.md
Last active September 7, 2025 19:38
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service