Skip to content

Commit

Permalink
MAC-35 ⚡️ Switch to using the PaperMod theme for your site? (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
macintacos authored Apr 18, 2021
1 parent 8d91dc6 commit 0511ef1
Show file tree
Hide file tree
Showing 43 changed files with 2,876 additions and 3,507 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git
22 changes: 22 additions & 0 deletions assets/css/extended/fonts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/css/extended/fonts.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions assets/css/extended/typography.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/css/extended/typography.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions config.toml

This file was deleted.

93 changes: 93 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
baseURL: "https://jmt.dev/"
title: jmt.dev️
paginate: 5
theme: PaperMod

enableRobotsTXT: true
buildDrafts: false
buildFuture: false
buildExpired: false

minify:
disableXML: true
minifyOutput: true

params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
title: jmt.dev
description: "thoughts, findings, & projects by [@macintacos](/about/)"
keywords: [blog]
DateFormat: "January 2, 2006"
defaultTheme: auto # dark, light
disableThemeToggle: true
ShowReadingTime: true
ShowShareButtons: false
ShowPostNavLinks: false
ShowBreadCrumbs: true
disableSpecial1stPost: false
disableScrollToTop: false
comments: true
hidemeta: false
hideSummary: false
showtoc: true
tocopen: false
body_classes: "something"

label:
text: "jmt.dev"
# icon: /apple-touch-icon.png
# iconHeight: 35

profileMode:
enabled: false # defaults to true so need to be explicitly set

homeInfoParams:
Title: "thoughts, findings, & projects"
Content: by [@macintacos](/about/)

socialIcons:
- name: twitter
url: "https://twitter.com/macintacos"
- name: email
url: "mailto:[email protected]"
- name: github
url: "https://github.com/macintacos"

cover:
hidden: true # hide everywhere but not in structured data
hiddenInList: true # hide on list pages and home
hiddenInSingle: true # hide on single page

# for search
# https://fusejs.io/api/options.html
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
keys: ["title", "permalink", "summary", "content"]

markup:
goldmark:
renderer:
unsafe: true

menu:
main:
- identifier: about
name: 🧑‍💻 about
url: /about/
weight: 30
- identifier: search
name: 🔍️ find
url: /search/
weight: 40

outputs:
home:
- HTML
- RSS
- JSON # Required

94 changes: 94 additions & 0 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
title: About Me
---

## Upfront

- The name's Torres. Julian Torres.
- [Cloud Operations Engineer](https://www.linkedin.com/in/torresjulian/) @ [MongoDB](https://mongodb.com) - supporting [Atlas](https://www.mongodb.com/cloud/atlas).
- Constantly switching between [so](https://roamresearch.com) [many](https://craft.do) [note](https://notion.so) [apps](https://obsidian.md).
- Always learning [some](https://www.rust-lang.org/) [new](https://golang.org/) [thing](https://learning.oreilly.com/library/view/practical-vim-2nd/9781680501629/) [to](https://n8n.io/) [pass](https://basecamp.com/shapeup) [the](https://learning.oreilly.com/library/view/grpc-up-and/9781492058328/) [time](https://practicaltypography.com/).
- Playing far too much [Factorio](https://www.factorio.com/) for my own good.

## Books I'm reading

At some point I'll get around to updating this.

## Software of the moment

Software I use, presented in the order that I'm remembering them as I type this out.

### macOS Apps

- [VSCode](https://code.visualstudio.com/)

> The only editor that "sticks" for me. I can't believe just how much VSCode has "gotten right". Right now I have it set up to effectively be a blend of Vim, Spacemacs, Sublime Text, and IntelliJ, and somehow it's not falling over. Excellent piece of software, 10/10 [with rice](https://www.reddit.com/r/AskReddit/comments/2np694/what_tasty_food_would_be_distusting_if_eaten_over/).
- [CleanShot X](https://cleanshot.com/)

> A screenshot tool that finally doesn't leave me frustrated, and works so well that I don't even have to think about it. Intuitive keyboard shortcuts, "just enough" UI, and a smooth experience.
- [Due](https://www.dueapp.com/)

> The only reason I remember important things anymore. I don't remember what life was like before Due, but I'm sure I was letting people down left and right.
- [Fantastical](https://flexibits.com/fantastical)

> A calendar app that is intuitive to use and has never let me down over the years. Easily an app I'll likely still be using in another 5.
- [Linear](https://linear.app/)

> When I want to manage my own side projects, I turn to Linear. It's like a Jira + GitHub projects tool that doesn't feel frustrating to use.
- [Microsoft To Do](https://todo.microsoft.com/)

> Wunderlists' "successor", it's actually surprisingly nice for simple lists of information, presented in a clear way, with many of the features that I personally found useful from its predecessor. It does everything I need that isn't "important" - that goes in my next list item.
- [OmniFocus](https://www.omnigroup.com/omnifocus/)

> OmniFocus is a fantastically powerful, flexible piece of software. I don't think I'd be able to stay on top of all of the important things I need to do if I didn't use OmniFocus. I've tried so many task tracking applications, and this one is perfectly suited to my needs, and I have workflows that are now in my fingertips that I am at a loss for when I move to a "shiny new thing" to check out and see if it'll replace it. One day, I'll write about all this. One day.
- [Rectangle](https://rectangleapp.com/)

> A great way to split windows on the Mac. The keyboard shortcuts for moving things around is baked into my fingers at this point. I ended up donating to the maintainer a few times over the years because I simply can't believe that it's still free.
- [Karabiner-Elements](https://karabiner-elements.pqrs.org/)

> The only way I'm able to use my laptop keyboard these days. I use a lot of custom keyboards and have come up with keymaps that I miss when I go back to my laptop keyboard, and Karabiner is the only reason why I'm able to even "get by" for more than 5 minutes when I want to be somewhere other than my desk.
- [Soulver](https://www.acqualia.com/soulver/)

> I keep this open all the time with running calculations that I can't be bothered to do by hand. A life saver for conversions, complex one-off equations, etc.
- [Sublime Merge](https://www.sublimemerge.com/)

> My preferred git front-end application on the Mac these days. Often I don't even touch `git` directly anymore, and that's almost entirely because of this app.
You might have noticed a complete lack of note apps in this list. It's not because I don't like any, it's just that every single one I use has some flaw or flaws that just don't keep me hooked to it, that are solved by another application, which in turn has shortcomings, and so on and so forth. If you _ever_ find a note app that you think can satisfy my needs, please [get in touch](mailto:[email protected]).

### CLI Tooling

- [lnav](https://github.com/tstack/lnav)

> If you need to review logs locally, I can't think of a better piece of software that runs in the terminal. Has saved me tons of time over the last several years.
- [`fzf`](https://github.com/junegunn/fzf)

> A fuzzy finder in the terminal that I think should come standard on every installation. So flexible that it can work with basically any list of options. One of the first CLI tools that truly blew my mind when I found it.
- [`ranger`](https://github.com/ranger/ranger)

> A pleasant column-based file browser (the only sane way to browse a file system, don't @ me) for the terminal. Sometimes I go days without opening the Finder, and that's almost entirely because of this tool.
- [`neovim`](https://github.com/neovim/neovim)

> I don't use `neovim` as much as I used to anymore, but it's really the only editor that might steal my attention away from VSCode again in the coming years. Really love the work that's been happening there, and I watch their project with great interest - most of the time what I hate about using other editors is that editing in anything other than vim just sucks - I have huge hopes for `neovim`'s "embeddability" taking over the world.
- [`qmk`](https://qmk.fm/)

> The software powering one of my biggest hobbies, keyboards. QMK is a blessing.
### Fonts of Choice

- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) (_just slightly_ ahead of [SF Mono](https://developer.apple.com/fonts/), IMO)
- [Inter](https://github.com/rsms/inter)
13 changes: 7 additions & 6 deletions content/posts/lnav-mongodb-format.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
+++
title = "MongoDB 4.4 Structured Logging & `lnav`"
date = "2020-08-18"
summary = "I use `lnav` pretty much every day to look at MongoDB logs. Now you can too."
+++
---
title: "MongoDB 4.4 Structured Logging & lnav"
date: "2020-08-18"
summary: "I use `lnav` pretty much every day to look at MongoDB logs. Now you can too."
showToc: false
---

I've been using the `lnav` tool for parsing logs for a good long while now. Now that MongoDB 4.4 has structured logging, I took a shot at creating a formatting file for `lnav` so that it prints them out in a similar fashion that I've been used to with the pre-4.4 logging style. While I didn't want to get too far away from the default formatting, there are some conveniences added that make looking at these logs a bit nicer than just using something like `less` or parsing them with `jq`.

Expand Down Expand Up @@ -111,4 +112,4 @@ After [some help from @tstack](https://github.com/tstack/lnav/issues/746) (the m

These files would be put in the `$HOME/.lnav/formats/installed` folder. `lnav` has some [pretty good sampling logic](https://lnav.readthedocs.io/en/latest/formats.html#format-order-when-scanning-a-file) and shouldn't have any problem figuring out which formatting file to use when you open a file that matches the rules in those files. There are also plenty of other file formats that other folks have created if you don't need to look at MongoDB logs but you _do_ want to use `lnav` located [here](https://github.com/tstack/lnav-config/blob/master/remote-config.json).

Feel free to reach out [on Twitter](twitter.com/macintacos) if you have any questions. I hope to share more nuggets of information like this on this site when I have the chance.
Feel free to reach out [on Twitter](twitter.com/macintacos) if you have any questions. I hope to share more nuggets of information like this on this site when I have the chance.
10 changes: 5 additions & 5 deletions content/posts/macinplanck-configuration.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
+++
title = "The `macinplanck` Config"
date = "2020-01-01"
summary = "Shiny keyboards = fun time-sinks."
+++
---
title: "The macinplanck Config"
date: "2020-01-01"
summary: "Shiny keyboards = fun time-sinks."
---

As a Christmas gift to myself, I decided to get a new keyboard; a keyboard that I had scoffed at using not too long ago because "lol where's all the keys?". That keyboard is the [Planck EZ Glow](https://ergodox-ez.com/pages/planck). This post is to describe how I have it setup, not to give a whole backstory as to why I decided to get it (that's for me and my journal to know, thank you very much). I affectionately refer to my keyboard as the **macinplanck**.

Expand Down
5 changes: 5 additions & 0 deletions content/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Search"
layout: "search"
summary: "search"
---
41 changes: 23 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
{
"author": {
"email": "juliantorres@hey.com",
"email": "julian.m.tor@gmail.com",
"name": "Julian Torres",
"url": "https://macintacos.com/"
},
"dependencies": {},
"description": "The website for jmt.dev/macintacos.com",
"devDependencies": {
"auto-changelog": "2.2.0",
"concurrently": "6.0.2",
"husky": ">=4",
"lint-staged": ">=10",
"prettier": "2.1.1",
"release-it": "^13.6.9"
"release-it": "^13.6.9",
"sass": "1.32.10"
},
"name": "jmt_dev_site",
"repository": {
"type": "git",
"url": "git://github.com/macintacos/site"
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx}": "eslint --fix",
"*.{ts,tsx,js,jsx,css,md}": "prettier --write"
},
"name": "jmt_dev_site",
"release-it": {
"hooks": {
"after:bump": "npx auto-changelog -p"
},
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
"commit": false,
Expand All @@ -31,22 +36,22 @@
"release": true,
"tokenRef": "RELEASE_IT_GITHUB_TOKEN"
},
"hooks": {
"after:bump": "npx auto-changelog -p"
},
"npm": {
"publish": false
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js,jsx,css,md}": "prettier --write",
"*.{js,jsx}": "eslint --fix"
"repository": {
"type": "git",
"url": "git://github.com/macintacos/site"
},
"scripts": {
"release": "release-it",
"watch": "hugo server --buildDrafts --bind $(ipconfig getifaddr en0) --baseURL http://$(ipconfig getifaddr en0)"
"watch": "concurrently \"npm run hugo-watch\" \"npm run scss-watch\"",
"hugo-watch": "hugo server --buildDrafts --bind $(ipconfig getifaddr en0) --baseURL http://$(ipconfig getifaddr en0)",
"scss-watch": "sass --watch scss:assets/css/extended"
},
"version": "3.0.1"
}
Loading

0 comments on commit 0511ef1

Please sign in to comment.