Skip to content

Instantly share code, notes, and snippets.

View dstrunk's full-sized avatar
🍑

Daniel Strunk dstrunk

🍑
View GitHub Profile
@dstrunk
dstrunk / dev.exs
Last active April 13, 2018 14:12
Laravel Mix config for Elixir Phoenix applications
use Mix.Config
# Untouched information omitted for brevity's sake
config :project, ProjectWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [npm: ["run", "watch", cd: Path.expand("../assets", __DIR__)]]

Keybase proof

I hereby claim:

  • I am dstrunk on github.
  • I am dstrunk (https://keybase.io/dstrunk) on keybase.
  • I have a public key whose fingerprint is 87D9 E2CB A9D8 74B7 6A7B 8C9A 5674 2513 CD61 2FAA

To claim this, I am signing this object:

@dstrunk
dstrunk / configure-postfix.sh
Last active September 19, 2021 15:26
Quickly install Postfix and configure it to send emails from your local Vagrant box. Used on this blog post: https://goo.gl/8iv6YD
#!/bin/bash
# Download all postfix necessities to run PHP mail()
wget -P ~/ https://www.thawte.com/roots/thawte_Premium_Server_CA.pem && \
sudo mv ~/thawte_Premium_Server_CA.pem /usr/local/share/ca-certificates/thawte_Premium_Server_CA.crt && \
sudo update-ca-certificates ;
# pre-answer interactive configuration for Postfix
sudo debconf-set-selections <<< "postfix postfix/mailname string local.dev"
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"