Tag: GitHub

  • Website in a Docker Container

    Having figured out how to use the GitHub package registry, I was a bit inspired by this blog post from Florin Lipan to deliver all my little static websites as Docker containers. I’m not as focused as he is about making them tiny, but I did steal the idea of using BusyBox httpd for serving…

  • Using the GitHub Container Registry

    As the number of little projects I’m running on VPSs grows, I need to have a regimented system for managing all that. I could be using something like Coolify, but, at least for the moment, I’d rather build my own system. Currently my system is Nginx Proxy Manager (dockerised) in front of each app. If…

  • Getting Your Vite React App to Work on Github Pages

    One of the many cool things about GitHub is GitHub Pages – the free web hosting Microsoft gives you while they vacuum up your code for CoPilot training. Each repository you keep there can have pages at <your-github-username>.github.io/<repo-name> GitHub To enable this, you need to go into the settings for the repository – look down…

  • Git – pushing to two remotes

    I am loving running a local Gogs instance – it’s nice pushing my git repos to a totally private hub that I know is backed up with all my other self-hosted infrastructure. Of course, there’s good reasons to have code in GitHub as well – my build-in-public philosophy, the vague possibility that some of it…

  • New Project Routine

    I have a sort of muscle memory for starting little web projects now. I seem to have landed on node/express SSR apps with HTMX sprinkles. So it goes a bit like this: Express Skeleton That’s my basic web app setup, but since this is an express app, and we’re using some EJS templating, there’s some…

  • Git/GutHub – macOS – marking file as executable

    I’m working on the world’s shortest shell script – it’s called by cron to pull down a JSON weather report to a text file using curl so I can expose it on an Nginx endpoint. The purpose is to allow me to hammer that weather API from multiple machines I control without violating the TOS…

  • Committed

    I quite like logging into GitHub and seeing my commit history as the graph with the green dots. Once I get up to a year it would be a great thing to have on a T-Shirt. I’d expect to be seeing the busy weekends, but Tuesday nights seem to be oddly productive. It could just…

  • Gitting Xcode to Push

    I’m very comfortable with doing all the routine git stuff from the command line, but it was bugging me that I hadn’t for the Xcode integration working. I was able to commit locally with no problem from Xcode, but could not push up to Github. It works fine from the command line, so the error…

  • How to download a file from GitHub

    A quick tip – since it was not immediately obvious to me. If you need to download a file from GitHub (as opposed to cloning it etc), look for the “Raw” button – that’s a link to the file, then right click and do whatever your browser needs to download a web resource.

  • Download a Directory from a GitHub Repo

    For Challenge 2 in the 100 days, I needed to download a directory of flag images from Paul’s GitHub. He has all the projects as sub-directories of a single “Hacking With Swift” repo. I didn’t need to whole thing, just the directory with the images. Strangely, git does not have any simple way of doing…