Skip to content

Instantly share code, notes, and snippets.

View maxandersen's full-sized avatar
💭
; is so overrated

Max Rydahl Andersen maxandersen

💭
; is so overrated
View GitHub Profile

Setup TLS-Enabled-Daemon from CDK and Connect to Eclipse

NEW VERSION OF THIS DOC https://github.com/navidshaikh/testing-adb

Bex has done a better job in building up the context and outlining the idea [here] (https://gist.github.com/bexelbie/35f421ee247c7621c0d0) . Goal here is to configure a TLS enabled Docker docker daemon running over TCP from inside CDK and configure client at Eclipse to be able to connect to it.

In order to get configure CDK + Eclipse

  1. docker daemon inside CDK has to run over TCP (as well, if running on local unix socket) - This need required certs to be generated inside CDK and updating the docker daemon config and restarting service.
  2. Required client side certs has to be copied over to host (from guest) for clients to connect
  3. Port at which docker inside CDK running need to be mapped at host machine port for client to easily connect
@maxandersen
maxandersen / cleanup.lua
Created July 9, 2015 06:44
lua script for imapfilter that deletes empty mailboxes
--- Removes mailboxes with no messages and no subfolders.
--- Will keep iterating over folders with subfolders until it
--- cannot find anymore candidates to delete
--- called by running: `removeEmptyMailboxes(account, 'INBOX', '*')`
function removeEmptyMailboxes(account, base, pattern)
candidates = account:list_all(base,pattern)
while(#candidates > 0) do
print ("Start scanning " .. #candidates .. " boxes to see if empty...")
@bryantrobbins
bryantrobbins / Jenkins Slave Dockerfile
Last active September 14, 2020 00:01
Docker jenkins and nexus example
FROM ubuntu:12.04
MAINTAINER Bryan Robbins <bryantrobbins@gmail.com>
# Get latest packages
RUN apt-get update && apt-get clean
# Needed for Jenkins
RUN apt-get install --no-install-recommends openjdk-7-jdk -y
# Needed for Jenkins jobs