Skip to content

Instantly share code, notes, and snippets.

View lwillek's full-sized avatar

Lutz Willek lwillek

View GitHub Profile
@lwillek
lwillek / Setup Ansible dynamic inventories usable in Azure.MD
Last active July 23, 2023 06:31
Setup Ansible dynamic inventories usable in Azure

Install Python and virtual environment with help of pyenv

Install OS-specific dependencies

Before you install pyenv itself, you’re going to need some OS-specific dependencies. Pick whatever suits you.

Linux (Debian/Ubuntu)

$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
@lwillek
lwillek / cloud-init.yaml
Last active March 9, 2024 09:16
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
package_update: true
package_upgrade: true
groups:
- docker
system_info:
default_user:
@lwillek
lwillek / gocryptfs_MacOS_installation.md
Last active March 17, 2024 10:29
gocryptfs installation on MacOS

gocryptfs on MacOS - manual installation

To install gocryptfs, macFUSE is required, which relies on a license not accepted by Homebrew. This is why the upgrade command refuses to work. Installing or updating via homebrew fails for this reason. Here you learn how to manually install and update gocryptfs.

precondition

As precondition, ensure you have Xcode, git and the "Go" programming language installed:

xcode-select --install
@lwillek
lwillek / how_to_remove_secrets_from_a_github_repository.md
Last active June 23, 2024 08:24
How To Remove Secrets From a GitHub Repository

How To Remove Secrets From a GitHub Repository

We often work with sensitive information, such as API keys or passwords. It is essential to maintain the confidentiality of this secrets and prevent unauthorized access.

Despite our best efforts, accidents do occur, resulting in the unintentional exposure of secrets.

Some data from 2023 on it:

  • 7 commits out of 1,000 exposed at least one secret.
  • 4.6% of active repositories leaked a secret.
@lwillek
lwillek / how_to_show_hidden_files_in_macos_finder.md
Last active June 23, 2024 08:23
How to Show Hidden Files on MacOS Finder

Using Finder is the simplest way to find hidden files.

  • Press Command + Shift + . (the period key). This will show hidden files in the folder.
  • To hide the files again, press Command + Shift + . again.
  • You can also click your desktop and press Command + Shift + . to show hidden files on your desktop.

Permanent configuration

Use the Terminal to configure how hidden files are shown.