Skip to content

Commit

Permalink
update to be compatible with newest forester and fix arhive.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
hejohns committed Aug 21, 2024
1 parent 21ded1c commit 0283476
Show file tree
Hide file tree
Showing 249 changed files with 90,560 additions and 60,781 deletions.
2 changes: 1 addition & 1 deletion _forest
55 changes: 55 additions & 0 deletions _site/1q
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
aruba
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch trunk
# Your branch is up to date with 'origin/trunk'.
#
# Changes to be committed:
# new file: _posts/aruba.md
# modified: _site/2023/04/09/gsi-applications.html
# modified: _site/2023/04/10/miserliness.html
# modified: _site/2023/04/14/rasterize-pdfs.html
# modified: _site/2023/04/23/scripting.html
# modified: _site/2023/05/02/chili-oil.html
# modified: _site/2023/05/07/nonstandard-analysis.html
# modified: _site/2023/05/10/linux-graphics-modules.html
# modified: _site/2023/07/24/book-catalogue.html
# modified: _site/2023/08/03/nic-bonding.html
# modified: _site/2023/10/10/tortoise-tts.html
# modified: _site/2023/10/29/coordinating-processes.html
# modified: _site/2023/11/07/ble-sh.html
# modified: _site/2023/12/19/icecc.html
# modified: _site/2023/12/20/xmonad.html
# modified: _site/2024/01/08/thunderbird-and-nix.html
# modified: _site/2024/01/16/mellanox.html
# modified: _site/2024/02/08/natural-models.html
# modified: _site/2024/02/12/noctua.html
# modified: _site/2024/02/24/vim.html
# modified: _site/2024/03/10/deoplete.html
# modified: _site/2024/04/11/fountain-pen-nibs.html
# modified: _site/2024/06/17/archiving-stack-overflow.html
# new file: _site/2024/07/24/aruba.html
# modified: _site/404.html
# modified: _site/category-theory/2023/05/18/equivalence-of-categories.html
# modified: _site/category/category-theory/index.html
# modified: _site/category/site-construction/index.html
# modified: _site/feed.xml
# modified: _site/notes/1-25.html
# modified: _site/notes/2-08.html
# modified: _site/posts.html
# modified: _site/reviews.html
# modified: _site/site-construction.html
# modified: _site/site-construction/2023/04/05/katex-test.html
# modified: _site/site-construction/2023/04/05/last-modified-time-test.html
# modified: _site/site-construction/2023/04/05/page-sorting.html
# modified: _site/site-construction/2023/04/05/welcome-to-jekyll.html
# modified: _site/site-construction/2023/04/07/underscore-plugins.html
# modified: _site/site-construction/2023/05/14/darcs.html
# modified: _site/site-construction/2023/11/06/live-reload.html
# modified: _site/sitemap.xml
#
# Untracked files:
# notes/_site/
# reviews.md
#
6 changes: 3 additions & 3 deletions _site/2023/04/09/gsi-applications.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ <h2 id="engr-101-f23">ENGR 101 (F23)</h2>

<iframe width="560" height="315" src="https://www.youtube.com/embed/Cd9Tq7s_BhQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen=""></iframe>

<style> .pdf-embed-wrap-2dd138a8-4a85-499e-8512-7ed4ad2b9239 { display: flex; flex-direction: column; width: 100%; height: 650px; } .pdf-embed-container-2dd138a8-4a85-499e-8512-7ed4ad2b9239 { height: 100%; } .pdf-link-2dd138a8-4a85-499e-8512-7ed4ad2b9239 { background-color: white; text-align: center; border-style: solid; } .pdf-embed-container-2dd138a8-4a85-499e-8512-7ed4ad2b9239 iframe { width: 100%; height: 100%; } </style>
<div class="pdf-embed-wrap-2dd138a8-4a85-499e-8512-7ed4ad2b9239"> <div class="pdf-link-2dd138a8-4a85-499e-8512-7ed4ad2b9239"> <a href="/files/101-gsi-application.pdf" target="_blank">View PDF</a> </div> <div class="pdf-embed-container-2dd138a8-4a85-499e-8512-7ed4ad2b9239"> <iframe src="/files/101-gsi-application.pdf" frameborder="0" allowfullscreen=""></iframe> </div> </div>
<style> .pdf-embed-wrap-9c954e94-a516-44ac-88aa-3ff78723f84d { display: flex; flex-direction: column; width: 100%; height: 650px; } .pdf-embed-container-9c954e94-a516-44ac-88aa-3ff78723f84d { height: 100%; } .pdf-link-9c954e94-a516-44ac-88aa-3ff78723f84d { background-color: white; text-align: center; border-style: solid; } .pdf-embed-container-9c954e94-a516-44ac-88aa-3ff78723f84d iframe { width: 100%; height: 100%; } </style>
<div class="pdf-embed-wrap-9c954e94-a516-44ac-88aa-3ff78723f84d"> <div class="pdf-link-9c954e94-a516-44ac-88aa-3ff78723f84d"> <a href="/files/101-gsi-application.pdf" target="_blank">View PDF</a> </div> <div class="pdf-embed-container-9c954e94-a516-44ac-88aa-3ff78723f84d"> <iframe src="/files/101-gsi-application.pdf" frameborder="0" allowfullscreen=""></iframe> </div> </div>
<h2 id="eecs-376-f23">EECS 376 (F23)</h2>
<p><strong>outcome</strong>: rejected. No response.</p>
<h3 id="too-long-version">too long version</h3>
Expand Down Expand Up @@ -153,7 +153,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/04/10/miserliness.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/04/14/rasterize-pdfs.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/04/23/scripting.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/05/02/chili-oil.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/05/07/nonstandard-analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/05/10/linux-graphics-modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/07/24/book-catalogue.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/08/03/nic-bonding.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/10/10/tortoise-tts.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/10/29/coordinating-processes.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/11/07/ble-sh.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/12/19/icecc.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2023/12/20/xmonad.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/01/08/thunderbird-and-nix.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/01/16/mellanox.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/02/08/natural-models.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/02/12/noctua.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/02/24/vim.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/03/10/deoplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/2024/04/11/fountain-pen-nibs.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
42 changes: 36 additions & 6 deletions _site/2024/06/17/archiving-stack-overflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,18 @@ <h2 id="second-iteration">Second Iteration</h2>
require 'selenium-webdriver'

