This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! remove `session_id` tracking parameter from videos | |
! | |
! ideally this would've been a redirect from `video.bsky.app/watch/<did>/<cid>/playlist.m3u8` | |
! to `video.cdn.bsky.app/hls/<did>/<cid>/playlist.m3u8`, as the latter is the actual CDN while | |
! the former is the middleware, however: | |
! | |
! - the raw playlist will not contain webvtt, that's added in by the middleware | |
! - ublock doesn't have a rule that allows redirecting to non-local neutered resource | |
! | |
||video.bsky.app$removeparam=session_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Migration | |
** Blank env | |
export INVITECODE= | |
export ACCOUNTDID=did:plc:XXX | |
export OLDPDSHOST=https://bsky.social | |
export OLDPDSSERVICEDID=did:web:bsky.social | |
export OLDHANDLE= | |
export OLDPASSWORD="" | |
export NEWPDSHOST=https://pds.merklehost.xyz | |
export NEWPDSSERVICEDID=did:web:pds.merklehost.xyz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'omniauth-oauth2' | |
require 'openssl' | |
require 'jwt' | |
require 'securerandom' | |
module OmniAuth | |
module Strategies | |
class Bluesky < OmniAuth::Strategies::OAuth2 | |
option :name, 'bluesky' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AtpAgent from '@atproto/api' | |
import { Secp256k1Keypair } from '@atproto/crypto' | |
import * as ui8 from 'uint8arrays' | |
const OLD_PDS_URL = 'https://bsky.social' | |
const NEW_PDS_URL = 'https://pds.haileyok.com' | |
const CURRENT_HANDLE = 'haileyok.com' | |
const CURRENT_PASSWORD = '' | |
const NEW_HANDLE = 'newphone.pds.haileyok.com' | |
const NEW_ACCOUNT_EMAIL = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
enum OSDocumentError: Error { | |
case unknownFileFormat | |
} | |
#if canImport(UIKit) | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// A Swift property wrapper for adding "indirect" to struct properties. | |
// Enum supports this out of the box, but for some reason struct doesn't. | |
// | |
// This is useful when you want to do something recursive with structs like: | |
// | |
// struct Node { | |
// var next: Node? | |
// } | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Color { | |
/// Return a random color | |
static var random: Color { | |
return Color( | |
red: .random(in: 0...1), | |
green: .random(in: 0...1), | |
blue: .random(in: 0...1) | |
) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
parse SavedState artifacts extracted from OSX. | |
author: Willi Ballenthin ([email protected]) | |
license: Apache 2.0 | |
''' | |
import re | |
import sys | |
import json | |
import struct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
protocol TransformerType { | |
associatedtype Object | |
associatedtype JSON | |
func transformFromJSON(_ value: Any) throws -> Object | |
func transformToJSON(_ value: Object) throws -> JSON | |
} |
NewerOlder