Skip to content

Commit

Permalink
removed wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedimp committed Jun 23, 2024
1 parent cf1be79 commit 244109e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=en><head><title> 404 Not Found </title><meta charset=UTF-8><link href=/css/base.css rel=stylesheet><meta content="width=device-width,initial-scale=1" name=viewport><link href=/favicon.svg rel=icon><body><nav><ul><li class=logo><a href=https://spacedimp.com/><img src="/Untitled design.png"></a><li><a href=https://spacedimp.com/>Home</a><li><a href=https://spacedimp.com/blog/>Blog</a></ul></nav><p class=four-msg>404 not found</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
<!doctype html><html lang=en><head><title> 404 Not Found </title><meta charset=UTF-8><link href=/css/base.css rel=stylesheet><meta content="width=device-width,initial-scale=1" name=viewport><link href=/favicon.svg rel=icon><body><nav><ul><li class=logo><a href=https://spacedimp.com/><img src="/Untitled design.png"></a><li><a href=https://spacedimp.com/>Home</a><li><a href=https://spacedimp.com/blog/>Blog</a></ul></nav><p class=four-msg>404 not found</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
</span></code></pre><p>compile:<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>mix</span><span> release
</span></code></pre><p>You should now have a binary located at:<p><code>_build/dev/rel/myapp/bin/myapp</code><p>You can run it as so:<p><code>_build/dev/rel/myapp/bin/myapp start</code><p>We can now exit the container so that we can build an image with this binary installed.<p><code>exit && exit</code><p>In your host terminal run:<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>podman</span><span> commit alp alp:v2
</span></code></pre><p>Now we can start up the new container with the binary running by default:<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>podman</span><span> run</span><span style=color:#e06c75> -dit --network</span><span>=bridge</span><span style=color:#e06c75> -p</span><span> 7070:7070</span><span style=color:#e06c75> --name</span><span> alp2 alp:v2 /home/alpine/myapp/_build/dev/rel/myapp/bin/myapp start
</span></code></pre><h3 id=wrap-up>Wrap up</h3><p>The main benefits of using Podman over Docker are security related. I won't rehash it all here so if you want to learn more check out linode's <a href=https://www.linode.com/docs/guides/podman-vs-docker/ rel=noopener target=_blank>explanation</a>.<p>I suggest learning more about plug and its router from <a href=https://elixirschool.com/blog/building-apps-with-plug-router/ rel=noopener target=_blank>elixirschool</a>.</p><br><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
</span></code></pre><h3 id=wrap-up>Wrap up</h3><p>The main benefits of using Podman over Docker are security related. I won't rehash it all here so if you want to learn more check out linode's <a href=https://www.linode.com/docs/guides/podman-vs-docker/ rel=noopener target=_blank>explanation</a>.<p>I suggest learning more about plug and its router from <a href=https://elixirschool.com/blog/building-apps-with-plug-router/ rel=noopener target=_blank>elixirschool</a>.</p><br><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
2 changes: 1 addition & 1 deletion blog/how-to-properly-learn-rust/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@
</span><span style=color:#c678dd>fn </span><span style=color:#61afef>main</span><span>() {
</span><span> println!(</span><span style=color:#98c379>"</span><span style=color:#d19a66>{}</span><span style=color:#98c379>"</span><span>, </span><span style=color:#d19a66>GLOBAL</span><span>);
</span><span>}
</span></code></pre><p>In my opinion, much of the struggle that people have wrestling with the borrow checker stems from gaps in knowledge related to ownership and lifetimes.<p>The quizzes in the brown.edu git book definitely help filling those gaps.<p>If Rust still seems confusing then I recommend <a href=https://fasterthanli.me/articles/a-half-hour-to-learn-rust rel=noopener target=_blank>A half-hour to learn Rust</a>.</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
</span></code></pre><p>In my opinion, much of the struggle that people have wrestling with the borrow checker stems from gaps in knowledge related to ownership and lifetimes.<p>The quizzes in the brown.edu git book definitely help filling those gaps.<p>If Rust still seems confusing then I recommend <a href=https://fasterthanli.me/articles/a-half-hour-to-learn-rust rel=noopener target=_blank>A half-hour to learn Rust</a>.</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
2 changes: 1 addition & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=en><head><meta charset=UTF-8><title> All posts </title><link href=/css/base.css rel=stylesheet><meta content="width=device-width,initial-scale=1" name=viewport><link href=/favicon.svg rel=icon sized=any type=image/svg+xml><body><nav><ul><li class=logo><a href=https://spacedimp.com/><img src="/Untitled design.png"></a><li><a href=https://spacedimp.com/>Home</a><li><a href=https://spacedimp.com/blog/>Blog</a></ul></nav><h1>Blog Posts</h1><div class=blog_links><ul><li><a href=https://spacedimp.com/blog/how-to-properly-learn-rust/>How to Properly Learn Rust Programming</a><li><a href=https://spacedimp.com/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/>Dockerless, Elixir Web Application using Podman and Plug</a><li><a href=https://spacedimp.com/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/>Using Rust, Tauri, and SvelteKit to Build a Note Taking App</a><li><a href=https://spacedimp.com/blog/security-hardening-linux-os/>Security Hardening Linux OS</a><li><a href=https://spacedimp.com/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/>Using Rust, Axum, PostgreSQL, and Tokio to build a Blog</a></ul></div><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
<!doctype html><html lang=en><head><meta charset=UTF-8><title> All posts </title><link href=/css/base.css rel=stylesheet><meta content="width=device-width,initial-scale=1" name=viewport><link href=/favicon.svg rel=icon sized=any type=image/svg+xml><body><nav><ul><li class=logo><a href=https://spacedimp.com/><img src="/Untitled design.png"></a><li><a href=https://spacedimp.com/>Home</a><li><a href=https://spacedimp.com/blog/>Blog</a></ul></nav><h1>Blog Posts</h1><div class=blog_links><ul><li><a href=https://spacedimp.com/blog/how-to-properly-learn-rust/>How to Properly Learn Rust Programming</a><li><a href=https://spacedimp.com/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/>Dockerless, Elixir Web Application using Podman and Plug</a><li><a href=https://spacedimp.com/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/>Using Rust, Tauri, and SvelteKit to Build a Note Taking App</a><li><a href=https://spacedimp.com/blog/security-hardening-linux-os/>Security Hardening Linux OS</a><li><a href=https://spacedimp.com/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/>Using Rust, Axum, PostgreSQL, and Tokio to build a Blog</a></ul></div><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
2 changes: 1 addition & 1 deletion blog/security-hardening-linux-os/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
</span><span style=color:#5c6370;font-style:italic># harden BPF JIT
</span><span style=color:#e06c75>net.core.bpf_jit_harden</span><span>=</span><span style=color:#98c379>2
</span></code></pre><p>Then make the changes without rebooting:<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>sudo</span><span> sysctl</span><span style=color:#e06c75> -p</span><span> /etc/sysctl.conf
</span></code></pre><p>More hardening parameters can be found <a href=https://madaidans-insecurities.github.io/guides/linux-hardening.html rel=noopener target=_blank>here</a> and also <a href=https://wiki.archlinux.org/title/Sysctl rel=noopener target=_blank>here</a>.</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
</span></code></pre><p>More hardening parameters can be found <a href=https://madaidans-insecurities.github.io/guides/linux-hardening.html rel=noopener target=_blank>here</a> and also <a href=https://wiki.archlinux.org/title/Sysctl rel=noopener target=_blank>here</a>.</p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,4 @@
</span><span>{% endblock post %}
</span></code></pre><h2 id=optimizing-the-final-binary>Optimizing the final binary</h2><p>Use this command to view file sizes, on linux: <code>ls -lh blog-rs</code><p>My binary, inside of <code>target/debug/blog-rs</code> , is at 126M.<p><a href=https://nnethercote.github.io/perf-book/build-configuration.html rel=noopener target=_blank>Here's</a> an excellent guide on optimizing your binary.<p>Building my binary with the --release flag reduces the size to only 13M.<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>cargo</span><span> build</span><span style=color:#e06c75> --release
</span></code></pre><p>An optimized binary now resides in <code>target/release/blog-rs</code><p>Want a smaller binary size?<p><a href=https://upx.github.io/ rel=noopener target=_blank>UPX</a> gets my binary down further to 3.9M<pre class=language-bash data-lang=bash style=color:#abb2bf;background-color:#282c34><code class=language-bash data-lang=bash><span style=color:#e06c75>upx</span><span> /target/release/blog-rs
</span></code></pre><p>Here's the full code for this project: <a href=https://github.com/spacedimp/rust-blog-example rel=noopener target=_blank>https://github.com/spacedimp/rust-blog-example</a></p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a><p>BTC: bc1qspads00vpdvsfaq7jwegrx8la8j9mz2qxuahfu<p>ETH: 0x42e598E67cB9b3F4bEB05c76B3838ba3477fB656<p>XMR: 89L5emwBMbzdrNuMN5NwPVSSztdrWLaWAYnZy95mV3RHPgyLCge9RqvMnu4X6eu8aTMocsq7Tw2ViBHSamQaEWjk5toNx1m<p><a href=/gpg>GPG</a> fingerprint: 040B FE93 9DF9 D855 404D 80BE C674 E53F EB54 B7F0</div></footer>
</span></code></pre><p>Here's the full code for this project: <a href=https://github.com/spacedimp/rust-blog-example rel=noopener target=_blank>https://github.com/spacedimp/rust-blog-example</a></p><script src=https://storage.ko-fi.com/cdn/scripts/overlay-widget.js></script><script>kofiWidgetOverlay.draw(`spacedimp`,{'type':`floating-chat`,'floating-chat.donateButton.text':`Support Me`,'floating-chat.donateButton.background-color':`#00b9fe`,'floating-chat.donateButton.text-color':`#fff`})</script><script async data-id=101404969 src=//static.getclicky.com/js></script><footer class=footer><p>Spacedimp<div class=footer-donate><p>Support spacedimp's growth by donating!</div><div class=rss-footer><p>Follow via <a href=/atom.xml>RSS</a></div></footer>
Loading

0 comments on commit 244109e

Please sign in to comment.