Skip to content

Instantly share code, notes, and snippets.

View peterolayinka's full-sized avatar
🏠
Working from home

Peter Olayinka peterolayinka

🏠
Working from home
View GitHub Profile
@peterolayinka
peterolayinka / [1] convertToMarkup.js
Created April 21, 2020 20:40 — forked from nathansmith/[1] convertToMarkup.js
Handy utilities for dealing with `<div contenteditable="true">` areas.
// Helpers.
import { convertToText } from './';
/*
You would call this when receiving a plain text
value back from an API, and before inserting the
text into the `contenteditable` area on a page.
*/
const convertToMarkup = (str = '') => {
return convertToText(str).replace(/\n/g, '<br>');

Keybase proof

I hereby claim:

  • I am peterolayinka on github.
  • I am peterolayinka (https://keybase.io/peterolayinka) on keybase.
  • I have a public key ASALlvuSa3nr1qluFGRJ74RrrjkeHlCRNJN9jJJSZX-RJAo

To claim this, I am signing this object:

@peterolayinka
peterolayinka / docker-cleanup-resources.md
Created December 6, 2018 11:34 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@peterolayinka
peterolayinka / README-Template.md
Created November 15, 2018 12:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites