A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.
Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1
Set up GitHub Actions to handle deployments for your Laravel application. This has similar functionality to Laravel Forge without the recurring cost. GitHub Actions can be used to automate your deployment process on every push to your repository.
DEPLOY_SERVER_IP: Your server's IP address.DEPLOY_SERVER_USER: Your SSH username.DEPLOY_SERVER_KEY: Your private SSH key. Make sure this key is authorized to access your server (~/.ssh/authorized_keys).DEPLOY_SERVER_DIR: The directory where you'd like to deploy your app, relative to /var/www/. Ex: example.com| -- Prompt: | |
| -- | |
| -- I want help writing a SQL query. I have a database with the two tables: | |
| -- | |
| -- CREATE TABLE order_items ( | |
| -- created_at timestamp, | |
| -- sale_price decimal, | |
| -- inventory_item_id integer | |
| -- ); | |
| -- |
| // Requires the gpt library from https://github.com/hrishioa/socrate and the progress bar library. | |
| // Created by Hrishi Olickel ([email protected]) (@hrishioa). Reach out if you have trouble running this. | |
| import { ThunkQueue } from '../../utils/simplethrottler'; | |
| import { | |
| AcceptedModels, | |
| Messages, | |
| askChatGPT, | |
| getMessagesTokenCount, | |
| getProperJSONFromGPT, |
| Pretty print tables summarizing properties of tensor arrays in numpy, pytorch, jax, etc. | |
| Now on pip! `pip install arrgh` https://github.com/nmwsharp/arrgh |
These instructions have moved to https://github.com/emporia-vue-local/esphome
| /* | |
| * Converts table from [[Header0, Header1, Header2], [Column0Val0, Column1Val0, Column2Val0], ...] | |
| * to {Header0: [ColumnVal0, ...], Header1: [Column1Val0, ...], Header2: [Column2Val0, ...]} | |
| */ | |
| function convertTableToData(table) { | |
| transposed = table[0].map((_, colIndex) => table.map(row => row[colIndex])); | |
| result = {} | |
| for(var i = 0; i < transposed.length; i++) { | |
| header = transposed[i][0] | |
| result[header] = transposed[i].slice(1, 4).map(String); |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
| // 1. open your browser's dev tools | |
| // 2. paste the following code into the console | |
| // 3. press ENTER and read article | |
| var paywall = document.querySelector('.basic-paywall-new'); | |
| paywall.style.display = 'none'; | |
| var paragraphs = document.querySelectorAll('.text-block-container'); | |
| paragraphs.forEach(function (p) { | |
| p.style.display = 'block'; |