Skip to content

Instantly share code, notes, and snippets.

----------------------------- Terminal Toggle ------------------------------ {{{
-- Uses the awesome kassio/neoterm plugin
function TermToggle(height)
-- Always open the terminal in a horizontal pane at the bottom
g.neoterm_default_mod = 'botright'
-- Set the height of the terminal
g.neoterm_size = height
cmd ':Ttoggle'
end
utils.map('n', '<C-x>', ':call v:lua.TermToggle(8)<cr>', {silent = true})
------------------------------- NEOVIM SETTINGS --------------------------------
b.autoindent = true
b.expandtab = true -- Use spaces instead of tabs
b.shiftwidth = 4 -- Size of an indent
b.smartindent = true -- Insert indents automatically
b.softtabstop = 4 -- Number of spaces tabs count for
b.tabstop = 4 -- Number of spaces tabs count for
o.backspace = [[indent,eol,start]]
o.clipboard = [[unnamed,unnamedplus]] -- Use the system clipboard
o = vim.o -- vim options
g = vim.g -- vim global variables
w = vim.wo -- vim window options
b = vim.bo -- vim buffer options
fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
exec = vim.api.nvim_command
local M = {} -- The module to export
@olimorris
olimorris / Dockerfile
Last active January 21, 2018 21:48
Use Docker to install MS-SQL Server 2017 with Full Text Search and MS-SQL Tools
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS
FROM ubuntu:16.04
# Install curl since it is needed to get repo config
# Get official Microsoft repository configuration
RUN export DEBIAN_FRONTEND=noninteractive && \
One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://localhost/UiPath/service/duplex/agent/OliMorris that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Server stack trace:
at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at Sys