Skip to content

Instantly share code, notes, and snippets.

%%tana%%

  • Cheat Sheet
    • ✨ Tana Expressions
      • Title #tana-expression
        • Description:: A title expression composes values from the node into a title.
        • Attributes:: Search for Tana "Title" Attributes
      • Search #tana-expression
        • Description:: The search expression consists of a flat list of match-clauses that must be true for a node to match the search.
        • Attributes:: Search for Search Attributes + Search for Search Field Values
  • 🧩 Tana Attributes
@JM-Mendez
JM-Mendez / misc.bash
Last active January 26, 2023 05:00
random commands #git
# push all branches to orgin
git push --force-with-lease --all origin
# rebase and update all branches before leading up
# to this branch from main
git rebase --update-refs main feature

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@JM-Mendez
JM-Mendez / editor.sh
Created February 5, 2022 03:30
Use vscode as git editor
# 1. install vscode in path
# 2. set vscode as git editor in terminal
git config --global core.editor "code --wait"
# 3. write git message using vscode
git commit -m
@JM-Mendez
JM-Mendez / update_line_endings.sh
Last active November 30, 2021 22:28
update all line endings with git #git
# After updating .gitattributes, this will remove the local files and get them from the index
# with the correct line endings.
git rm --cached -r .
git reset --hard
@JM-Mendez
JM-Mendez / Logseq-colored_fonts.css
Created November 17, 2021 17:46 — forked from ciceronianus/Logseq-colored_fonts.css
Logseq-colored_fonts.css
/*------------ CUSTOM COLORS ------------------*/
/*
Title: Custom colors for Logseq
Author:: @CatoMinor3
Version:: 1
Date:: February 6, 2021
Support:
- Paypal: https://www.paypal.me/catominor3
- Patreon: https://www.patreon.com/catominor
@JM-Mendez
JM-Mendez / bug.md
Last active June 2, 2021 17:47
templates for writing tickets #issue-ticket

Currently:

[What happens now in the regression]


Expected:

[What the correct behavior should be]


STEPS TO REPRODUCE:

[If needed, add steps to reproduce]

@JM-Mendez
JM-Mendez / vscode_ssh_git.sh
Last active February 7, 2022 16:29
Set vscode as git editor when using ssh #git
git config --global core.editor code --wait
@JM-Mendez
JM-Mendez / git_stash.sh
Last active February 18, 2021 06:01
git stash only one file #git
git stash push -m "message" -- path_to_file.ext
@JM-Mendez
JM-Mendez / READ_ME.md
Last active June 28, 2021 18:21
Custom mac display custom resolution
  1. enable HiDpi if required
  2. install RDM latest release
  3. set custom resolution using RDM

Hack until apple fixes hidpi

https://forums.macrumors.com/threads/scale-1680x1050-on-rmb-without-an-app.1873910/page-17?post=29863160#post-29863160

SwitchResX -> create a custom resolution for INTERNAL display. Make it 2x the resolution you want, i.e. 3840x2160 for 1080p. Save it and reboot.

Then, connect your laptop up to your monitor. Select the SwitchResX icon in the menu bar at the top. Activate the custom HIDPI res for your internal monitor.