Skip to content

Commit

Permalink
phone: shortcuts gcp command- pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwhiting committed Feb 6, 2024
1 parent 8f0dc2e commit abd2f7f
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 32 deletions.
28 changes: 14 additions & 14 deletions .obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
{
"recentFiles": [
{
"basename": "2-nephi-1",
"path": "christianity/2-nephi-1.md"
"basename": "how-to-share-an-html-file-like-a-quarto-output-in-github",
"path": "tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md"
},
{
"basename": "2024-02-05",
"path": "goals/2024-02-05.md"
},
{
"basename": "2024-02-06",
"path": "goals/2024-02-06.md"
},
{
"basename": "a-knife-to-a-gun-fight",
"path": "tech/a-knife-to-a-gun-fight.md"
},
{
"basename": "2-nephi-1",
"path": "christianity/2-nephi-1.md"
},
{
"basename": "how-to-win-friends-and-influence-people",
"path": "book-review/how-to-win-friends-and-influence-people.md"
Expand Down Expand Up @@ -187,18 +199,6 @@
{
"basename": "influence-the-psychology-of-persuasion",
"path": "book-review/influence-the-psychology-of-persuasion.md"
},
{
"basename": "beam-ai",
"path": "tech/beam-ai.md"
},
{
"basename": "gpt4all",
"path": "tech/gpt4all.md"
},
{
"basename": "ai",
"path": "lists/ai.md"
}
],
"omittedPaths": [],
Expand Down
22 changes: 11 additions & 11 deletions .obsidian/workspace-mobile.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "christianity/2-nephi-1.md",
"file": "tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -93,7 +93,7 @@
"state": {
"type": "backlink",
"state": {
"file": "christianity/2-nephi-1.md",
"file": "tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +110,7 @@
"state": {
"type": "outline",
"state": {
"file": "christianity/2-nephi-1.md"
"file": "tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md"
}
}
},
Expand All @@ -120,7 +120,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "christianity/2-nephi-1.md",
"file": "tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -141,10 +141,15 @@
},
"active": "be767112276aa446",
"lastOpenFiles": [
"img/dalle-paradise-vs-destruction.jpeg",
"scriptures/2-nephi-1.4.md",
"img/screenshot-html-file-on-github-rendered.jpeg",
"img/screenshot-raw-html-on-github.jpeg",
"goals/2024-02-05.md",
"tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md",
"goals/2024-02-06.md",
"tech/a-knife-to-a-gun-fight.md",
"christianity/2-nephi-1.md",
"img/dalle-paradise-vs-destruction.jpeg",
"scriptures/2-nephi-1.4.md",
"book-review/how-to-win-friends-and-influence-people.md",
"creative/guitar-clouds.md",
"tech/embedding-audio-in-quarto.md",
Expand All @@ -170,15 +175,10 @@
"goals/2024-02-02.md",
"goals/2024-02-01.md",
"goals/2024-01-29.md",
"goals/2024-01-30.md",
"goals/2024-01-31.md",
"posts/the-iceberg-theory-theory-of-omission.md",
"img/dalle-image-wheat-into-a-silo.jpeg",
"code/2024-02-02-libby.py",
"code",
"img/dalle-image-divinely-discontent.jpeg",
"img/photo-screenshot-leaderboard-llm-short.jpeg",
"img/photo-screenshot-chatbot-arena-leaderboard.jpeg",
"innovate",
"docs/gratitude/imagination.html",
"docs/gratitude/chirping-birds.html",
Expand Down
2 changes: 1 addition & 1 deletion goals/2024-02-05.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories:
- goals
sun: true
water24oz: true
pray: false
pray: true
meditate: false
sss: false
workout-time: 0
Expand Down
36 changes: 36 additions & 0 deletions goals/2024-02-06.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
date: 2024-02-06
title: 2024-02-06
description: x
categories:
- goals
sun: false
water24oz: false
pray: false
meditate: false
sss: false
asleepby1030: false
workout-time: 0
muscle-groups:
- x
exercises:
- x
difficulty: 0
workout-notes: x
workout-vibe: x
pelo-warmup: 0
pelo-time: 0
pelo-kj: 0
pelo-avg: 0
run-dist: 0
run-time: 0
hike-dist: 0
hike-elev: 0
hike-time: 0
basketball-time: 0
draft: false
---
**Tuesday, February 6th, 2024**
[⏪ Mo 2/5](goals/2024-02-05) | Let God Prevail | [We 2/7 ⏩](goals/2024-02-07)


Binary file added img/screenshot-html-file-on-github-rendered.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/screenshot-raw-html-on-github.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions tech/a-knife-to-a-gun-fight.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ draft: false
updated: 2024-01-09T23:49:13
---

Tim Ferris describes why he doesn't have social media on his phone:
Tim Ferris describes [why he doesn't have](https://youtu.be/_Fn-giKevmo?si=f1Lz9H2U08BQhKwv) social media on his phone:

{{< video <https://youtu.be/_Fn-giKevmo?si=f1Lz9H2U08BQhKwv> >}}
{{< video https://youtu.be/_Fn-giKevmo?si=f1Lz9H2U08BQhKwv >}}

I recently deleted social media from my phone 14 days ago. I had been using Instagram until April when I quit and Twitter all year. I realized within days how much better I felt without social media. Happier. Legitimately happier.
I recently deleted social media from my phone 14 days ago. I had been using Instagram until April when I quit and migrated to Twitter the rest of the year. I recently realized within days how much better I felt without social media. Happier. Legitimately happier.

And why? What do I get out of it? I'm not growing closer to friends. That's what texting and calling and spending time in person does. But I'd argue even texting doesn't really strengthen a relationship because it's so hard to properly interpret emotions and cues via text: you interpret them how you read those texts. You interpret it according to your emotional state, not the sender's.
And why? What did I get out of it? I wasn't growing closer to friends. That's what texting and calling and spending time in person does. But I'd argue even texting doesn't really strengthen a relationship because it's so hard to properly interpret emotions and cues via text: you interpret them how you read those texts. You interpret it according to your emotional state, not the sender's.

Phone provides vocal emotional cues. Body language another set of emotional cues. I can get probably 70% of this out from FaceTime or [Zoom](../gratitude/zoom.md). But being in person is what we're meant for.

This is why we strengthen relationships locally, and fail to continue ones from high school or our previous job.

So what was I doing on social media? Watching clips of either strangers I don't care about or college associates I friended (once lived locally with) that I no longer talk to.

So what's the knife you're bringing to the gun fight? When at YouTube I heard the CEO praise a team for increasing "seconds watched" by 15% by reducing the lag of the swipes between YouTube shorts (TikTok clone). The lag reduction was in the milliseconds. Your attention is being bought and manipulated by the shareholders of these companies.
So what's the knife you're bringing to the gun fight? When at YouTube I heard the CEO praise a team for increasing "seconds watched" by 15% by reducing the lag of the swipes between YouTube shorts (TikTok clone). The lag reduction was in the milliseconds. Meaning: they made the slot machine more addictive.

Your attention is being bought and manipulated by the shareholders of these companies.

![Yes, they're targeting specifically you. You don't stand a chance. And you have a pocket knife, and you're 50 feet away. Who's gonna win?](../img/dalle-knife-gun-fight.jpeg){.preview-image}

Expand All @@ -50,4 +52,4 @@ I *do* miss laughing about some random Reel. There's nothing that can get you la

Since being off social media I feel like my senses have grown. I now find my kids a lot funnier, my wife funnier, and I'm able to make heavy situations lighter much easier.

There's a quote in [Dune](../book-review/dune.md) that's something like "If you rely only on your eyes, your other senses weaken". I'd argue my other relationships weakened too. Time to leave the fight. I was losing.
There's a quote in [Dune](../book-review/dune.md) that's something like "If you rely only on your eyes, your other senses weaken". I'd argue my other relationships had weakened too. Time to leave the fight. I was losing.
32 changes: 32 additions & 0 deletions tech/how-to-share-an-html-file-like-a-quarto-output-in-github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: How to share an HTML file (like a quarto output in GitHub)
description: Do you have an HTML file saved on GitHub that you'd like to share?
date: 2024-02-06 09:44:38
created: 2024-02-06 09:44:38
categories:
- tech
- quarto
- github
- data science
- html
draft: false
---
Let's assume you have a raw HTML file on GitHub, such as a Jupyter notebook you rendered to HTML or a Quarto doc you rendered via `quarto render`.

If you try to share the link from GitHub directly, GitHub will just show the raw HTML file.

Use this link to convert it to your dashboard:

[GitHub & BitBucket HTML Preview](https://htmlpreview.github.io/)

Example:

GitHub File: https://github.com/bryanwhiting/blog/blob/gh-pages/index.html

![Preview in GitHub](../img/screenshot-raw-html-on-github.jpeg){.preview-image}

Preview using that link: https://htmlpreview.github.io/?https://github.com/bryanwhiting/blog/blob/gh-pages/index.html

Notice the URL at the bottom

![Render HTML](../img/screenshot-html-file-on-github-rendered.jpeg){.preview-image}

0 comments on commit abd2f7f

Please sign in to comment.