Tested with 10-bit mode on KDE on an M1 Pro.
- 12:
- 10-bit mode: 0..1023
- 8-bit mode: 0..255
- Likely native primaries
- Actually seems to be P3?
#!/usr/bin/python3 | |
# | |
# turnitdown.py - normalize Spotify playback volume on Google Cast devices | |
# | |
# Dependencies: pychromecast, spotipy | |
# | |
# Usage: register a Spotify app and put the credentials in the | |
# SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET environment variables. | |
# Then just launch the script. It will autodetect all cast devices | |
# on the network. |
/* | |
* m1racle-poc: a basic proof of concept for the M1RACLES vulnerability in the Apple M1. | |
* | |
* This program allows you to read and write the state of the s3_5_c15_c10_1 CPU register. | |
* | |
* Please visit m1racles.com for more information. | |
* | |
* Licensed under the MIT license. | |
*/ |
0x000 1 isTiled | |
0x001 1 isTearingAllowed | |
0x002 1 isPremultiplied | |
0x003 4 planeCount | |
0x007 4 planeCount2 | |
0x00b 4 pixelFormat | |
0x00f 4 YCbCrMatrix | |
0x013 1 transferFunctionIndex | |
13 == SDR | |
16 == HDR |
from asm import * | |
blob = open("image.bin", "rb").read() | |
start_addr = 0x08003000 | |
patch_start = start_addr + len(blob) | |
assert patch_start % 4 == 0 |
import tweepy, json, time, sys | |
auth = tweepy.OAuth1UserHandler( | |
<api keys here> | |
) | |
api = tweepy.API(auth) | |
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1]) |
/* SMBLoris attack proof-of-concept | |
* | |
* Copyright 2017 Hector Martin "marcan" <marcan@marcan.st> | |
* | |
* Licensed under the terms of the 2-clause BSD license. | |
* | |
* This is a proof of concept of a publicly disclosed vulnerability. | |
* Please do not go around randomly DoSing people with it. | |
* | |
* Tips: do not use your local IP as source, or if you do, use iptables to block |
#!/usr/bin/python3 | |
import sys, socket, struct | |
import PIL, PIL.Image, PIL.ImageOps | |
DENSITY_MIN = 0 | |
DENSITY_LIGHT = 1 | |
DENSITY_NORMAL = 2 | |
DENSITY_HEAVY = 3 | |
DENSITY_MAX = 4 |
#!/bin/sh | |
set -e | |
ROOT=remotes/origin | |
total=0 | |
for i in $(git for-each-ref --format="%(refname:short)" refs/$ROOT/bits/); do | |
name="${i##*/}" | |
base=$ROOT/base | |
if git rev-parse --verify "$ROOT/bases/$name" &>/dev/null; then |
#!/usr/bin/env python3 | |
from __future__ import print_function | |
import sys, argparse, codecs | |
from PIL import Image, ImagePalette | |
xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, | |
0x00, 0x00, 0x80, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, | |
0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, | |
0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, |