Skip to content

Instantly share code, notes, and snippets.

View cweiland's full-sized avatar

Christophe WEILAND cweiland

View GitHub Profile
@Tes3awy
Tes3awy / ansible-wsl.md
Last active August 10, 2025 07:16
Install Ansible (ansible [core 2.11.6]) on Windows Subsystem for Linux (WSL) and run your first playbook

Install Ansible release (Recommended)

The Windows Subsystem for Linux (WSL) is not officially supported by Ansible and should not be used for production.

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install python3-pip git libffi-dev libssl-dev -y
$ pip3 install --user ansible pywinrm # pywinrm is a Python client for the Windows Remote Management (WinRM) service
@hvva
hvva / csv2json.sh
Last active June 25, 2025 18:01
Convert CSV to JSON using bash
#!/bin/bash
# A script to convert a CSV (excel export) file into JSON
# Usage ./csv2json input.csv > output.json
# Slightly modified version of SECAGUY's:
# http://blog.secaserver.com/2013/12/convert-csv-json-bash/
input=$1
[ -z $1 ] && echo "No CSV input file specified" && exit 1
[ ! -e $input ] && echo "Unable to locate $1" && exit 1