Skip to content

Instantly share code, notes, and snippets.

View sethlilly's full-sized avatar

Seth Lilly sethlilly

View GitHub Profile

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.

Given this is a cool feature
When someone reads this Gist
Then steal all their personal information
@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;
@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 / cm.json
Last active February 26, 2019 21:56
CM JSON
[{
"id": "0ce61a54-e97f-4373-9e1a-27f807a771d8",
"display_name": "Maroon",
"type": "Mill",
"readings": [
{
"timestamp": "15:00",
"spindle_spin_rate_1": 290,
"spindle_spin_rate_2": 131,
"spindle_spin_rate_3": 5
@sethlilly
sethlilly / index.html
Last active April 26, 2022 20:37 — forked from BinaryMuse/index.html
Electron Fiddle with webview tag (https://electronjs.org/docs/api/webview-tag)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<webview src="https://electronjs.org/" style="width: 100vw; height: 100vh">
</body>
</html>

Keybase proof

I hereby claim:

  • I am sethlilly on github.
  • I am sethlilly (https://keybase.io/sethlilly) on keybase.
  • I have a public key ASDDb9wbE9cAgJ2CNwjmgn5x2fVw4GM7dLMtij7YvqSTWwo

To claim this, I am signing this object:

@sethlilly
sethlilly / config.json
Created October 21, 2015 20:04
Vapor 2.0 config.json
{
"showHeaderDescription": false,
"showFooterDescription": true,
"showNavigation": true,
"showSearch": false
}
@sethlilly
sethlilly / gist.scss
Created October 21, 2015 00:36
Gist SCSS example
// Embedded Gist support (https://gist.github.com)
.gist {
margin-top: 20px;
margin-bottom: 20px;
border-collapse: collapse !important;
.gist-file {
font-family: $preFontFamily;
border: 1px solid $subtleColor !important;
.gist-meta {
@sethlilly
sethlilly / gist.css
Created October 16, 2013 22:19
Snippet of Gist embed code for Vapor
.gist {
margin-top: 1em;
margin-bottom: 1em;
border-collapse: collapse !important;
}
.gist .gist-file {
font-family: consolas, courier, monospace !important;
border: 1px solid rgba(0,0,0,0.05) !important;
}