How to fix the error "/bin/sh: 1: source: not found"?
I am installing nodejs inside a docker container and have this line in the Dockerfile:
I am installing nodejs inside a docker container and have this line in the Dockerfile:
cat
a file in reverse
You know cat file.txt
which prints all the lines in a file from first to last. But what if you want to print them from last to first? Easy, just write cat
backwards, which is tac
voila.
I am learning how to write a proper Makefile
using
https://makefiletutorial.com/#getting-started. And I am just writing down the things that jump at me, not complete neither a tutorial, just a look-up post or cheatsheet for me.
install.sh
file
There I have it again, a install.sh
file on a linux and I don't remember how execute it. I tried ./install.sh
, error, . ./install.sh
another error, it also never felt right the way I did it.
I had no idea that docker uses the underlying platform as default also for images that it installs. My Dockerfile
that just contained FROM ubuntu
and I ran some linux binary in there, it threw:
I want to get my nextcloud setup to run using docker-compose, and to start with I need a linux machine with docker running at start up. This is task #1, it looks like this blog post has the answers how to do it.
You need to
diff --recursive <dir1> <dir2>
to diff the files and their contents in two directories I just needed to do some golden master tests after updating a dependency
The annoying port 8080 is already in use
message and not knowing which process is occupying this port sucks. I knew it was lsof
that can help me. But how exactly? TL;DR: ps -p `lsof -i :8080 -t` -o command=
(on Mac OSX)