Skip to content

Instantly share code, notes, and snippets.

View jeanlouisferey's full-sized avatar

Jean-Louis FEREY jeanlouisferey

View GitHub Profile
@jeanlouisferey
jeanlouisferey / ansible-python.md
Last active July 12, 2018 13:52
Install Ansible python prerequisites on debian/ubuntu

Some ubuntu cloud images don't have python installed by default.

This is an Ansible task to install Ansible python prerequisites on debian/ubuntu

tasks:
  - name: install python 2
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
@jeanlouisferey
jeanlouisferey / DevMachineInstallation.md
Last active December 4, 2018 15:38
How to install my dev machine ?

1- Install Ubuntu Mate VirtualBox machine

2- Give an access to Internet (proxy to /etc/environnment)

3- Install gcc and some other tools (sudo apt install build-essential software-properties-common)

4- Install VB add-on

5- add you user to vbosf group: sudo adduser $USER vboxsf (and reboot !)

@jeanlouisferey
jeanlouisferey / Change lynis report to Markdown
Created October 11, 2019 12:14
Change lynis report to Markdown
WIP:
yes | lynis audit system --no-colors | sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' | sed 's/\[+\]/##/g' > /tmp/test-lynis8.md 2>&1
TODO:
- create a TOC
- add some emphasis
- make first level title
@jeanlouisferey
jeanlouisferey / send.sh
Created July 12, 2023 13:16
Script shell to send notification to ntfy.sh from a Xigmanas NAS (FreeBSD without curl)
#!/bin/bash
HOST=ntfy.sh
TOPIC=$2
PORT=80
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin"
CONTENT=$1