Skip to content

Instantly share code, notes, and snippets.

View snakecharmer's full-sized avatar

Paolo Garri snakecharmer

  • @Seven.One Entertainment
  • Munich, DE
View GitHub Profile
@snakecharmer
snakecharmer / Package.swift
Created February 28, 2020 14:16
Oz package
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "oz",
products: [
.library(name: "oz", targets: ["App"]),
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
salt '*' state.highstate
@snakecharmer
snakecharmer / graphite
Created March 14, 2017 08:39 — forked from drawks/graphite
Graphite on uwsgi/nginx
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {