Macos

macos - hdiutil

Intro hdiutil is a command-line utility on macOS that allows users to create, manipulate, and convert disk images. Disk images are virtual disk files that can contain the entire file system structure, including files, folders, and metadata. hdiutil provides a variety of functions related to disk images, and it’s a powerful tool for managing disk-related tasks on a Mac. Basic Usage create echo -n "geheim" |hdiutil create -encryption -stdinpass -size 10m -volname encdata test.

Monaspace

Monaspace Do you like it ? I do … Install macOS brew tap homebrew/cask-fonts brew install font-monaspace Any Comments ? sha256: 9f088f3023c2e5c26817ccddbfb49ea25dd6f08d0ba3ac6e7ca9038f0d2e2547

Dotnet - Hello World

Running a WebApp in 5min ? ASP.NET Tutorial - Hello World in 5 minutes in a Language you never touched before … ? a Microsoft App running on Linux running in Docker running on macOS … ? Let’ give a try … Fireup Ubuntu via Docker, do Port Forward docker run -it -p 5123:5123 --name dotnet-hello ubuntu:latest add basics apt-get update && apt-get -y upgrade && apt-get -y install wget add dotnet wget https://packages.

Url Shortener for CLI

CLI Url Shortener wrote a little URL Shortener in Python with FastAPI and a wrapper script for cli usage. needs httpie & jq packages. python backend is under development, cli wrapper for different os right here … Usage somehost$ ./myurlshort usage: /usr/local/bin/myurlshort http://veeeeeeeeeeeeeeeeeeeeeeeeeery.long.url.to anyhost$ ./myurlshort http://my-url-to-short.egal.world.planet.universe https://url.stoege.net/xXxXx CLI Wrappers OpenBSD cat << 'EOF' > myurlshort #!/usr/bin/env bash # url shortener for openbsd, v1.0, 2022-09-12, by @stoege which jq >/dev/null || ( echo -e "*** jq not installed ***\ndoas pkg_add jq\n"; ) which https >/dev/null || ( echo -e "*** httpie not installed ***\ndoas pkg_add httpie\n"; ) if [[ $# -ne 1 ]]; then echo -e "\nusage: $0 http://veeeeeeeeeeeeeeeeeeeeeeeeeery.

macOS

some adaption for macOS CUPS enable cups cupsctl WebInterface=yes http://localhost:631/printers/ Shell macOS is using zsh since while. If you wanna switch back to bash, here some Notes …" Switch to Bash chsh -s /bin/bash Switch to Zsh chsh -s /bin/zsh install brew the famous package manager for macOS /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" install keychain if you work with ssh agent, you may wanna try keychain … brew install keychain build .

Doas

doas, an alternative to sudo Everybody knows sudo … right ? but the openbsd guys hacked a small and secure replacement called doas … simple, secure and clever here a good and quick tutorial An introduction on Vultr, the Source Code on Github and the Man Page Installation OpenBSD On OpenBSD, it’s already in the Base System and no need to install anything. Installation Linux On Linux, for Example, you have to add the Package