Skip to content

Instantly share code, notes, and snippets.

View tereshhhchenko's full-sized avatar
🐌
Getting back on track. But might be slow to respond

shch tereshhhchenko

🐌
Getting back on track. But might be slow to respond
View GitHub Profile
@tereshhhchenko
tereshhhchenko / macOSFocusFix.md
Created May 3, 2020 08:24
Issue: can't focus links in a web browser on macOS

Issue: can't focus links in a web browser on macOS

Fix for macOS

System Preferences -> Keyboard -> Shortcuts -> Check the “all controls” radio at the bottom

Fix for Firefox on macOS

In Firefox, type "about:config" in the URL bar. There is no accessibility.tabfocus preference on the mac, so you'll have to make one. Right click in the window, create a new "integer" pref, and set it to 7.

@tereshhhchenko
tereshhhchenko / Replace title text in Notion Tasks.md
Last active October 6, 2020 14:23
Programmatically replace title text in Notion Tasks in Calendar View

Update 6 Oct 2020: Changed filtering buttons logic to work properly for tasks without emoji, but with attributes in preview (for example, with time).

Problem – Notion adds 'Copy of' to copied tasks title

I have several repeting tasks in Notion Calendar. Such as zero-inbox and other routine stuff that I need to do every once in a while. Notion doesn't have a feature like Google Calendar that would enable us to create those tasks as re-occuring events. I end up copying tasks for the day and moving them to the next week manually. It works fine for tasks emojis and properties, but every copy has an appended 'Copy of' in it's title. Removing it manually is exhausting and boring. Let's automate it!

Solution

Notion API is not released yet. To automate text replacement in titles I played around with Notion in browser. The resulting script is a bit time consuming, but it is still better than manual editing. Here's how I wrote it.

@tereshhhchenko
tereshhhchenko / puppeteer-ubuntu-1804.md
Created June 22, 2021 09:23 — forked from winuxue/puppeteer-ubuntu-1804.md
Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic)

puppeteer dependeces in ubuntu 18.04 (Bionic)

error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

sudo apt-get install libnss3

error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libxss1