Skip to content

Instantly share code, notes, and snippets.

View charbonnierg's full-sized avatar

Guillaume Charbonnier charbonnierg

  • Araymond
  • Grenoble
  • 15:08 (UTC +02:00)
View GitHub Profile
@ageis
ageis / systemd_service_hardening.md
Last active April 19, 2024 23:47
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@mikerr
mikerr / btle-scan.py
Created November 17, 2016 14:59
Python script to output bluetooth LE MAC addresses and current RSSI (signal strength)
import sys
import os
import struct
from ctypes import (CDLL, get_errno)
from ctypes.util import find_library
from socket import (
socket,
AF_BLUETOOTH,
SOCK_RAW,
BTPROTO_HCI,