Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
A painfully obsessive cheat sheet to favicon sizes/types. Compiled from:
| import { applyDecorators } from '@nestjs/common'; | |
| import { ApiExtraModels, ApiQuery, getSchemaPath } from '@nestjs/swagger'; | |
| /** | |
| * Combines Swagger Decorators to create a description for `filters[name]=something` | |
| * - has support for swagger | |
| * - automatic transformation with nestjs | |
| */ | |
| // eslint-disable-next-line @typescript-eslint/ban-types,@typescript-eslint/explicit-module-boundary-types | |
| export function ApiFilterQuery(fieldName: string, filterDto: Function) { |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).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)| # Source: https://gist.github.com/vfarcic/78c1d2a87baf31512b87a2254194b11c | |
| ############################################################### | |
| # How To Create A Complete Internal Developer Platform (IDP)? # | |
| # https://youtu.be/Rg98GoEHBd4 # | |
| ############################################################### | |
| # Additional Info: | |
| # - DevOps MUST Build Internal Developer Platform (IDP): https://youtu.be/j5i00z3QXyU | |
| # - How To Create A "Proper" CLI With Shell And Charm Gum: https://youtu.be/U8zCHA-9VLA |
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin | |
| wget "https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/${MODEL}" |
| import { Dispatch, SetStateAction, useState, useEffect, useCallback, useRef } from 'react'; | |
| export type StorageArea = 'sync' | 'local'; | |
| // custom hook to set chrome local/sync storage | |
| // should also set a listener on this specific key | |
| type SetValue<T> = Dispatch<SetStateAction<T>>; | |
| /** |
Sequential prompt chaining in one method with context and output back-referencing.
main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chianchain.py - contains zero library minimal prompt chain classchain_test.py - tests for chain.py, you can ignore thisrequirements.py - python requirements