https://kylrth.com/tags/programming/Recent content in programming on Kyle RothHugo -- gohugo.ioen-usTue, 19 Oct 2021 20:28:25 -0400https://kylrth.com/post/jupyter-lab/Tue, 19 Oct 2021 20:28:25 -0400https://kylrth.com/post/jupyter-lab/This is how I set up my headless home server with a Jupyter Lab Docker container with an Nvidia GPU runtime. Login is handled by a GitHub OAuth application. Nvidia drivers and the container runtime First, check here (replacing the CUDA version in the URL with your own) to see which Nvidia drivers you need for the CUDA toolkit version you want. I’m using CUDA 11.4.2, which means I need at least driver version 470.https://kylrth.com/post/latex-vscode/Mon, 12 Jul 2021 21:43:47 -0600https://kylrth.com/post/latex-vscode/LaTeX has a ton of different flavors, releases, and installations: MacTeX, MiKTeX, TeXworks, XeTeX, pdfTeX, LuaTeX… If you’re using Linux and just want to edit LaTeX files in Visual Studio Code and have them automatically rendered as PDFs, follow these instructions: On Arch-based distros, install the packages listed here. On Debian-based systems, sudo apt install texlive. Install some Perl dependencies: sudo cpan Log::Log4perl Log::LogDispatch Log::Dispatch::File YAML::Tiny File::HomeDir If you want to use FontAwesome on Arch-based systems, install the oft-font-awesome package and then do the following (source):https://kylrth.com/post/gpg/Mon, 12 Apr 2021 07:13:54 -0600https://kylrth.com/post/gpg/GPG is cool. You can use GPG to send encrypted messages, sign files to prove you generated them, and sign git commits to prove you committed them. You can get my key here. DigitalOcean has a neat guide to getting started with GPG. It explains asymmetric encryption, key generation and revocation, and key signing and maintenance. Git commit authorship can be modified by anyone, as demonstrated by this tool. But by uploading your GPG public key to GitHub, you allow anyone who trusts GitHub to be sure that commits marked “verified” were actually created by you.https://kylrth.com/post/removing-keyword-from-git-history/Wed, 02 Dec 2020 11:34:25 -0700https://kylrth.com/post/removing-keyword-from-git-history/I recently had to remove a keyword from the git history of a project I was working on. This meant not just removing a file but modifying commits where the keyword was added, commits where the keyword was removed, and even commits with the keyword in the commit message. I eventually came to the right solution through a mix of blog posts and the documentation for git rebase. For this example, assume the keyword is “matrix”.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>programming on Kyle Roth</title>
<link>https://kylrth.com/tags/programming/</link>
<description>Recent content in programming on Kyle Roth</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Tue, 19 Oct 2021 20:28:25 -0400</lastBuildDate>
<atom:link href="https://kylrth.com/tags/programming/index.xml" rel="self" type="application/rss+xml"/>
<item>
<title>Jupyter Lab Hub in Docker with Nvidia GPU support</title>
<link>https://kylrth.com/post/jupyter-lab/</link>
<pubDate>Tue, 19 Oct 2021 20:28:25 -0400</pubDate>
<guid>https://kylrth.com/post/jupyter-lab/</guid>
<description>This is how I set up my headless home server with a Jupyter Lab Docker container with an Nvidia GPU runtime. Login is handled by a GitHub OAuth application. Nvidia drivers and the container runtime First, check here (replacing the CUDA version in the URL with your own) to see which Nvidia drivers you need for the CUDA toolkit version you want. I&rsquo;m using CUDA 11.4.2, which means I need at least driver version 470.</description>
</item>
<item>
<title>I really just want to edit and compile my LaTeX files in VS Code</title>
<link>https://kylrth.com/post/latex-vscode/</link>
<pubDate>Mon, 12 Jul 2021 21:43:47 -0600</pubDate>
<guid>https://kylrth.com/post/latex-vscode/</guid>
<description>LaTeX has a ton of different flavors, releases, and installations: MacTeX, MiKTeX, TeXworks, XeTeX, pdfTeX, LuaTeX&hellip; If you&rsquo;re using Linux and just want to edit LaTeX files in Visual Studio Code and have them automatically rendered as PDFs, follow these instructions: On Arch-based distros, install the packages listed here. On Debian-based systems, sudo apt install texlive. Install some Perl dependencies: sudo cpan Log::Log4perl Log::LogDispatch Log::Dispatch::File YAML::Tiny File::HomeDir If you want to use FontAwesome on Arch-based systems, install the oft-font-awesome package and then do the following (source):</description>
</item>
<item>
<title>using GPG to prove you wrote your code</title>
<link>https://kylrth.com/post/gpg/</link>
<pubDate>Mon, 12 Apr 2021 07:13:54 -0600</pubDate>
<guid>https://kylrth.com/post/gpg/</guid>
<description>GPG is cool. You can use GPG to send encrypted messages, sign files to prove you generated them, and sign git commits to prove you committed them. You can get my key here. DigitalOcean has a neat guide to getting started with GPG. It explains asymmetric encryption, key generation and revocation, and key signing and maintenance. Git commit authorship can be modified by anyone, as demonstrated by this tool. But by uploading your GPG public key to GitHub, you allow anyone who trusts GitHub to be sure that commits marked &ldquo;verified&rdquo; were actually created by you.</description>
</item>
<item>
<title>Removing a keyword from git history</title>
<link>https://kylrth.com/post/removing-keyword-from-git-history/</link>
<pubDate>Wed, 02 Dec 2020 11:34:25 -0700</pubDate>
<guid>https://kylrth.com/post/removing-keyword-from-git-history/</guid>
<description>I recently had to remove a keyword from the git history of a project I was working on. This meant not just removing a file but modifying commits where the keyword was added, commits where the keyword was removed, and even commits with the keyword in the commit message. I eventually came to the right solution through a mix of blog posts and the documentation for git rebase. For this example, assume the keyword is &ldquo;matrix&rdquo;.</description>
</item>
</channel>
</rss>