Skip to content

Instantly share code, notes, and snippets.

@brasey
brasey / Remove Windows carriage returns.md
Created September 14, 2015 18:26
Remove Windows carriage returns

Remove Windows carriage returns

With vim, all you need is

:e ++ff=dos

Keybase proof

I hereby claim:

  • I am brasey on github.
  • I am brasey (https://keybase.io/brasey) on keybase.
  • I have a public key ASDqRt6NR7lb_461Qc5Uf3BQsgR72kIJ8xW80-8c_SgDfAo

To claim this, I am signing this object:

@brasey
brasey / HAProxy behind AWS ELB: how to force HTTPS?.md
Last active March 15, 2019 14:39
HAProxy behind AWS ELB: how to force HTTPS?

HAProxy behind AWS ELB: how to force HTTPS?

What are you trying to solve

You have some nodes in AWS that you want to load balance.

You want to use the magical scaling properties of ELB.

You want to do some things that ELB doesn't do, like force HTTPS (or add headers, or something else).

@brasey
brasey / Configure systemd-resolved to use a specific DNS nameserver for a given domain.md
Created October 25, 2019 14:38
Configure systemd-resolved to use a specific DNS nameserver for a given domain

Configure systemd-resolved to use a specific DNS nameserver for a given domain

Use case

Given

  • I use a VPN to connect to my work network
  • I'm on a Linux computer that uses systemd-resolved
  • I have a work domain called example.com
  • example.com is hosted by both public and private DNS nameservers