-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (104 loc) · 5.19 KB
/
index.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Hugo 0.96.0" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"><title>aasa | Home </title><link rel="icon" type="image/png" href=true /><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="" />
<meta property="og:image" content=""/>
<link rel="alternate" type="application/rss+xml" href="https://aasa.dev/index.xml" title="aasa" />
<meta property="og:title" content="aasa" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aasa.dev/" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="aasa"/>
<meta name="twitter:description" content=""/>
<link href="https://aasa.dev/css/fonts.b685ac6f654695232de7b82a9143a46f9e049c8e3af3a21d9737b01f4be211d1.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="https://aasa.dev/css/main.2f9b5946627215dc1ae7fa5f82bfc9cfcab000329136befeea5733f21e77d68f.css" />
</head>
<body>
<div class="content">
<header>
<div class="main">
<a href="https://aasa.dev/">aasa</a>
</div>
<nav>
</nav>
</header>
<main class="list">
<div class="site-description"></div>
<section class="list-item">
<h1 class="title"><a href="/posts/profile-clojure-step-by-step/">Profile Clojure Step by Step</a></h1>
<time>Apr 8, 2022</time>
<br><div class="description">
Profile in CodeScene with async-profiler: Check that the following is set to 1:
cat /proc/sys/kernel/perf_event_paranoid
To set it do this:
echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid
Add the following to your project.clj (if you’re using leinigen):
:async-profiler {:jvm-opts ["-Djdk.attach.allowAttachSelf" "-XX:+UnlockDiagnosticVMOptions" "-XX:+DebugNonSafepoints"] :dependencies [[com.clojure-goes-fast/clj-async-profiler "1.0.0-alpha1"]]} Require the profiler in your ns, and add (proc/profile) around the interesting code
(require '[clj-async-profiler.core :as prof]) ;; Profile your expression:…
</div>
<a href="/posts/profile-clojure-step-by-step/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/posts/refactoring-recommendations/">Refactoring Recommendations</a></h1>
<time>Mar 15, 2022 <span class="draft-label">DRAFT</span> </time>
<br><div class="description">
…
</div>
<a href="/posts/refactoring-recommendations/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/posts/vim-xmap-dot/">Repeat dot command on visual selection</a></h1>
<time>Nov 5, 2021</time>
<br><div class="description">
Nice vim trick
xmap <silent> . :normal .…
</div>
<a href="/posts/vim-xmap-dot/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/posts/vim-plantuml/">Using Plantuml from Vim</a></h1>
<time>Feb 12, 2021</time>
<br><div class="description">
Creating diagrams is a great way to communicate with others. Writing in vim is a great way to communicate with yourself.
Combine them and it’s just great!
The resulting workflow: Just open a plantuml file and use :PlantumlOpen to launch a live reloading browser with the preview.
Pre-requisite software:
plantuml Required plugins:
Plug 'aklt/plantuml-syntax' " syntax hl for pumlPlug 'tyru/open-browser.vim' " hooks for opeing browserPlug 'weirongxu/plantuml-previewer.vim' " previewerIf you (like me) just love some ascii art, use the entr or similar here:…
</div>
<a href="/posts/vim-plantuml/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/posts/til-pipe-into-vim/">TIL: Pipe Into Vim</a></h1>
<time>Dec 9, 2020</time>
<br><div class="description">
Pipe text into Vim
docker exec containername cat /etc/nginx/conf.d/nginx.conf | vim - …
</div>
<a href="/posts/til-pipe-into-vim/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/posts/initial-commit/">Initial commit</a></h1>
<time>Jun 2, 2019</time>
<br><div class="description">
Blog efficently - workflow for writing in public with ease.
Setup My requirements are:
Control the whole process from the command line Write in markdown No server management Custom domain name Requirements 1-3 are easily satisfied by hugo.
Hugo supports rendering on github pages: https://gohugo.io/hosting-and-deployment/hosting-on-github/
CLI deployment Quoted from https://gohugo.io/hosting-and-deployment/hosting-on-github/
Create a (e.g. blog) repository on GitHub. This repository will contain Hugo’s content and other source files. Create a .…
</div>
<a href="/posts/initial-commit/">Read more ⟶</a>
</section>
</main>
<footer>
<hr>⚡️
2022
</footer>
</div>
</body>
</html>