Skip to content

Instantly share code, notes, and snippets.

@alanpeabody
alanpeabody / my_app.ex
Last active June 11, 2024 06:32
Websockets in Elixir with Cowboy and Plug
defmodule MyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [
dispatch: dispatch
])

Recommend Mac SoftWare

粗體為現在有安裝的軟體,一般則為已移除或是未安裝的軟體。

System

  • Alfred 2 - 熱鍵、Spotlight
  • coconutBattery - 電池記錄
  • iTerm - 比Terminal更好用的Console
  • Keka - 解壓縮軟體
  • TeamViewer - 遠端控制。
@willurd
willurd / web-servers.md
Last active June 28, 2024 12:38
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000