Skip to content

Instantly share code, notes, and snippets.

View max-pfeiffer's full-sized avatar

Max Pfeiffer max-pfeiffer

View GitHub Profile
@max-pfeiffer
max-pfeiffer / wifi_hotspot_raspberry_pi_networkmanager.md
Last active June 13, 2024 17:17
Create a Wifi Hotspot on Raspberry Pi with NetworkManager

Create a Wifi Hotspot on Raspberry Pi with NetworkManager (Rasbian v12, Debian Bookworm)

Create a wifi hotspot like this:

sudo nmcli connection add con-name <NAME> type wifi ifname <INTERFACE> wifi.mode ap wifi.ssid <SSID> wifi-sec.key-mgmt wpa-psk wifi-sec.psk <PASSWORD> ipv4.method shared

That is a minimal configuration which should work on all Raspberry Pi devices from v3 upwards. Problem with this configuration is, that it only provides weak WPA encryption/security.

To remedy this you can switch on some additonal security features:

sudo nmcli connection modify  wifi-sec.proto rsn wifi-sec.pairwise ccmp wifi-sec.group ccmp
@max-pfeiffer
max-pfeiffer / SearchablePushRow.swift
Last active November 20, 2017 13:16
SearchablePushRow: a PushRow and Viewcontroller with UISearchfield for Eureka > 4.0
import Eureka
open class _SearchablePushRow<Cell: CellType>: OptionsRow<Cell>, PresenterRowType where Cell: BaseCell {
public typealias PresenterRow = SearchableSelectorViewController<SelectorRow<Cell>>
/// Defines how the view controller will be presented, pushed, etc.
open var presentationMode: PresentationMode<PresenterRow>?