Skip to content

Instantly share code, notes, and snippets.

View Kumpon-Sotsukpiam's full-sized avatar

Kumpon Sotsukpiam Kumpon-Sotsukpiam

View GitHub Profile
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / whiteboardCleaner.md
Created August 31, 2022 07:11 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

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

@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / git-clearHistory
Created September 21, 2021 06:14 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
// main.js
const nodemailer = require('nodemailer');
// setup mail transporter service
const transporter = nodemailer.createTransport({
service: 'hotmail',
auth: {
user: '[email protected]', // your email
pass: 'password' // your password
}