Skip to content

Instantly share code, notes, and snippets.

View shanesveller's full-sized avatar
💭
I may be slow to respond.

Shane Sveller shanesveller

💭
I may be slow to respond.
View GitHub Profile
@shanesveller
shanesveller / flake.lock
Created December 1, 2021 15:45
Rust + Axum development environment
{
"nodes": {
"cargo2nix": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
],
# Inspired by https://engineering.tripping.com/blazing-fast-elixir-configuration-475aca10011d
# Updated with more options, including persistent_term and process locals
Mix.install([{:benchee, "~> 1.0"}])
Application.put_env(:fast_config, :adapter, TargetModule)
:persistent_term.put({:fast_config, :adapter}, TargetModule)
defmodule TargetModule do
def run, do: :ok
{ mkDerivation }:
mkDerivation rec {
version = "1.7.2";
# nixnix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v1.7.2.tar.gz
sha256 = "0wnrx6wlpmr23ypm8za0c4dl952nj4rjylcsdzz0xrma92ylrqfq";
minimumOTPVersion = "18";
}
@shanesveller
shanesveller / exventure-concourse.yaml
Created August 25, 2018 19:45
Build a multi-stage Elixir project using Concourse CI
resources:
- name: ex_venture
type: git
source:
uri: https://github.com/oestrich/ex_venture.git
branch: master
- name: ex_venture-docker-image
type: docker-image
source:
cask 'minikube' do
version '0.7.1'
sha256 'fc8365148be19bd020432d8ddc85c06b7aab3953300b16b24f20fcd8393de449'
url "https://github.com/kubernetes/minikube/releases/download/v#{version}/minikube-darwin-amd64"
appcast 'https://github.com/kubernetes/minikube/releases.atom',
checkpoint: '0bc485e67d85822e27770f13ab05f33a20c4d9bf2439af6cbd3aed8a3f0a052c'
name 'Minikube'
homepage 'https://github.com/kubernetes/minikube'
license :apache
@shanesveller
shanesveller / .kitchen.yml
Created November 18, 2015 17:33
VMWare Fusion kitchen-vagrant performance
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
@shanesveller
shanesveller / rac_defaults.yml
Created August 14, 2012 15:13
Rails_apps_composer defaults YAML
recipes:
- core
- init
prefs:
:database: postgresql
:dev_webserver: webrick
:prod_webserver: unicorn
:templates: haml
:unit_test: rspec
@shanesveller
shanesveller / dump-detail.txt
Created June 9, 2011 03:48
Output of Rift PTS 1.3 and TrionDevelopmentTools' /dump detail command as of 2011-06-10 10:30PM EDT
Noncombat logging enabled
Basic globals:
Development.Documentation
Provide documentation on items in the addon environment. Called with no parameters, it returns a table listing all documentation. Can provide both human-readable and computer-readable documentation.
documentables = Development.Documentation() -- table <- void
documentation = Development.Documentation(item) -- string <- variant
documentation = Development.Documentation(item, parseable = false) -- string <- variant, boolean
documentationTable = Development.Documentation(item, parseable = true) -- table <- variant, boolean
Parameters:
parseable: Whether to return in a computer-readable format, as opposed to the normal human-readable format.
@shanesveller
shanesveller / elixir.md
Last active September 25, 2015 15:00
Elixir Resources
  • Language homepage - duh
  • RTFSource - seriously, the language source is predominantly written in Elixir by way of bootstrapping macros, and IMHO is incredibly readable and enlightening
  • Plug repo - more great source code to read
  • Phoenix Guides
  • Other Phoenix resources
  • ElixirSips - premium screencasts ala RailsCasts, etc.
  • Elixir-lang Slack team - very active, rather friendly, lots of niche channels around i.e. Phoenix, Ecto, etc.
  • #elixir-lang IRC channel on Freenode
  • Core Elixir - series of charmingly-illustrated blog posts that deep dive into parts of the stdlib
  • Elixir Radar - community news mailing list from Plataformatec
source 'http://rubygems.org'
gem 'rails', '3.0.5'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
# Use unicorn as the web server