app like that
CheatRepo
CheatRepo

SaaS product for creating, managing, and sharing cheat sheets. Features drag-and-drop interface, customization options, and AI-generated content. Allows users to create, clone, and organize cheat sheets efficiently.

Features

Drag and Drop

Easily rearrange items on your cheat sheets by dragging them around.

Customize

Change the style including font size, spacing, layout, and more to suit your preferences.

Create or Clone

Create new cheat sheets from scratch or duplicate and modify existing ones to fit your needs.

Share

Print, download, and share your cheat sheets with others.

Auto-generate Content with AI

Get recommendations and automate content creation using AI for a streamlined process.

HTTP Status Codes

A comprehensive list of HTTP status codes categorized into informational, successful, and redirection types. Each status code is described in detail, explaining its purpose and typical use scenarios. It covers codes 1XX, 2XX, and 3XX with specific examples like 200 OK, 201 Created, and 301 Moved Permanently.

Creating a List

Instructions on how to create lists in Python using square brackets and separating elements with commas. Lists can hold different data types such as integers, strings, or booleans.

List Functions

Provides common list functions such as 'len', 'sorted', 'sum', 'max', 'min', 'any', and 'all', which perform various operations on lists like counting elements, sorting, summing, and checking conditions.

List Methods

Describes methods for modifying lists such as 'append', 'extend', 'insert', 'remove', 'pop', 'index', 'count', 'sort', 'reverse', and 'copy', allowing you to add, remove, and, search elements or reorder them.

Operators in Python

Overview of different operator types including arithmetic, assignment, comparison, logical, and bitwise operators, explaining how they work in Python.

Importing Packages

Explains how to install and import Python packages, with examples using 'pandas'. Includes a brief explanation of using aliases and working with the working directory.

Scalar Types

Covers the basic data types in Python, describing common scalar types like 'int', 'float', 'str', and 'bool', and their usage in storing data.

Input and Output

Shows how to use 'print' for displaying output and 'input' for getting user input from the console.

Python Definition

A brief explanation of Python as a high-level, interpreted programming language supporting multiple programming paradigms.

Positive Lookbehind

Matches a group of characters that come before the main part of a pattern. Uses (?<=...). Only matches if conditions are met before the main part.

Negative Lookahead

Matches any input string not followed by a specific pattern. Uses (?!pattern). Useful for excluding certain patterns from matches.

Positive Lookahead

Matches a group only if it is followed by another specified pattern. Does not consume matched text. Uses (?=pattern).

Quantifiers

Specify the number of occurrences a character or group can have. Includes *, +, ?, {n}, {n,}, and {n,m}.

Alternation

Allows matching either the pattern before or after it, used to create multiple possible matches within a single regex.

Character Classes

Allow defining a set of characters for matching. Use [] to define characters like [abc], or ranges like [a-z].

Anchors

^ matches the start of a string while $ matches the end. Used to specify where in a line or string you want to match.

Backreferences

Used to match a previously captured group. Reuses part of the matched text in the regex.

Global Search Modifier (/g)

Performs a global search, meaning it matches all occurrences of the pattern in a string.

Dotall Mode (/s)

Allows the period (.) to match newline characters as well, useful for spanning multiple lines.

Multiline Mode (/m)

In multiline mode, ^ and $ match the start and end of each line within a string instead of the entire string.

Unicode Support (/u)

Enables full Unicode matching, including case-insensitivity and word boundaries.

Case-insensitive Matching (/i)

Allows for case-insensitive matching, treating uppercase and lowercase letters equally.

Verbose Mode (/x)

Allows comments and whitespace in the pattern for readability, helpful for complex regex patterns.

Insert Mode - Inserting/Appending Text

Commands to insert or append text at different positions relative to the cursor.

Working With Multiple Files

Commands to edit, switch between, and manage multiple buffers and files.

Search In Multiple Files

Commands for searching patterns across multiple files with navigation options.

Tabs

Commands for managing tabs including opening, switching, and closing tabs.

JetStream - Create New JetStream

Creates a new stream based on the config of another, without copying data. Example usage is `nats stream copy ORDERS ARCHIVE --description "Orders Archive" --subjects ARCHIVE`.

JetStream - Backup/Restore

Enables backup and restore functionality for streams. Example usage includes `nats stream backup ORDERS` and `nats stream restore ORDERS`.

JetStream - Misc

Provides various maintenance commands for streams, such as marking a stream as read-only with `nats stream seal ORDERS` or evicting a stream with `nats stream cluster peer-remove ORDERS nats1.example.net`.

Publish

Allows publishing messages to a destination. For instance, publish 100 random messages with `nats pub destination.subject "{{Random 100 1000}}" --count 100`.

Subscribe

Enables subscribing to messages, for example, subscribing to a queue group with acknowledgment using `nats sub source.subject --queue work --ack`.

JetStream - Page

Facilitates paging through a stream, with commands like `nats stream view ORDERS` and `nats stream view --since 1h`.

JetStream - Purge

Allows purging messages from streams, including deleting up to certain sequences with commands like `nats stream purge ORDERS --seq 1000`.

JetStream - Get Messages

Retrieves and manages specific messages in a stream, such as getting a particular message with `nats stream get ORDERS 12345`.

JetStream - List Streams

Lists available streams with basic info or compatibility with pipes using commands like `nats stream ls`.

Contexts

Manages connection contexts, including creation or updates with `nats context add development --server nats.dev.example.net:4222`, and viewing with `nats context ls`.

Inbox

Guarantees message delivery in the Nats.io inbox feature, ensuring messages are delivered even if the subscriber is temporarily offline.

Viewing pod logs

Use the command 'kubectl logs <pod_name>' to view logs of a specific pod. Utilize the '-f' flag to stream log output and '--timestamps' to add timestamps. Specify a container with '-c <container_name>' if needed.

Checking cluster events

Use 'kubectl get events' to view recent events in the cluster. Provides insights into cluster activities, errors, or evictions. Events can be filtered with '--field-selector' and monitored continuously with '-w'.

Describing a Pod

Use 'kubectl describe pod <pod-name>' to get details on a pod, including configuration and status. Provides image details, volumes, addresses, and conditions.

Monitoring resource utilization

Use 'kubectl top' commands to view CPU and memory usage in resources like pods and nodes. Requires metrics server.

Inspecting logs from pods or containers

Retrieve container logs using 'kubectl logs', specifying pod and container names. Flags '-f' for real-time and '-n' for number of lines can be used.

Analyzing network traffic within the cluster

Use 'kubectl proxy' to connect local and API server, then tools like Wireshark to analyze traffic. Capture packets to troubleshoot network issues.

Checking pod status and health

Use 'kubectl get pods' for pod statuses, 'describe pod <pod-name>' for detailed info, including readiness probes. Verify pod's operational status using this data.

Creating a PersistentVolume

Define and apply a PersistentVolume with YAML specifying configuration details. Bind PVs to pods using labels and selectors.

Defining a StorageClass

Define storage classes in Kubernetes for dynamic provisioning, specifying parameters for different storage types (e.g., SSD, HDD).

Dynamic provisioning of storage

Utilize StorageClass to automatically create volumes as needed, avoiding manual pre-provisioning. Triggers dynamic volume creation.

Using volume expansion

Expand volumes dynamically by modifying PVC's capacity. Requires storage class support for dynamic resizing.