-
from (
from:me
orfrom:bsky.app
orfrom:@bsky.app
)
posts created by specified user -
mentions (
mentions:me
ormentions:bsky.app
ormentions:@bsky.app
)
posts mentioning specified user -
to (
to:me
orto:bsky.app
orto:@bsky.app
)
currently an alias formentions
-
since (
since:2024-04-13
orsince:2024-04-13T17:00:00.000Z
)
This file contains 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
x.com##.css-175oi2r:has(> .css-175oi2r > [aria-label="Subscribe to Premium"]) | |
x.com##.css-175oi2r:has(> .css-175oi2r > [aria-label="Subscribe to Premium to write your own longer posts"]) | |
x.com##.css-175oi2r.r-1ifxtd0:has(> .css-175oi2r > .css-175oi2r > [aria-label="Timeline: Trending now"]) | |
x.com##.r-1wvb978:style(font-feature-settings: initial !important) | |
x.com##[data-testid="AppTabBar_Home_Link"] ~ :is(a[href="/i/grok"], a[href="/i/premium_sign_up"]) | |
x.com##div[role=dialog] > .css-175oi2r .css-175oi2r:has(> :is(a[href="/i/premium_sign_up"], a[href="/settings/monetization"], a[href^="https://ads.x.com/"], a[href="/jobs"])) | |
x.com##[data-testid="tweet"] .css-175oi2r:has(> a.css-175oi2r[href$="/analytics"]) |
This file contains 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 { Signal as WebSignal } from 'signal-polyfill'; | |
export type Accessor<T> = () => T; | |
export type Setter<in out T> = { | |
<U extends T>(...args: undefined extends T ? [] : [value: (prev: T) => U]): undefined extends T | |
? undefined | |
: U; | |
<U extends T>(value: (prev: T) => U): U; | |
<U extends T>(value: Exclude<U, Function>): U; | |
<U extends T>(value: Exclude<U, Function> | ((prev: T) => U)): U; |
This file contains 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
export class PromiseQueue { | |
#queue: { deferred: PromiseWithResolvers<any>; fn: () => any }[] = []; | |
#max: number; | |
#current = 0; | |
constructor({ max = 4 }: { max?: number } = {}) { | |
this.#max = max; | |
} |
This file contains 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
type EventFunction = (...args: any[]) => void; | |
export interface EventMap { | |
[key: string]: EventFunction; | |
} | |
export class EventEmitter<Events extends EventMap> { | |
#events?: Record<keyof Events, EventFunction | EventFunction[]>; | |
on<E extends keyof Events>(type: E, listener: Events[E]) { |
This file contains 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
#!/usr/bin/env bash | |
# - Take a screenshot of the active monitor | |
# - View said screenshot in fullscreen | |
# - Ask the user for the region to crop | |
# - Pass the crop geometry for ImageMagick to crop and copy it | |
# + Grab the active workspace's window geometries for suggested crops | |
CURRENT_OUTPUT=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') |
This file contains 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
// https://github.com/golang/go/blob/519f6a00e4dabb871eadaefc8ac295c09fd9b56f/src/strings/strings.go#L377-L425 | |
const fieldsfunc = (str: string, fn: (rune: number) => boolean): string[] => { | |
const slices: string[] = []; | |
let start = -1; | |
for (let pos = 0, len = str.length; pos < len; pos++) { | |
if (fn(str.charCodeAt(pos))) { | |
if (start !== -1) { | |
slices.push(str.slice(start, pos)); | |
start = -1; |
This file contains 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
#!/bin/bash | |
if [ -f deno.json ] || [ -f deno.jsonc ]; then | |
~/.deno/bin/deno lsp | |
else | |
typescript-language-server --stdio | |
fi |
This file contains 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
// Don't check for browser defaults | |
user_pref("browser.shell.checkDefaultBrowser", false); | |
// Show compact mode UI option, and enable it. | |
user_pref("browser.compactmode.show", true); | |
user_pref("browser.uidensity", 1); | |
// Enable auto-scrolling | |
user_pref("general.autoScroll", true); |
This file contains 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 { Agent } from '@externdefs/bluesky-client/agent'; | |
import type { Records, RefOf } from '@externdefs/bluesky-client/atp-schema'; | |
const BSKY_USERNAME = ''; | |
const BSKY_PASSWORD = ''; | |
const agent = new Agent({ serviceUri: 'https://bsky.social' }); | |
await agent.login({ identifier: BSKY_USERNAME, password: BSKY_PASSWORD }); | |
const did = agent.session!.did; |
NewerOlder