-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
56 lines (48 loc) · 3.96 KB
/
index.xml
File metadata and controls
56 lines (48 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Arseniy Tsipenyuk</title>
<link>http://tsipenyuk.github.io/</link>
<description>Recent content on Arseniy Tsipenyuk</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<copyright><a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a></copyright>
<lastBuildDate>Fri, 20 May 2022 00:00:00 +0200</lastBuildDate><atom:link href="http://tsipenyuk.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Picking subtype in typescript</title>
<link>http://tsipenyuk.github.io/posts/picking_subtype_in_typescript/</link>
<pubDate>Fri, 20 May 2022 00:00:00 +0200</pubDate>
<guid>http://tsipenyuk.github.io/posts/picking_subtype_in_typescript/</guid>
<description>While watching the Maybe Not talk by Rich Hickey it occured to me that I often use the following &ldquo;type narrowing&rdquo; in Typescript.
interface Car { wheel: string, brake: string, gas: string } function goFast({wheel, gas}: Car) {/* do stuff */} Meaning that I only need certain parts of a car to go fast. With the above definition, I always need to pass the whole car, meaning that</description>
</item>
<item>
<title>Changing keybindings in Slack using Karabiner Elements</title>
<link>http://tsipenyuk.github.io/posts/changing_keybindings_in_slack_using_karabiner_elements/</link>
<pubDate>Sat, 26 Mar 2022 00:00:00 +0100</pubDate>
<guid>http://tsipenyuk.github.io/posts/changing_keybindings_in_slack_using_karabiner_elements/</guid>
<description>I constantly keep using the false shortcut for code in Slack and Confluence (Option+Shift+C in Slack, Option+Shift+M in Confluence).
Apparently there is no native key switching in either of these apps to make the shortcut the same.
I ended up using Karabiner-Elements to map my Option+Shift+C to Option+Ship+M, but only if Slack is my foremost window using the following steps.
1. Install Karabiner. Open it to make sure that it works.</description>
</item>
<item>
<title>Looping over lines in bash</title>
<link>http://tsipenyuk.github.io/posts/looping_over_lines_in_bash/</link>
<pubDate>Tue, 22 Mar 2022 00:00:00 +0100</pubDate>
<guid>http://tsipenyuk.github.io/posts/looping_over_lines_in_bash/</guid>
<description>Recently, I had to write a script that finds files that end in .json but not in examples.json, and renames them. Here is a relevant part of the shell script that uses sed.
find . -type f \( -iname &#34;*.json&#34; ! -iname &#34;*.examples.json&#34; \) | while read -r line do out=$(sed &#39;s/.json/.d.ts/g&#39; &lt;&lt;&lt; &#34;$line&#34;) echo &#34;$lineconverted to $out&#34; done In another place, I wanted to create a minimal custom CHANGELOG that prints git commits that mention category cool-category in their message (e.</description>
</item>
<item>
<title>Setting up ox-hugo</title>
<link>http://tsipenyuk.github.io/posts/setting-up-ox-hugo/</link>
<pubDate>Sun, 20 Mar 2022 22:13:00 +0100</pubDate>
<guid>http://tsipenyuk.github.io/posts/setting-up-ox-hugo/</guid>
<description>To set up ox-hugo, I followed the official quick start page.
On MacOS:
brew install hugo brew install go mkdir blog &amp;&amp; cd blog For theme, I could not get hugo mod init to work, so I used the git clone approach. As of the time of writing, I have used the hello-friend-ng theme, which recommends the github submodule installation:
git submodule add https://github.com/rhazdon/hugo-theme-hello-friend-ng.git themes/hello-friend-ng To conclude the theme setup, I have copied the recommended settings to my config.</description>
</item>
</channel>
</rss>