Skip to content

Instantly share code, notes, and snippets.

View elbart's full-sized avatar
🦀
Rustacean

Tim Eggert elbart

🦀
Rustacean
View GitHub Profile
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Child Domain</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jschannel/1.0.0-git-commit1-8c4f7eb/jschannel.min.js"></script>
</head>
<body>
@elbart
elbart / lib.rs
Last active June 23, 2020 15:57
rs playground data structures
use std::cell::RefCell;
#[derive(Debug)]
struct YakeTarget<'a> {
pub name: String,
pub dependencies: Option<Vec<&'a YakeTarget<'a>>>,
}
#[derive(Debug)]
struct Yake<'a> {
@elbart
elbart / nixos-from-ubuntu.md
Last active September 16, 2021 14:55 — forked from mlaventure/nixos-from-ubuntu.md
How to install NixOS from an Ubuntu liveCD