Skip to content

Instantly share code, notes, and snippets.

View ggalihpp's full-sized avatar

Galih Pratama P. ggalihpp

View GitHub Profile
@ggalihpp
ggalihpp / ansible-summary.md
Created November 5, 2018 07:20 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@ggalihpp
ggalihpp / slugify.js
Created August 3, 2018 06:55 — forked from mathewbyrne/slugify.js
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}