Skip to content

Instantly share code, notes, and snippets.

View jonaskahn's full-sized avatar
🇩🇪
I'm on it

Jonas jonaskahn

🇩🇪
I'm on it
View GitHub Profile
@jonaskahn
jonaskahn / docker-cleanup.sh
Last active August 5, 2020 04:30 — forked from StephanWagner/docker-cleanup.sh
Prune docker system and remove all containers, images, volumes with one command.
docker container stop $(docker container ls -aq)
docker container rm $(docker container ls -aq)
docker system prune -a
@jonaskahn
jonaskahn / SSL-certs-OSX.md
Created December 12, 2022 14:22 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@jonaskahn
jonaskahn / nodejs.download.js
Created June 8, 2023 15:38 — forked from ialpert/nodejs.download.js
Download file using GET and nodejs
function download(url, cb) {
var data = "";
var request = require("http").get(url, function(res) {
res.on('data', function(chunk) {
data += chunk;
});
res.on('end', function() {
cb(data);