Skip to content

Instantly share code, notes, and snippets.

View adrianjagielak's full-sized avatar
👀
👀👀👀

Jagi ᯅ adrianjagielak

👀
👀👀👀
View GitHub Profile
@dvf
dvf / change-codec.md
Last active September 10, 2026 17:33
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@theothernt
theothernt / apple-tv-screen-saver-feeds.txt
Last active September 5, 2026 11:17
A list of the feeds Apple uses for its video screensavers
tvOS 10: 1080p + H.264
http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json
tvOS 11: 1080p/4K + SDR/HDR + HEVC
https://sylvan.apple.com/Aerials/2x/entries.json
https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json
tvOS 12: 4K + SDR/HDR + HEVC, 1080p + H.264, localised descriptions
https://sylvan.apple.com/Aerials/resources.tar
@Wh1terat
Wh1terat / ztools.py
Created September 23, 2019 12:12
Z-Link Firmware Tools
#!/usr/bin/env python3
import os
import mmap
import argparse
from collections import OrderedDict
__title__ = "Z-Link Firmware Tools"
__version__ = "0.1"
__author__ = "Gareth Bryan"
__license__ = "MIT"
@zzpmaster
zzpmaster / formatBytes.dart
Last active April 21, 2025 17:26
convert bytes to kb mb in dart
static String formatBytes(int bytes, int decimals) {
if (bytes <= 0) return "0 B";
const suffixes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
var i = (log(bytes) / log(1024)).floor();
return ((bytes / pow(1024, i)).toStringAsFixed(decimals)) +
' ' +
suffixes[i];
}
@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active September 9, 2026 09:23
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@jerrymarino
jerrymarino / SwiftBinaryDemangler.sh
Created January 30, 2019 19:49
Demangle the entire symbol table of a swift binary
nm __BINARY__ | awk '{ print $3 }' | xargs xcrun swift-demangle {} \; | less
@leptos-null
leptos-null / YouTube_Music_Client.md
Last active August 5, 2026 08:32
Writing an iOS YouTube Music client

Writing an iOS YouTube Music client

I’ve been using YouTube Music as my main music streaming service for almost a year and a half. The iOS client is great- I’ve never had a single complaint. It’s potentially one of the most bug free apps I’ve ever used, it has an extremely friendly, and simple, graphical interface, and the service itself is great.

I was curious how the client worked in terms of networking, and while curiosity may treat cats poorly, it lands researchers in black sites can provide a lot of insight.

Step 0

The first thing I do when reverse engineering a client is monitor HTTP requests while the application starts up, and when doing the tasks interested in. On a jailbroken iOS device, I use FLEX by FlipBoard.

@hiteshkr
hiteshkr / Graylog02DarkTheme.css
Last active October 18, 2020 10:49
CSS for Dark theme for Graylog 02
@-moz-document url-prefix("https://graylog"), url-prefix("https://gettingstarted.graylog.org") {
body {
background-color: black;
color: #999;
}
h1, h2, h3, h4, h5, h6 {
color: #ddd;
}
svg {
background-color: #666;
@idcrook
idcrook / homebridge-camera-ffmpeg snippet config.json
Last active December 31, 2024 19:53
Configure homebridge-camera-ffmpeg homebridge plugin for USB-attached webcam
{
"platform": "Camera-ffmpeg",
"videoProcessor": "/usr/local/bin/ffmpeg",
"cameras": [
{
"name": "BasementCam",
"videoConfig": {
"source": "-re -f v4l2 -video_size 1280x720 -i /dev/video0",
"stillImageSource": "-f video4linux2 -input_format mjpeg -video_size 1280x720 -ss 0.9 -i /dev/video0 -frames:v 1",
"maxStreams": 2,