Skip to content

Instantly share code, notes, and snippets.

@banhill
banhill / google_sheets_vies_vat_id_check.js
Created April 25, 2020 09:12
Quick and dirty google script to call VIES VAT ID check service from google sheets.
/**
* A special function that runs when the spreadsheet is open, used to add a
* custom menu to the spreadsheet.
*/
function onOpen() {
var spreadsheet = SpreadsheetApp.getActive();
var menuItems = [
{name: 'VAT ID check', functionName: 'idCheck'}
];
spreadsheet.addMenu('VIES', menuItems);
@banhill
banhill / .tmux.conf
Created April 18, 2018 09:32
basic tmux conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
@banhill
banhill / init.lua
Created April 18, 2018 09:31
hammerspoon init
local mash = {
split = {"ctrl", "alt", "cmd"},
corner = {"ctrl", "alt", "shift"},
focus = {"ctrl", "alt"}
}
-- Resize windows
local function adjust(x, y, w, h)
return function()
local win = hs.window.focusedWindow()