Skip to content

Instantly share code, notes, and snippets.


Sean D Matthews Seanmatthews

  • Rowboat Entertainment
  • New York, NY
View GitHub Profile
rbb /
Created Oct 18, 2018
Setup autofs on Ubuntu 18.04

Mounting CIFS with automount on Ubuntu 18:

  1. Install the necessary applications/servers:

    sudo apt install autofs smbclient cifs-utils

  2. Configure autofs

create /etc/auto.cifs, with this variant from auto.smb, courtesy howtoforge

ubergarm /
Last active Feb 20, 2020
Poor Man's Fasting Mimicking Diet

Poor Man's Fasting Mimicking Diet

The goal is to achieve as safely and comfortably as possible a Seyfried's Glucose Ketone Index (GKI) less than 1.0 to improve health over a 5 day period.


Sunday May 6 - Thursday May 10 2018

Lead Up

monabf / bluerov2_ardusub_sitl_tutorial.txt
Last active Jul 8, 2021
Tutorial on how to set up Gazebo simulations of the BlueROV2 (model provided by BlueElectrics), using SITL and ArduSub, and a package provided by kdkalvik for use with mavros.
View bluerov2_ardusub_sitl_tutorial.txt
This folder provides simulation of the BlueROV2 using Gazebo for the dynamics and ArduPilot SITL for the communication and ground control.
nilsdeppe / emacs.el
Last active Jun 7, 2020
My Emacs init file
View emacs.el
;;; initfile --- Summary:
;;; Commentary:
;; Emacs 25.1 and newer tested
;;; Code:
;; Configuration/Customization:
;; Defines global variables that are later used to customize and set
;; up packages.
Seanmatthews /
Last active Jan 11, 2017
Slack user keepalive
  1. Put somewhere on your system, then change the path in slacktive.plist
  2. Put com.sean.python.slacktive.plist in ~/Library/LaunchAgents/
  3. Add your token to com.sean.python.slacktive.plist (see file comments)
  4. launchctl load ~/Library/LaunchAgents/com.sean.python.slactive.plist
View laplace_of_gaussian_1D.cpp
cv::Mat createLOGKernel1D(int ksize, float sigma)
using namespace cv;
float std2 = sigma * sigma;
std::vector<float> seq(ksize);
std::iota(begin(seq), end(seq), -(ksize-1)/2);
Mat_<float> kSeq(1, ksize,;
Mat XX;
Seanmatthews / laplace_of_gaussian_2D.cpp
Last active Dec 23, 2016
Compute Laplace of Gaussian kernel for a size and sigma using OpenCV
View laplace_of_gaussian_2D.cpp
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
#include <assert.h>
// Calculates Laplace of Gaussian kernel
cv::Mat createLOGKernel(int ksize, double sigma)
using namespace cv;
using namespace std;
Seanmatthews / gopro_streaming.cpp
Last active Feb 6, 2021
GoPro Hero4 Black C++ Streaming With OpenCV
View gopro_streaming.cpp
#include <boost/exception/exception.hpp>
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include "opencv2/opencv.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
using namespace std;
yohhoy / cv2ff.cpp
Created Feb 17, 2016
Convert from OpenCV image and write movie with FFmpeg
View cv2ff.cpp
* Convert from OpenCV image and write movie with FFmpeg
* Copyright (c) 2016 yohhoy
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
maxim / gh-dl-release
Last active Jul 23, 2021
Download assets from private Github releases
View gh-dl-release
#!/usr/bin/env bash
# gh-dl-release! It works!
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.