Skip to content

Instantly share code, notes, and snippets.

View nov1n's full-sized avatar
🙃

Robert Carosi nov1n

🙃
  • Platform Engineer @ Picnic
  • Rotterdam
View GitHub Profile
@nov1n
nov1n / nvimbak.sh
Created January 1, 2025 12:46
Bash script to launch Neovim from a working backup configuration
#!/usr/bin/env bash
# nvimbak
#
# Description:
# This script creates a backup of the user's dotfiles directory and starts
# Neovim with the backup configuration. The backup directory and any submodules
# are reset to the latest Git commit - which is assumed to be working.
#
# NEOVIM_ARGS: Optional arguments to pass to Neovim. These arguments will be
@nov1n
nov1n / whoami_aws.go
Created September 25, 2016 16:23
This gist illustrates how to execute a remote command over SSH on an amazon ec2 instance. It assumes your pem file path is set as an environment variable 'PEM_PATH' and your AWS API key is set as either an environment variable or stored in a permissions file.
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"golang.org/x/crypto/ssh"
@nov1n
nov1n / Sublime_config
Created August 27, 2013 13:52
Sublime config file
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform