There’s a neat Ubuntu command which allows you to easily import your ssh public keys from Github to your server user account.
ssh-import-id-gh <github username>
By default, it will append the fetched public key (or keys if you specify multiple accounts) to the current user’s
~/.ssh/authorized_keysfile. Once you’ve run the above, you will be able to ssh to your server account using the same key you would use to push code to Github.
When I first started learning Go, I heard a lot of people talk about the idiomatic way of doing things. “Sure, that way works, but this is the way we do it in Go.” I’m OK with that - a strict convention can give every piece of code a strong sense of familiarity - and Go has quite a few of these. One such convention is to use short variable names.
Variable names in Go should be short rather than long. This is especially true for local variables with limited scope. Prefer
If you’re running Jekyll and updating styles fairly regularly, you may want to add a cache busting line to your styles and scripts to ensure you (and your visitors) are always accessing the latest version of your assets.
This website has been run on various CMSs and frameworks over the years. Joomla, Drupal, Laravel, Symfony…and now Jekyll.
You may have seen the
\DateTimeImmutableclass being used, and wondered why is this different from the
\DateTimeclass? I guess it’s the same…but immutable, right? Why would I want to use an immutable object? Here’s a brief overview.
Previous Page: 1 of 16 Next