How to Send a Header with curl
curl -H "Name: value" adds a header to the request curl sends.
Read more about How to Send a Header with curlHome To ChatBots
curl -H "Name: value" adds a header to the request curl sends.
Read more about How to Send a Header with curlType unzip and the zip file’s name to take its files out into the folder you’re in.
Read more about How to Unzip a File in the Terminalecho "text" > file writes the text into the file, creating it or replacing what was in it.
Read more about How to Write Text to a File in the Terminal with echo
curl -H "Name: value" adds a header to the request curl sends.
Type unzip and the zip file’s name to take its files out into the folder you’re in.
echo "text" > file writes the text into the file, creating it or replacing what was in it.
Type rm -r and a folder’s name to delete the folder and everything in it.
A * in a file name stands for any characters, so one pattern can match many files.
Type cp, the file to copy and where it should go to copy a file from the Terminal.
Type ls and a folder’s name to see the files and folders inside it.
Luxon’s toFormat() turns a date into text in the layout you describe with tokens such as yyyy-MM-dd.
replaceAll() gives a new string with every match replaced, and leaves the original string as it was.
Put text between single quotes or double quotes to make a string in JavaScript. Both kinds give the same text.
Chain dots, such as order.customer.city, to read a value from an object that sits inside another object.
Write the object’s name, a dot and the property’s name to read a value from a JavaScript object.
In JSON, null marks a value that is empty on purpose. Write it in lowercase, without quotes.
Take the Workflow Backup for n8n from its zip to a published nightly backup that saves every n8n workflow as a JSON file on your computer, ready to restore.
Use Allowed HTTP Request Domains so an n8n credential only works for the domains you list, and see the error n8n shows for any other address.
Create an n8n API key with only the scopes it needs, set it to expire, and test it from Terminal with one curl command.
Part 6 of the n8n Tutorial: create your first credential, test it and use it in a node, with a read-only API key that reads every workflow on your n8n.
Give a PostgreSQL column a default value, so every insert that leaves it out gets that value.
SET changes a PostgreSQL setting for your own session only, and RESET puts it back, shown with the DateStyle setting.
WHERE keeps only the rows that match a condition. A small table of cities shows how to filter, and the mistake to avoid.
Read rows from a PostgreSQL table with SELECT … FROM: every column with *, or only the columns you name.
Add a row to a PostgreSQL table with INSERT INTO, its columns and VALUES, with a small address book.
Create a table in PostgreSQL with CREATE TABLE, and use IF NOT EXISTS when it may already be there.
Convert a value to another data type in PostgreSQL with :: or CAST, and see what happens when it can’t be converted.
In PostgreSQL, SELECT doesn’t need a table: SELECT 42 returns 42, a quick way to try a value.
Write dates in PostgreSQL year first, as YYYY-MM-DD after the DATE key word, so every server reads them the same way.
Write text in PostgreSQL between single quotes, and type a single quote twice to put one inside the text.
After upgrading to Rasa Pro 3.22.2, the first message to your agent prints 13 pydantic UserWarning lines about the ReadOnly qualifier. They come from litellm, and your agent keeps working.
PostgreSQL’s three whole-number types differ only in size and range. Each limit is tried live, with advice on which one to use.
A boolean holds true, false or NULL, and NULL behaves differently when you search. A small to-do list shows IS NULL and IS NOT TRUE at work.
Check the data type of every column in a PostgreSQL table with a psql command, or with an information_schema query in any tool.
Generate random and time-ordered UUIDs in PostgreSQL with gen_random_uuid() and uuidv7(), and use one as a table’s ID.
Identity columns and serial both give rows numbers that count up by themselves. Here’s why an identity column is the better choice for IDs, tried side by side.
timestamptz stores a moment and shows it in your time zone; timestamp keeps only the clock reading. One table, viewed from two time zones, shows the difference.
Store prices in PostgreSQL with numeric and two decimals, and see why the money and real types are worse choices, with real psql output.
text and varchar store text the same way in PostgreSQL; varchar(n) only adds a length limit. A small example shows a value that’s too long being refused.