Skip to content

Instantly share code, notes, and snippets.

@jounimakela
jounimakela / demo.exs
Created July 23, 2024 10:17
`Phoenix.ConnTest.get/2` a path with only query parameters
Application.put_env(:sample, SamplePhoenix.Endpoint,
http: [ip: {0, 0, 0, 0}, port: 4000],
server: true,
secret_key_base: String.duplicate("a", 32)
)
Mix.install([
{:plug_cowboy, "2.7.1"},
{:phoenix, "1.7.14"},
# {:phoenix, git: "https://github.com/phoenixframework/phoenix.git", branch: "main"}
@jounimakela
jounimakela / uncrustify.cfg
Created August 8, 2016 04:20
Linux kernel uncrustify with a twist
#
# uncrustify config file for the linux kernel
#
indent_with_tabs = 2 # 1=indent to level only, 2=indent with tabs
input_tab_size = 8 # original tab size
output_tab_size = 8 # new tab size
indent_columns = output_tab_size
indent_label = 1 # pos: absolute col, neg: relative column