driver = Selenium::WebDriver.for :firefox
driver.get(ARGV[0])
url = ARGV[0]
url =~ Regexp.new('/([^/]+)$')
fail unless Regexp.last_match
post_name = $1
puts "post #{post_name}"
driver.get(url)

# https://meta.stackoverflow.com/questions/268400/is-there-a-get-query-string-to-expand-all-comments-by-default#comment555104_268456
sleep 1
# wait for the page to load (yes, I know this isn't the proper way, but I really don't know how to tell if the page is fully loaded)
sleep 3
driver.execute_script(
"javascript:for(x of document.getElementsByClassName('js-add-link comments-link'))x.click()"
"javascript:for(x of document.getElementsByClassName('js-add-link comments-link'))x?.click()"
)

# We get MathJax rendering errors for some reason, so let's just use the
Expand All @@ -142,10 +148,34 @@ <h2 id="second-iteration">Second Iteration</h2>
# Not that it matters much, since we wouldn't be able to interact with the
# popup anyways
#driver.action.key_down(:control).key_down('s').key_up(:control).key_up('s').perform

#
# somehow, we always come back to xdotool...

# stack overflow has a giant sign-in pop-up we want to close
# let's just spam Esc a couple times to get it to go away
for _ in 1..3 do
sleep 1
`xdotool key Escape`
end
# how to close the other smaller pop-ups:
# https://www.w3schools.com/jsref/met_html_click.asp
sleep 1
# close cookies request pop-up
driver.execute_script(
"javascript:document.getElementById('onetrust-reject-all-handler')?.click()"
)
sleep 1
# close google sign-in pop-up
driver.execute_script(
"javascript:document.getElementById('credential_picker_container')?.remove()"
)

# and finally, we save by simulating &lt;C-s&gt; with xdotool
sleep 1
`xdotool key ctrl+s`
system('xdotool', 'type', File.expand_path(ARGV[1]))
sleep 1
system('xdotool', 'type', File.expand_path(File.join(ARGV[1], post_name)))
sleep 1
`xdotool key alt+s`

sleep 1
Expand Down Expand Up @@ -190,7 +220,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
4 changes: 2 additions & 2 deletions _site/2024/07/24/aruba.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="aruba access points are AWESOME" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"Johnson He"},"dateModified":"2024-07-24T04:07:49-04:00","datePublished":"2024-07-24T00:00:00-04:00","description":"ebay, $6.50/instant AP 215 (incl. shipping).","headline":"aruba access points are AWESOME","mainEntityOfPage":{"@type":"WebPage","@id":"https://hejohns.github.io/2024/07/24/aruba.html"},"url":"https://hejohns.github.io/2024/07/24/aruba.html"}</script>
{"@context":"https://schema.org","@type":"BlogPosting","author":{"@type":"Person","name":"Johnson He"},"dateModified":"2024-07-24T04:16:06-04:00","datePublished":"2024-07-24T00:00:00-04:00","description":"ebay, $6.50/instant AP 215 (incl. shipping).","headline":"aruba access points are AWESOME","mainEntityOfPage":{"@type":"WebPage","@id":"https://hejohns.github.io/2024/07/24/aruba.html"},"url":"https://hejohns.github.io/2024/07/24/aruba.html"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/assets/css/style.css"><link type="application/atom+xml" rel="alternate" href="https://hejohns.github.io/feed.xml" title="hejohns&apos; jekyll site" /> <!-- see: -->
<!-- https://codewrites.me/jekyll/katex/blog/2020/08/26/use-katex-gh-pages/ -->
Expand Down Expand Up @@ -114,7 +114,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h1>404</h1>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h2> related </h2>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/category/category-theory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>Archive of posts with category 'category-theory'</h1>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
2 changes: 1 addition & 1 deletion _site/category/site-construction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1>Archive of posts with category 'site-construction'</h1>
<li>(the answer is yes, you should.)</li>
</ul>
<!-- add last-modified-time -->
<p>site version: 2024-07-24</p>
<p>site version: 2024-08-21</p>
</div>
<div class="footer-col">
<p>a pure waste of space</p>
Expand Down
Loading

0 comments on commit 0283476

Please sign in to comment.