Open in app

Sign In

Write

Sign In

Henrik Hauge Bjørnskov
Henrik Hauge Bjørnskov

28 Followers

Home

About

Jan 30

TIL: How to use Caddy with MacOS for multi project development

I keep forgetting the port for various projects running on my machine. Each project gets a port space eg. 31xx or 30xx. Instead of remembering the ports I now use Caddy to do a reverse proxy. Which is super simple. # Install Caddy $ brew install caddy nss # Edit the Caddyfile $ vim /opt/homebrew/etc/Caddyfile And then use Caddy syntax to define the proxies like the snippet below: myproject.localhost { tls internal reverse_proxy localhost:3000 }

Development

1 min read

Development

1 min read


Dec 20, 2022

TIL: Anonymous module support in Ruby

Today I Learned: Ruby supports anonymous Modules, just as it supports anonymous Classes. While looking into customizing the returned response from Doorkeepers TokenController I found that Ruby supports anonymous modules. Which is quite handy for duck typing in Ruby. Here is a quick example of how it works:

Ruby

1 min read

Ruby

1 min read


Published in Level Up Coding

·Jul 26, 2020

Using Puppeteer on Netlify

Some time ago an acquaintance started a danish version of “Word a Week” on Twitter. She would every week tweet a word that she thought wasn’t used enough. It could be a real word or some old slang. I found it very funny and thought “Why isn’t there a site…

Netlify

2 min read

Using Puppeteer on Netlify
Using Puppeteer on Netlify
Netlify

2 min read


Sep 7, 2019

CircleCI with Golang and it’s modules

Recently I have rediscovered my love for Golang. A language that I used to develop in professionally as a consultant. Since that time the landscape have changed. New tools have arrived on the scene and Go finally have a modules system. Getting those two to play nicely on CircleCI wasn’t…

Circleci

1 min read

Circleci

1 min read


Jul 16, 2019

TypeScript, AWS SAM and Rollup.js

This time we are using Rollup instead of Webpack and it is super easy. Also it requires less configuration. Before going further I suggest you read the other blog post which will explain the conventions behind the Rollup configuration. Rollup Configuration // rollup.config.js import fs from 'fs' import CloudFormation from 'yaml-cfn' import typescript from 'rollup-plugin-typescript' import…

JavaScript

1 min read

JavaScript

1 min read


Jul 16, 2019

Using TypeScript with AWS SAM Local

In a world where scalability is everything it is hard to ignore the new wave of “Serverless”. One of the biggest players in this space is Amazon AWS with their Lambda offering. In this post I am going to try and explain how I set up my AWS Sam projects…

Aws Sam

2 min read

Aws Sam

2 min read


May 31, 2019

Using Revolut when Travelling

Over the last decade I have started to travel more and more. When travelling a lot one of the constant problems is figuring out how to pay for stuff like food accommodation etc. Without paying millions in fees to your bank or Forex companies. …

Bitcoin

3 min read

Using Revolut when Travelling
Using Revolut when Travelling
Bitcoin

3 min read


Jun 7, 2018

Electron — Communicating via postMessage

At work we are starting to test Electron and see what we can do with it. Electron gives us several ways to create desktop applications. One of those are as simple as opening a URL in a BrowserWindow. But sometimes we want to do more and run code in Electron based on what happens in the application embedded in our BrowserWindow. Fortunately Electron gives us access to ipcRenderer and ipcMain which together with a simple preload script makes this quite easy.

JavaScript

1 min read

JavaScript

1 min read

Henrik Hauge Bjørnskov

Henrik Hauge Bjørnskov

28 Followers

I build stuff at Relatel A/S, vivid traveller and gear junkie.

Following
  • Cecilie Falk

    Cecilie Falk

  • Rasmus Kalms

    Rasmus Kalms

  • rasmusskjoldan

    rasmusskjoldan

  • Martin Ejvind Arthur Weiling

    Martin Ejvind Arthur Weiling

  • Allan Th. Andersen

    Allan Th. Andersen

See all (19)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech