Skip to content

Instantly share code, notes, and snippets.

View rajiv's full-sized avatar

Rajiv Aaron Manglani rajiv

View GitHub Profile
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active December 8, 2025 14:39
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@dextercd
dextercd / output
Created June 10, 2025 20:13
Root program report
Apple has 153 certificates.
Mozilla has 143 certificates.
Microsoft has 273 certificates.
Chrome has 118 certificates.
Certificates in Apple that are not in Chrome:
- D7A7A0FB5D7E2731D771E9484EBCDEF71D5F0C3E0A2948782BC83EE0EA699EF4 AAA Certificate Services
- C2B9B042DD57830E7D117DAC55AC8AE19407D38E41D88F3215BC3A890444A050 Apple Root CA - G2
- 63343ABFB89A6A03EBB57E9B3F5FA7BE7C4F5C756F3017B3A8C488C3653E9179 Apple Root CA - G3
- B0B1730ECBC7FF4505142C49F1295E6EDA6BCAED7E2C68C5BE91B5A11001F024 Apple Root CA
@Thomascountz
Thomascountz / apple_memos_transcription_extractor.rb
Last active July 25, 2025 12:36
Extract transcript text from Apple Memos M4A file
require "json"
class AppleMemosTranscriptionExtractor
class TsrpAtomNotFoundError < StandardError; end
class TranscriptDataInvalidError < StandardError; end
class MalformedAtomError < StandardError; end
RECORDINGS_PATH = "#{Dir.home}/Library/Group Containers/group.com.apple.VoiceMemos.shared/Recordings".freeze
@Fanman03
Fanman03 / UAP-Guide.md
Last active December 8, 2025 11:58
UniFi AP Buyers Guide

UniFi AP Buyers Guide

(updated May 2025)

The APs in this list are ordered from highest to lowest performance. However, unless you have a very high number of devices you likely do NOT need to buy the most expensive, highest performance AP. You can also check Ebay for deals, especially on older equipment.

All APs in this list support both wired backhaul and mesh modes. However, wired connections are strongly recommended for better performance and reliability.

Number of spatial streams are listed in order of 2.4GHz, 5GHz, 6GHz.

Good Choices:

@robstradling
robstradling / apple_insufficient_scts.txt
Last active May 6, 2021 14:36
Rough analysis of CAs embedding too few SCTs to comply with the 2021-04-21 update to the Apple CT Policy
-- Step 1: Find the lowest/earliest certificate ID affected by the updated Apple CT Policy.
-- (Assumptions: (i) Certificate notBefore dates are never forward-dated and (ii) Log entry timestamps are always accurate).
certwatch@certwatch=> SELECT min(c.ID)
FROM certificate c
WHERE x509_notBefore(c.CERTIFICATE) >= '2021-04-21'::timestamp
AND c.ID IN (
SELECT ctle.CERTIFICATE_ID
FROM ct_log_entry_2021 ctle
WHERE ctle.ENTRY_TIMESTAMP >= '2021-04-21'::timestamp
@lg
lg / adding-tailscale-to-edgerouter.md
Last active October 26, 2025 05:37
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@tbutts
tbutts / tmux-migrate-options.py
Last active May 7, 2025 15:12
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active July 3, 2025 21:22
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created

Symantec distrust impact on the webpki

Sample size: 1236617 HTTPS sites from Cisco Umbrella and Alexa top1m (total of 1868635 sites but 632018 don't support HTTPS)

Distrusted in Firefox 60: 21089 but 7382 of those certs expire before 60 is released so only 13707 need action (1.1% of HTTPS sites, 0.73% of all sites)

Distrusted in Firefox 63: 155847 but 81198 of those certs expire before 63 is released

@dillonhafer
dillonhafer / erx.sh
Last active January 11, 2024 09:20
Configure IPv6 ERX
# Taken from https://medium.com/@nurblieh/ipv6-on-the-edgerouter-lite-c95e3cc8d49d
# just a copy in case that goes away someday
# eth1 is my WAN
# switch0 is my LAN
configure
# Firewall Rule 1/2
edit firewall ipv6-name WAN6_IN