Skip to content

Instantly share code, notes, and snippets.

@voidus
voidus / flake.nix
Created April 22, 2023 18:35
Build a cloudinit image in nixos
{
description = "A nixos cloudinit base image without nixos-infect";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
@queeup
queeup / Nix_package_manager_on_Fedora_Silverblue.md
Last active June 27, 2025 07:51
Nix package manager install (single user) on Fedora Silverblue

Nix package manager on Fedora Silverblue

Warning

Disable composefs or enable root.transient before install and use nix on Fedora Silverblue 42. Do not mix both. Use just one method. I prefer enabling root.transient.

  • With composefs disabled

    sudo sed -i 's/,ro//' /etc/fstab
    
    sudo rpm-ostree kargs --append='ostree.prepare-root.composefs=0' --reboot
@Juul
Juul / lte_mbim_from_scratch.md
Last active January 6, 2025 18:05
How to use 4G LTE modems like the MC7455 on both Debian/Ubuntu and OpenWRT using MBIM

The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.

This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.

High level overview

These are the steps required:

  • Physically connect antennas

Trying to deploy WPA3 on my home network

Introduction

Recently, news broke about a new possible offline attack on WPA2 using PMKID. To summarize the attack, WPA2 protected APs can end up broadcasting PMKID values which can then be used to offline-brute-force the password.

These PMKID values are computed this way:

PMKID = HMAC-SHA1-128(PMK, "PMK Name" | MAC_AP | MAC_STA)
@rhodey
rhodey / gist:873ae9d527d8d2a38213
Last active April 25, 2024 16:38
RE: Flock shutting down

Those who have received the latest Flock update are hopefully now aware that the project is shutting down, with the final EOL date set for October 1st. It is my belief that Flock performed a function not fulfilled by any existing projects, I want to share with you the main reason for EOL so that future projects of the same kind may come about and find greater success.

WebDAV was the wrong choice

Many developers in the Free Software security/crypo/hacker/whatever-this-thing-is scene tend to complain (sometimes vehemently) when a new protocol is developed to replace an existing protocol. For example, 9 out of 10 people in the whatever-this-thing-is scene will tell you there is nothing wrong with XMPP or OTR and argue that you're anti-OSS to try and replace either, I was partially of this mindset when I decided to augment WebDAV for Flock instead of creating something new or using something modern. WebDAV came about in 1999 and it shows in every library and OSS server available today. The [Remote Storage](ht

@alghanmi
alghanmi / wps_openwrt.sh
Last active January 28, 2021 00:47
WPS on OpenWRT -- Enabling Wi-Fi Protected Setup on OpenWRT
##
## WPS on OpenWRT
## This script enables Wi-Fi Protected Setup on OpenWRT.
##
## Resources
## http://wiki.openwrt.org/doc/uci/wireless#wps.options
##
#Install the full wpad package
opkg update
@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!