Posts

TIL: How to prevent a package from updating on ubuntu

1 minute read Published:

Short howto: package pinning on ubuntu
Sometimes you need to upgrade a server, but you also need to prevent apt from upgrading a specific package (eg. your node.js version). Many package-managers support this scenario under names like “version pinning” or “package holding”. This is how you prevent apt from upgrading a single package: Dependencies Ubuntu 12.04 or newer apt Pin a package to prevent it from being upgraded sudo apt-mark hold $PACKAGE_NAME Pin a package to prevent it from being upgraded sudo apt-mark unhold $PACKAGE_NAME

TIL: How to update all package.json dependencies at once

1 minute read Published:

Short howto: update all npm dependencies using jq and xargs
Dependencies node.js and npm (obviously) jq xargs (may needs to be installed manually) Update all dependencies to their latest version: cat package.json | \ jq -r '.dependencies | keys[]' | \ xargs -I {} npm i -S {}@latest Update all devDependencies to their latest version: cat package.json | \ jq -r '.devDependencies | keys[]' | \ xargs -I {} npm i -S {}@latest Alias the commands for easier reuse To reuse the commands without having to remember them just put them into your .

TIL how to count git commits in a repository by author name

1 minute read Published:

Count git commits in a repository by author name
Today I learned how to count git commits in a repository by author name: git shortlog -s -n --all --no-merges Explanation: git shortlog: summarize git log output -s: only count commits -n: sort by commit number instead of author name --all: count commits in all branches --no-merges: exclude merge commits If you want to include author emails add -e Sources: https://git-scm.com/docs/git-shortlog https://git-scm.com/docs/git-log

I wrote a IOTA Wallet Seed Generator Tool

2 minute read Published:

UPDATE: i changed the source of the generator - if you want to see the updated source, please head over to the Github repo Because I needed a quick (and reasonable secure) way to generate IOTA wallet seeds, I wrote a tool in Go. this is the source code - so you can compile it yourself. you can also download it here (signature - my keybase profile). Feel free to leave any feedback :)

TIL how to use caddy as automatic https reverse proxy

1 minute read Published:

Short howto: download and configure caddy - an automatic https (!!!) webserver
Hey Blog! Long time no see… Today I will show you how to download and execute caddy - an automatic https web server and reverse proxy written in Go! be me. browse the interwebs. see caddy - a fully automatic https server togoodtobetrue.jpg write script to download caddy from their cdn and create a Caddyfile on a spare server itsworking.exe best day ever - free ssl certs with auto renewal