Skip to content

Instantly share code, notes, and snippets.

tldr; use docker-machine to set up TLS for you. copy the client stuff to your jenkins container and then use it there.
First, provision a machine using docker-machine. It doesn't matter what driver you use, the end result is the same.
For a digitalocean box:
$ docker-machine create -d digitalocean \
--digitalocean-region sfo1 \
--digitalocean-size 2gb \
--digitalocean-access-token=abcdefgh1234567890345678 \
@rf-
rf- / nvim-client
Last active December 9, 2024 06:07
#!/usr/bin/env python
import pynvim, os, re, sys, time
# Get a list of buffers that haven't been deleted. `nvim.buffers` includes
# buffers that have had `:bdelete` called on them and aren't in the buffer
# list, so we have to filter those out.
def get_listed_buffers(nvim):
return set(buf.number for buf in nvim.buffers \
if nvim.eval('buflisted(%d)' % buf.number))
@tarruda
tarruda / nvim-terminal-edit.py
Last active January 18, 2025 07:36
Edit file in host Neovim instance from a :terminal buffer
#!/usr/bin/env python
"""Edit a file in the host nvim instance."""
import os
import sys
from neovim import attach
args = sys.argv[1:]
if not args:
print "Usage: {} <filename> ...".format(sys.argv[0])
@coolaj86
coolaj86 / prereqs.md
Last active August 29, 2015 14:13
Firefox OS Prerequisites

OS X (Mavericks or Yosemite)

curl -fsSL bit.ly/iojs-dev -o iojs-dev.sh; bash iojs-dev.sh

Ubuntu Linux (12.04 or 14.04)

curl -fsSL bit.ly/iojs-dev -o iojs-dev.sh; bash iojs-dev.sh
#!/bin/bash
# Script for installing zsh on systems where you don't have root access.
# zsh will be installed in $HOME/local/bin
# It's asuumed that wget and a C/C++ compiler are installed
# exit on error
set -e
ZSH_VERSION=5.0.2
@ryin
ryin / tmux_local_install.sh
Last active August 5, 2026 09:37
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8