-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (80 loc) · 5.7 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
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="A personal website of a power looper, a skateboarder, and a coder" />
<meta name="keywords" content="Radislav Golubtsov Radicchio personal website power looper skateboarder coder passionate software developer" />
<meta name="motto" content="Be a power looper, love a fighter chick." />
<meta name="alter" content="No pockets in a shroud." />
<meta name="author" content="Radislav (Radicchio) Golubtsov" />
<meta name="copyright" content="Copyright (C) 2016-2024 Radislav (Radicchio) Golubtsov" />
<title>A Cup of Radicchio</title>
<link href="/radicchio.css" type="text/css" rel="stylesheet" />
<link href="/favicon.ico" type="image/png" rel="icon" />
<link href="https://fonts.googleapis.com" rel="preconnect" />
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet" />
</head>
<body id="radicchio">
<table id="header">
<tbody>
<tr id="title">
<td rowspan="2" id="v-bar-h"></td>
<td id="title-td">A Cup of Radicchio<br />
<span id="subtitle">A personal website of a power looper, a skateboarder, and a coder</span></td>
</tr>
<tr id="navbar">
<td id="navbar-td"><a href="/" id="nav-home"> Home </a><a href="/data/docs/" id="nav-docs"> Docs </a><a href="/data/srcs/" id="nav-srcs"> Sources </a><a href="/data/blog/" id="nav-blog"> Blog </a><a href="https://github.com/rgolubtsov" id="nav-ghub" target="_blank" rel="nofollow noopener noreferrer"> GitHub </a></td>
</tr>
</tbody>
</table>
<h3><code>HTTP 200 OK</code></h3>
<p class="orbit"><strong>To Whom It May Concern</strong></p>
<p>This is what <span class="orbit">Radicchio</span> loves so much:</p>
<pre><code>$ # Git.
$ git status && git fetch -p && git branch -a && git tag -l && git pull && git status
</code></pre>
<p>The second one is a combination of <code>find</code> and <code>grep</code>:</p>
<pre><code>$ # Find and print line(s) of text, based on a specified regex pattern.
$ find . -type f -print0 | xargs -0 grep '<regex>'
</code></pre>
<p>The third one is a combination of <code>grep</code> and <code>sed</code> (or <code>perl</code>, where applicable):</p>
<pre><code>$ # Find a text, based on a specified regex pattern, then pass corresponding filenames to Sed (or Perl) for replacing that text with another one.
$ grep -Rl '<regex_to_replace>' | xargs sed -i -e 's/<regex_to_replace>/<regex-replacer>/g'
$ grep -Rl '<regex_to_replace>' | xargs perl -pi -e 's/<regex_to_replace>/<regex-replacer>/g'
</code></pre>
<p>The fourth one is a one-time procedure of logging into a VM box or any other remote host, using SSH public key authentication:</p>
<pre><code>$ # Run SSH agent in the background and add a private key.
$ eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa
$ # Log into a running VM box by means of SSH client.
$ ssh -C <vmusername>@<vmhostname>
</code></pre>
<p>The fifth one is a series of requests for getting statuses of power supply sensors on a laptop in any modern Linux distro like Arch Linux or Ubuntu:</p>
<pre><code>$ # Query AC adapter.
$ cat /sys/class/power_supply/AC+(AD|1)/online
$ # Query the battery.
$ cat /sys/class/power_supply/BAT1/+(charge|energy)_full
$ cat /sys/class/power_supply/BAT1/+(charge|energy)_now
$ cat /sys/class/power_supply/BAT1/+(current|power)_now
</code></pre>
<p>The sixth one is an infrequent, from time to time procedure of adjusting the Hardware Clock and the System Clock in the same time:</p>
<pre><code>$ # Set the Hardware Clock and the System Clock unconditionally, non-synced.
$ sudo hwclock --set --date="CCYY-MM-DD hh:mm:ss" --localtime && sudo date MMDDhhmmCCYY.ss
$ # || || ^^ ^^
$ # YY - Year || || || ||
$ # MM - Month || |+------------ Day of month ------------+| ||
$ # hh - Hour || +----------------------------------------+ ||
$ # mm - Minute |+---------------------- Century ---------------------+|
$ # ss - Second +------------------------------------------------------+
</code></pre>
<p style="text-align:left">Drink with <strong>pleasure</strong>, consume <strong>responsibly</strong>, at leisure! <img src="https://github.githubassets.com/images/icons/emoji/unicode/1f603.png" class="emoji" alt="Ha-ha!))" /></p>
<table id="footer">
<tbody><tr><td id="v-bar-f"></td><td id="footer-td"><a href="https://anybrowser.org/campaign/" target="_blank" rel="nofollow noopener"><img style="border:0;width:88px;height:31px" src="/static/img/misc/vwab" alt="Viewable With Any Browser" /></a><a href="https://jigsaw.w3.org/css-validator/check/referer" target="_blank" rel="nofollow noopener"><img style="border:0;width:88px;height:31px" src="/static/img/misc/vcss" alt="Valid CSS!" /></a></td></tr></tbody>
</table>
<script src="/radicchio.js"></script>
</body>
</html>