Skip to content

Instantly share code, notes, and snippets.

@vuori
vuori / openwrt-23-05-802-11r.md
Created November 19, 2023 20:15
OpenWRT 23.05 802.11r + EAP

Getting 802.11r Fast Transition working with WPA(2)-Enterprise is quite painful. There is information on the forums, but things have changed quite a bit during the last few years. These are notes mostly for my own benefit.

Tricky bits as of OpenWRT 23.05 (in Luci "WLAN roaming" tab of wireless network settings):

  • NAS Id should be set to something unique, like the name of the AP.
  • Mobility domain defaults to a sane value. Leave it empty.
  • Reassociation deadline's default of 1000 is bad. Apparently Cisco uses 20000 here, setting that appears to be helpful.
  • FT Protocol "Over the air" is the good setting.

If you're using WPA2-PSK, check "Generate PMK locally" and you're done. Save&apply and it should just work.

@eenblam
eenblam / linux_reading_list.md
Last active January 16, 2025 11:45
Linux Networking Reading List

Linux Networking Reading List

Currently in no particular order. Most of these are kind of ancient.

Where's all the modern documentation? So much of what I've turned up searching is other folks complaining about having few options beyond reading source code.

The OREILLY books, while dated, seem to be some of the best available. Note that these can be read with a 7-day trial. Do this! At least get through the introduction section and first chapter of each to see if it's what you're after.

https://www.netfilter.org/

@a7ul
a7ul / jamf.md
Last active January 16, 2025 11:45
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@decatur
decatur / dataclass_sample.py
Created September 21, 2018 11:09
Use Python dataclass to autogenerate timestamp and sequence id on an object.
from dataclasses import dataclass, field
from itertools import count
from datetime import datetime
counter = count()
@dataclass
class Event:
message: str
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active January 16, 2025 11:41
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@MaximKotliar
MaximKotliar / AVPlayerDelegate.swift
Last active January 16, 2025 11:37
A easier way to handle AVPlayer's events
// AVPlayerDelegate.swift
//
// Created by Maxim Kotliar on 7/30/18.
//
import AVFoundation
@objc protocol AVPlayerDelegate: class {
@objc optional func playerDidStartPlayback()
@objc optional func playerDidPausePlayback()
@yepbro
yepbro / gist:1a0764b849216e4a490e21c590abb17a
Last active January 16, 2025 11:34
Moonshine & Laravel Modules (nwidart)
<?php
/**
* How to integrate Moonshine Admin Panel and Laravel (Nwidart) modules?
*
* I would like to be able to store ModelResources in the module folder and then add them to the admin
* panel and menu from there.
*
* Moonshine 3, Laravel Modules 11, PHP 8.4
*
* @link https://moonshine-laravel.com/
@devomman
devomman / activate-office-windows-mac.md
Last active January 16, 2025 11:31
Microsoft Office Active or Windows Activation | Microsoft Office Activate for Mac - Free Guide

✅ Activate Microsoft Office or Windows

💠 Windows User:

  1. Download OS & Office Link: https://files.rg-adguard.net/version/5f2ad9c6-e111-76e8-06d1-56d44c136bae
  2. Open PowerShell (Not CMD). To do that, right-click on the Windows start menu and select PowerShell or Terminal.
  3. Copy and paste the code below and press enter
irm https://get.activated.win | iex
  1. You will see the activation options.
@rxaviers
rxaviers / gist:7360908
Last active January 16, 2025 11:29
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@kvaps
kvaps / rspamd-lists.md
Last active January 16, 2025 11:28
Howto create local whitelists and blacklists for Rspamd

Local whitelists and blacklists for Rspamd

  • cd /etc/rspamd
  • create rspamd.conf.local
  • create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
  • change permissions: