Skip to content

Instantly share code, notes, and snippets.

View alivesay's full-sized avatar

Andrew Livesay alivesay

View GitHub Profile
/home/alivesay/.gvm/pkgsets/go1.11.1/proficy:/home/alivesay/go:/home/alivesay/.gvm/pkgsets/go1.11.1/global
$ go build
unexpected directory layout:
import path: github.com/go-chi/chi
root: /home/alivesay/go/src
dir: /home/alivesay/go/src/github.com/alivesay/proficy/vendor/github.com/go-chi/chi
expand root: /home/alivesay/go/src
expand dir: /home/alivesay/go/src/github.com/alivesay/proficy/vendor/github.com/go-chi/chi
separator: /
something: |+
Hello.
^[[1;32m
I am green.
^[[0m
I am not green.
@alivesay
alivesay / apache-multi-ad-reverse-proxy.conf
Created April 6, 2017 22:44
Apache reverse proxy with LDAP authentication against multiple Active Directory domains
<AuthnProviderAlias ldap auth1>
AuthLDAPURL "ldaps://auth1.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "ldap_query"
AuthLDAPBindPassword "password"
</AuthnProviderAlias>
<AuthnProviderAlias ldap auth2>
AuthLDAPURL "ldaps://auth2.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "ldap_query"
AuthLDAPBindPassword "password"
foo_types_header.h:
typedef enum {
FOO_TYPE_BAR = 0,
_FOO_TYPE_COUNT
} foo_type_t;
foo_bar_header.h:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2)
E:Problem closing the file /var/cache/apt/archives/perl_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-base_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-base_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-modules_5.18.2-2ubuntu1.1_all.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-modules_5.18.2-2ubuntu1.1_all.deb - close (9: Bad file descriptor), E:Problem closing the fil
1) test parse rebar dependencies (Mix.RebarTest)
test/mix/rebar_test.exs:49
** (FunctionClauseError) no function clause matching in List.to_string/1
stacktrace:
(elixir) lib/list.ex:619: List.to_string(">= 0.0.0")
(mix) lib/mix/rebar.ex:244: Mix.Rebar.compile_req/1
(mix) lib/mix/rebar.ex:240: Mix.Rebar.parse_dep/1
(elixir) lib/enum.ex:1092: Enum."-map/2-lists^map/1-0-"/2
test/mix/rebar_test.exs:60
@alivesay
alivesay / v2
Created February 27, 2016 23:25
((?:[NESW]{1,2}\s*)?\w+)(?:\s*\/\s*)(\w+)|(\d+\s+[NESW]{1,2}\s+\w+)
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
PixelFormat.TRANSPARENT
);
function do_something_with_dir_list(stdout) {
res.render('index', {
title: 'MyPage',
subtitle: 'Below is a directory listing',
results: stdout
});
}
function dir_list(dir_list_done) {
var sys = require('sys');