Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/usr/bin/env python | |
import time | |
import signal | |
import math | |
import scrollphathd | |
from envirophat import light, motion, weather | |
""" |
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl \ | |
docker.io docker-buildx \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
-- Export images from Photos via automated GUI manipulation | |
-- It's an unsavory approach, but no other means of automation seems to yield higher quality edited image exports (so far) | |
-- Arguments are passed in their order of appearance in the GUI, and expect values exactly matching the UI strings in Photos.app | |
-- Accepts an individual photo UUID, or an album UUID (use osxphotos query to look up UUIDs) | |
on run { uuid, exportDirectory, photoKind, jpegQuality, tiffBitDepth, colorProfile, photoSize, maxSizeType, maxSizeValue, includeMetadata, includeLocation , fileName, sequentialPrefix, subfolderFormat} | |
tell application "System Events" | |
set wasRunning to (name of processes) contains "Photos" | |
end tell |
# https://superuser.com/a/1434648 | |
Add-Type -AssemblyName System.Runtime.WindowsRuntime | |
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] | |
Function Await($WinRtTask, $ResultType) { | |
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType) | |
$netTask = $asTask.Invoke($null, @($WinRtTask)) | |
$netTask.Wait(-1) | Out-Null | |
$netTask.Result |
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
#!/bin/sh | |
# Silly speed test just by downloading a file directly to /dev/null | |
# Useful on routers which only have busybox installed. | |
# ↄ⃝🄯 B9 2016, 2018, 2023. Creative Commons Zero. | |
# NOTA BENE: cachefly has worked for over a decade, however they may | |
# be getting tired of scripts like this. Starting February 2023, their | |
# 100mb.test file is empty and the 50mb.test file holds 100MB. | |
dotest() { |
Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
import { BlurImage, YouTube } from "@dub/ui"; | |
import { nFormatter } from "@dub/utils"; | |
import { Eye, UserCheck, Video } from "lucide-react"; | |
import { Suspense } from "react"; | |
export function YoutubeChannel({ id }: { id: string }) { | |
return ( | |
<Suspense fallback={<div className="not-prose grid gap-4"></div>}> | |
<YoutubeChannelRSC id={id} /> | |
</Suspense> |
Os nomes das tabelas e colunas devem estar minúsculas e as palavras devem ser separadas por underscore, seguindo o padrão snake case. E todos os termos devem estar em inglês, exceto alguns termos que não há tradução apropriada para o inglês. Sempre prefira nomes descritivos, evitando ao máximo contrações.
Os nomes das tabelas devem estar no plural.