Skip to content

Instantly share code, notes, and snippets.

View sethlilly's full-sized avatar

Seth Lilly sethlilly

View GitHub Profile
@sethlilly
sethlilly / ToKebabCase.swift
Created September 26, 2019 20:46
Swift toKebabCase String Extension
//
// ToKebabCase.swift
//
// This Swift String extension removes punctuation, replaces spaces with dashes, and lowercases the string.
//
// Usage:
//
// let uglyString = "This, my friends, is an ugly string, full of punctuation. Yuck."
// let prettyString = uglyString.toKebabCase()
//
@sethlilly
sethlilly / compaudit.sh
Created February 26, 2020 00:16
Fix zsh insecure directories (aka stop compinit warning)
for f in $(compaudit);do sudo chmod g-w $f;done;
Given this is a cool feature
When someone reads this Gist
Then steal all their personal information

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.