Skip to content

Instantly share code, notes, and snippets.

View ocfox's full-sized avatar
🏖️

ocfox ocfox

🏖️
View GitHub Profile
@ocfox
ocfox / json2nix.py
Last active January 18, 2024 13:47 — forked from spencerpogo/json2nix.py
Converts JSON objects into nix (hackishly).
"""Converts JSON objects into nix (hackishly)."""
import sys
import json
INDENT = " " * 2
def strip_comments(t):
@ocfox
ocfox / wpa_cli
Created April 9, 2022 05:39 — forked from buhman/00 wpa_cli passphrase network
wpa_cli example; it might be worth mention that you can tab-complete all wpa_supplicant commands
[zack@leto ~]$ sudo tee << EOF /etc/wpa_supplicant.conf > /dev/null
ctrl_interface=/run/wpa_supplicant
EOF
[zack@leto ~]$ sudo wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
[zack@leto ~]$ sudo wpa_cli
wpa_cli v2.0
Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.