about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2020-03-10 Attempt to support gogsWilliam Carroll1-0/+17
Gogs claims to be an easy-to-use Git server and web frontend written in golang. I'm eager to try it as an alternative to cgit.
2020-03-10 Support unclutter with home-managerWilliam Carroll1-0/+3
I removed the code that initializes unclutter from .profile - preferring to start it with home-manager.
2020-03-10 Support keynav with home-managerWilliam Carroll1-0/+3
I removed the startup code from .profile. I also depend on a fork of home-manager until I submit my PR from wpcarro/home-manager into rycee/home-manager.
2020-03-10 Manage xsession with home-managerWilliam Carroll1-0/+5
redshift didn't properly work because it couldn't read the DISPLAY environment variable. I can fix this ad-hoc with `systemctl --user import-environment DISPLAY`, but home-manager will do this automatically if I allow it to manage my xsession.
2020-03-10 Support redshiftWilliam Carroll1-0/+11
redshift is the f.lux of Linux; it filters blue light from your screen.
2020-03-10 Restore Emacs serverWilliam Carroll1-0/+3
I think I removed the `(server-start)` call when I was debugging some EXWM issues. I have stabilized my configuration considerably since then, and I'd like to use the Emacs server.
2020-03-10 Remove dockerd startup from .profileWilliam Carroll1-3/+0
1. I haven't used docker in awhile. 2. If I need to restore the docker daemon, I will reach for a home-manager solution.
2020-03-10 Remove PATH additions from .profileWilliam Carroll1-11/+0
I'd like to remove this and prefer using Nix-based solutions for PATH maintenance.
2020-03-10 Remove RUST_SRC_PATH from .profileWilliam Carroll1-3/+0
I'm not doing enough Rust development to justify supporting this. I'm also in the midst of a cleaning frenzy, so it's possible that this is just collateral damage. I don't think it is because I can always use lorri to set this value when I'm writing Rust (hopefully the second 1/2 of this year).
2020-03-10 Define additional systemctl fish abbreviationsWilliam Carroll1-0/+2
I often run `systemctl --user status <some-unit>`
2020-03-10 Manage session variables with home-managerWilliam Carroll2-7/+3
If you haven't noticed, home-manager is managing increasingly more of my configuration. - Migrate session variables to home.nix - Drop support for unused session variables like TERMINAL, VISUAL
2020-03-10 Remove ssh-agent code from .profileWilliam Carroll1-3/+0
TIL: gpg-agent sets the SSH_AUTH_SOCK and other values. Since I already use home-manager to start gpg-agent and SSH has been functioning without issues, I'm removing the obsolete ssh-agent code.
2020-03-10 Configure keyboard preference with home-managerWilliam Carroll2-7/+7
Preferring home-manager to reduce some of the clutter I've created.
2020-03-10 Configure bat to use a different themeWilliam Carroll1-1/+1
Whatever bat's default theme for syntax highlight is, I cannot read it with my current theme.
2020-03-10 WIP: Partially solve InterviewCake's find duplicate numberWilliam Carroll1-0/+70
Write a function that finds one duplicate number from a list of numbers 1..n. The function should satisfy the following performance objectives: Runtime complexity: O(n*log(n)) Space complexity: O(1)
2020-03-10 Add Google Analytics to learn.wpcarro.devWilliam Carroll1-0/+10
Ten people have visited https://learn.wpcarro.dev, but no one has emailed me yet. I'd like to learn more about how people are using my website.
2020-03-10 Ad Google AdSense script to blog.wpcarro.devWilliam Carroll1-0/+1
I'm adding Google Ads to my blog to: - learn more about Google AdSense - attempt to offset the my advertising costs for learn.wpcarro.dev I may need to surround the <script></script> tags with markup to positions the ads optimally. I will publish this first, see what it looks like without any markup, and then progress.
2020-03-10 Lint hugo Tailwind themeWilliam Carroll1-3/+3
My Emacs automatically trims trailing whitespace when I save a buffer. As a result, this diff appears whenever I edit the baseof.html file. Instead of continuing to ignore the diff, I'm committing it.
2020-03-10 Draft blog post about March's cell phone challengeWilliam Carroll1-0/+92
Started working on my debut blog post about giving up my cell phone during march. I'd like to publish this post by the end of the month, once I conclude the experiment. At that time, I'd like to change the voice of some the content to be past test. For now, I'm dumping ideas here while they're fresh in my mind. I will refine and prune the final post later.
2020-03-10 Initialize //blog with lorriWilliam Carroll2-0/+10
To create new posts, I run... ```shell hugo new name-of-post.md ``` While writing posts, I run... ```shell hugo serve -D ``` I need hugo available on PATH environment variable, which lorri provides.
2020-03-10 Update Tailwind themeWilliam Carroll1-2/+2
Thing I changed: - prefer a white background - simplify the footer text Other things that I'd like to change: - use JetBrains Mono for the mono-font
2020-03-10 Rename my-first-postWilliam Carroll1-0/+0
I created this file while following Hugo's quick-start tutorial. When I publish a blog post, I will delete this file.
2020-03-10 Solve InterviewCake's "find rotation point" problemWilliam Carroll2-1/+69
Write a function that accepts a rotated cycle of alphabetically sorted strings and returns the index what should be the first element if the elements were not rotated.
2020-03-09 Nixify hugo deploymentWilliam Carroll2-1/+13
Create a derivation for building the static files of my blog.
2020-03-09 Add 'blog/themes/tailwind/' from commit ↵William Carroll23-0/+377
'2cf446f4ef7bdcc4303ebcb0a3062e87cde4928b' git-subtree-dir: blog/themes/tailwind git-subtree-mainline: d206a2812fc07e9ae8af016d3dc9d24a8bcf0508 git-subtree-split: 2cf446f4ef7bdcc4303ebcb0a3062e87cde4928b
2020-03-09 Prefer hugo for blog.wpcarro.devWilliam Carroll9-104/+46
Instead of creating my own static website generator, I'm trying Hugo. Huge is a newer alternative to Jekyll. So far, I like what I see. - Ignoring /blog/public since this is where `huge -D` generates the static assets. - Using a TailwindCSS theme. - Creating a dumby post about Emacs to test deployments. - Deleting all Common Lisp and Nix code that powered my previous, half-baked blog.
2020-03-08 Increase vertical margins for splash textWilliam Carroll1-1/+1
I'm attempting to follow the principles the TailwindCSS authors wrote in their design book: To space properly, zealously space.
2020-03-08 Add "Why delay? Start today." to footerWilliam Carroll1-0/+3
For now, my slogan is "Why delay? Start today." Like any slogan, the more you repeat it, the more it sticks.
2020-03-08 Embolden "You will be coding from day one."William Carroll1-1/+1
Emphasize the fact that students will start coding on the first day.
2020-03-08 Prefer "Learn to code" to "Learn to program"William Carroll1-2/+2
I think this is more consistent with the main content.
2020-03-08 Adjust learn.wpcarro.dev's styles for all devicesWilliam Carroll1-6/+6
- Add a max width to constraint the width of the content - Add horizontal padding to improve readability on handheld devices - Reduce the font size of all headings
2020-03-08 Replace ~ with /home/wpcarroWilliam Carroll1-1/+1
Nix runs the `rebuild` command as root, so ~ resolves to /root, which is not what I want.
2020-03-08 Use static directory path as root for learn.wpcarro.devWilliam Carroll1-1/+3
With this simple change, Nix should copy the static directory and all of its contents to /nix/store and return the path to that directory. See TODO for more what I would have liked to do ideally.
2020-03-08 Move index.html to static directoryWilliam Carroll1-0/+0
I only want nginx to serve files from the static directory, so that I do not accidentally expose files like default.nix or README.md to the web.
2020-03-08 Update markup for learn.wpcarro.devWilliam Carroll1-2/+46
Adding a personal introduction, overview of coding, pricing, and contact information. Also using a CDN to install TailwindCSS, which the TailwindCSS authors discourage, but I don't want to setup a complicated build process at the moment.
2020-03-08 Add content for learn.wpcarro.devWilliam Carroll2-0/+16
See the README.md for more context about this project. TODO: I configure nginx to serve static files from /var/www/learn. I'd like to symlink /var/www/learn to briefcase/learn as part of my `rebuild` script, but I don't currently.
2020-03-07 Ignore fish/{config.fish,fish_variables}William Carroll1-0/+2
- config.fish: home-manager generates this file for me. - fish_variables: fish generates this file.
2020-03-07 Temporarily disable docker and rust from .profileWilliam Carroll1-2/+2
Attempting to debug nginx.
2020-03-07 Rename socrates/default.nix -> socrates/configuration.nixWilliam Carroll2-1/+1
readTree uses the output attribute set of default.nix as the value for nixos.socrates, which disables me from resolving nixos.socrates.rebuild since there is no rebuild attribute in the output attribute set from default.nix. If I rename default.nix -> configuration.nix, I can resolve nixos.socrates.{configuration,hardware,rebuild}.
2020-03-07 Ensure socrates/default.nix is a functionWilliam Carroll1-0/+2
Nix complains that `nixos.socrates` is not a function but a set. By adding `{ ... }:` to the top of the file, I'm hoping to change it from a set to a function.
2020-03-07 Attempt to serve {learn,blog}.wpcarro.devWilliam Carroll1-10/+12
Reading an Nginx tutorial and trying to port the information over to NixOS.
2020-03-07 Remove fix-point recursion from socrates/default.nixWilliam Carroll1-2/+2
The fixed-point recursion isn't necessary.
2020-03-06 Implement an in-place shuffling algorithmWilliam Carroll2-2/+22
I believe this may be the Fisher-Yates shuffle, but I'm not sure.
2020-03-06 Support root directory and dirs like /tmpWilliam Carroll1-6/+11
Properly handle display the root directory and sub directories.
2020-03-06 Include notmuch as an Emacs dependencyWilliam Carroll1-0/+1
`(require 'notmuch)` in `email.el` broke my Emacs initialization. This should fix that.
2020-03-06 Include NIX_PATH settings in nix/rebuild-emacs functionWilliam Carroll1-2/+5
I'm currently setting NIX_PATH in ~/briefcase/shell.nix. This means when I call `nix/rebuild-emacs` from a buffer that is inside the briefcase directory, the command succeeds because NIX_PATH is properly defined. When I call `nix/rebuild-emacs` from any other location it fails. I'm hard-coding the NIX_PATH in this command so that I can call `nix/rebuild-emacs` from any buffer that is currently active.
2020-03-06 Support nix/home-manager-switchWilliam Carroll1-0/+10
As a part of my plan to reduce my dependence on the shell, I defined an Elisp function to call `home-manager switch` from `M-x`.
2020-03-06 Manage fish with home-managerWilliam Carroll3-249/+113
I patched home-manager locally to support fzf keybindings for fish. I will PR this into home-manager, but I haven't yet, which means that my home.nix file depends on my local ~/home-manager.
2020-03-06 Splice configs/shared directoryWilliam Carroll169-49299/+2
- Move all children from configs/shared into configs. - Delete "shared" directory.
2020-03-06 Drop support for terminatorWilliam Carroll3-288/+0
I've been consistently using vterm enough that I don't think I will change shells anytime soon. Couple this with my previous commit where I hint that I'd like to curb all terminal usage if possible, and it seems unlikely that I'll want to keep this terminator configuration.