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
from __future__ import annotations | |
from collections import defaultdict | |
from dataclasses import dataclass, field | |
from typing import Iterable, Self | |
from preloaded import open | |
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
-- Sizes of all tables in the public schema | |
SELECT | |
table_name AS "Table", | |
pg_size_pretty(table_size) AS "Table Size", | |
pg_size_pretty(indexes_size) AS "Indexes Size", | |
pg_size_pretty(toast_size) AS "Toast Size", | |
pg_size_pretty(total_size) AS "Total Size" | |
FROM ( | |
SELECT | |
table_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
package com.github.rewstapp.packauthoring.openapi.vcs.impl | |
import com.github.rewstapp.packauthoring.psi.search.scope.packageSet.BranchChangedFilesCustomScopesProvider | |
import com.github.rewstapp.packauthoring.settings.PackAuthoringSettings | |
import com.intellij.diff.DiffApplicationSettings | |
import com.intellij.diff.DiffContentFactory | |
import com.intellij.diff.DiffManager | |
import com.intellij.diff.comparison.ByWord | |
import com.intellij.diff.comparison.ComparisonPolicy | |
import com.intellij.diff.contents.DiffContent |
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
@task | |
def perchy(c): | |
"""Perchy Print""" | |
perchy = '''\ | |
*::: | |
*:::::: | |
*:::::::::: | |
*::::::::::::: | |
*::::::::::::::: | |
*:::::::::::::::::: |
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
from _typeshed import Incomplete | |
from collections.abc import Generator | |
from typing import Any, Generic, Type, TypeVar | |
from sqlalchemy.orm.query import Query | |
from sqlalchemy.orm.session import Session | |
from . import utils as utils | |
from .model import DefaultMeta as DefaultMeta, Model as Model |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// ==UserScript== | |
// @name Enable paste on Quest | |
// @version 0.1 | |
// @description Enable paste on Quest diagnostics input fields | |
// @updateURL https://gist.github.com/theY4Kman/8054da715976e1765655da4236ec4f6f/raw/quest-paste.user.js | |
// @match https://myquest.questdiagnostics.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
strings ./dll/bakkesmod.dll 2>&1 \ | |
| \grep -E '^(Common|Uncommon|Rare|Very ?rare|Import|Exotic|Black ?market|Premium|Limited|Legacy)$' | |
Common | |
Rare | |
Very rare | |
Uncommon | |
Black market | |
Premium | |
Import |
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
pygobject | |
dbus-python | |
python-xlib |
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 os | |
import threading | |
class StaticContentNamedPipe(threading.Thread, str): | |
"""Facilitates passing in-memory content to a spawned process as a named pipe (Linux only) | |
>>> import subprocess | |
>>> with StaticContentNamedPipe("my content") as named_pipe: | |
... proc = subprocess.run(["cat", named_pipe], pass_fds=[named_pipe], |
NewerOlder