Skip to content

Instantly share code, notes, and snippets.

View oscarcarlsson's full-sized avatar

Oscar Carlsson oscarcarlsson

View GitHub Profile
@oscarcarlsson
oscarcarlsson / configuration.nix
Created April 9, 2019 13:08 — forked from LnL7/configuration.nix
NixOS configuration overlays
{ config, pkgs, ... }:
let
# Import unstable channel.
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
# sudo nix-channel --update nixpkgs-unstable
unstable = import <nixpkgs-unstable> {};
in
{
@oscarcarlsson
oscarcarlsson / compile-nginx.sh
Created February 7, 2017 10:10 — forked from Zewy/compile-nginx.sh
Compile Nginx with OpenSSL on CentOS 7 to support ALPN (and therefore HTTP/2) and ngx_pagespeed
#!/bin/bash
## Software versions (you can edit this if there are newer versions)
#NPS_VERSION="1.12.34.2" # 2016-12-15 (Beta)
NPS_VERSION="1.11.33.4" # 2016-10-03 (Stable)
NGINX_VERSION="1.11.9" # 2017-01-24 (mainline)
OPENSSL_VERSION="1.1.0d" # 2017-01-26 (stable)
PCRE_VERSION="8.39" # 2016-06-14 (old stable, latest supported by Nginx)
ZLIB_VERSION="1.2.11" # 2017-01-15 (stable)