Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. | |
| Project Context: This is a dev tool built for evaluating open source projects allowing people to better understand the maintainability, activity and longevity of a given project to allow devs to better decide whether they should include or use the given open source repositories after the analysis | |
| Code Style and Structure | |
| - Write concise, technical TypeScript code with accurate examples. | |
| - Use functional and declarative programming patterns; avoid classes. | |
| - Prefer iteration and modularization over code duplication. | |
| - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError). | |
| - Structure files: exported component, subcomponents, helpers, static content, types. |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Picking the right architecture = Picking the right battles + Managing trade-offs
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| #!/usr/bin/env python | |
| import optparse | |
| import sys | |
| from boto.s3.connection import S3Connection | |
| def sign(bucket, path, access_key, secret_key, https, expiry): | |
| c = S3Connection(access_key, secret_key) | |
| return c.generate_url( | |
| expires_in=long(expiry), |