Skip to content

Instantly share code, notes, and snippets.

View themojilla's full-sized avatar
🎯
Focusing

Mojtaba Kianifar themojilla

🎯
Focusing
View GitHub Profile
kubectl get services # List all services
kubectl get pods # List all pods
kubectl get nodes -w # Watch nodes continuously
kubectl version # Get version information
kubectl cluster-info # Get cluster information
kubectl config view # Get the configuration
kubectl describe node <node> # Output information about a node
kubectl get pods # List the current pods
kubectl describe pod <name> # Describe pod <name>
kubectl get rc # List the replication controllers
@somebody32
somebody32 / README.md
Last active April 25, 2022 18:24
Tailwind purging + external components library

Prerequisites

  1. The app that uses tailwind + external component library (CL) (but not 3rdparty, your company internal one, for example)
  2. The component library also uses tailwind

The goal

To be able to purge safely unused tailwind classes from the build (https://tailwindcss.com/docs/controlling-file-size)

Solution

The idea here is simple: we're going to purge css on the app side + whitelist classes that component library is using.

@karlhorky
karlhorky / try-catch.ts
Last active October 19, 2022 23:43
Try-catch helper for promises and async/await
export default async function tryCatch<Data>(
promise: Promise<Data>,
): Promise<{ error: Error } | { data: Data }> {
try {
return { data: await promise };
} catch (error) {
return { error };
}
}
@afzouni
afzouni / shit-for-brains.md
Last active October 27, 2022 13:26
Shit for Brains - Block List Farsi Twitter

Total Accounts: 50,550 (2022-09-24)

Block List

List of Accouns is Here contains JSON, CSV and Raw Text.

Accouts gathering using Like Blockers and below links are theirs API.

Changelog:

  • 2022-09-19 (1 to 52)
  • 2022-09-24 (53 to 242) - by @torabkheslat and @MohammadJavadJamali