Skip to content

Instantly share code, notes, and snippets.

View mysticaltech's full-sized avatar

K. N. mysticaltech

View GitHub Profile
@mysticaltech
mysticaltech / openapi.json
Created June 11, 2025 03:01
Profitwell v2 openapi.json
{
"openapi": "3.0.0",
"info": {
"title": "ProfitWell API v2",
"version": "v2",
"description": "The ProfitWell APIs allow you to get the most out of your account by programmatically adding and retrieving data.\n(Note: If you are looking for the v1 docs, you can find them [here](https://profitwell.com/docs/api/v1/))\n\n**Authentication**\nAuthentication is done via an API token that you can find by clicking the ProfitWell API data connection card in the Account Settings -> Integrations tab of your ProfitWell account. This token is unique to your company and should be kept secret.\nTo authenticate, set an `Authorization` request header equal to the value of your token on each request. Invalid or missing tokens will return a 401 Unauthorized response.\n- Your **private token** is required for all ProfitWell API endpoints except for the Customer Events endpoint.\n- Your **public token** is required for the Customer Events API endpoint, as well as authentication with the Profitwell.js script.\n\n**R
@mysticaltech
mysticaltech / openapi.json
Last active June 9, 2025 17:39
Tapfiliate openapi.json
{
"openapi": "3.0.0",
"info": {
"title": "Tapfiliate REST API",
"version": "1.6",
"description": "A comprehensive reference guide to the Tapfiliate REST API. The API is based around REST, has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. JSON is returned by all API responses, including errors. All API requests must be made over HTTPS."
},
"servers": [
{
"url": "https://api.tapfiliate.com/1.6",
@mysticaltech
mysticaltech / content.md
Last active June 10, 2025 16:46
THE WAY OF CODE - Rick Rubin

THE WAY OF CODE

The Timeless Art of Vibe Coding

Based on Lao Tzu. Adapted by Rick Rubin

Each encounter I’ve had with Lao Tzu has pointed me to something new. Almost as if the book changes with every reading. I first picked up Stephen Mitchell’s translation 40 years ago at the Bodhi Tree bookstore in Los Angeles and my life has never been quite the same. — Rick Rubin

@mysticaltech
mysticaltech / agent loop
Created March 10, 2025 20:19 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@mysticaltech
mysticaltech / ChatGPT Custom Instructions - Generic
Created February 28, 2024 00:59 — forked from mangiucugna/ChatGPT Custom Instructions - Generic
ChatGPT Custom Instructions - A generic Custom Instruction to extract the max from GPT. Maybe a bit verbose for someone
- I need your answer to be precise, it’s crucial you get them right, I am counting on you!
- You always think step by step, break down the problem into intermediate steps and communicate to the user which steps you took in order to answer their query
- If you think you need to execute more steps in order to answer the query, ask the user for confirmation and run more steps
- Always provide a detailed explanation for your response, including the underlying reasoning and any relevant sources to support your answer.
Use this format to answer:
```
**Answer**: {answer}
**Internal monologue**: {why you answered this way, how you broke down the problem in steps and your train of thought}
**What other questions you might ask**: {what kind of followup questions you expect from me? What did I miss?}
**Sources**: * {source1} {confidence score about source1, 1 to 10} * {source2} {confidence score about source2, 1 to 10} * {...}
@mysticaltech
mysticaltech / docker-compose.yml
Created February 15, 2023 10:01 — forked from giggio/docker-compose.yml
Mirror Docker hub with Docker-compose
version: '3.7'
services:
dockerregistrymirror:
container_name: docker-registry-mirror
image: registry:2
ports:
- "443:443"
volumes:
- ./data/docker/var/lib/registry:/var/lib/registry
- ./data/certs:/certs
@mysticaltech
mysticaltech / 01_longhorn_bestpractices.md
Created December 2, 2022 22:58 — forked from ifeulner/01_longhorn_bestpractices.md
Longhorn hcloud best practices

Longhorn best practices

The following settings are provided as an example how longhorn should be configured in a production cluster, especially if it is deployed on Hetzner Cloud infrastructure.

Hetzner server nodes provide local storage and allow up to five attached volumes (with a size of up to 10TiB each) Local storage is provided by NVMe storage and therefore is much faster than the attached volumes, but limited in size (max 300GiB usable).

Initial configuration

Also you want to control the nodes that are used for storage. So it is suggested to set the option Create default disk only on labeled node to true

@mysticaltech
mysticaltech / rage-clicks.js
Created December 1, 2022 16:38 — forked from silversillu/rage-clicks.js
Tracking Rage Clicks using GTM
if ( typeof(jQuery) === 'function' ) {
jQuery(document).ready(function($) {
jQuery.fn.extend({
getPath: function() {
var path, node = this;
while (node.length) {
var realNode = node[0],
name = realNode.localName;
if (!name) break;
name = name.toLowerCase();
@mysticaltech
mysticaltech / gist:b66e9a5d7e25d0ef9c3afeb1650c30c9
Created October 26, 2022 23:50 — forked from koakh/gist:fbbc37cde630bedcf57acfd4d6a6956b
SurrealDB : How to use signin and signup (server + client nodesjs)
**As a developer you have complete control over the signup and signin functionality...**
```shell
$ surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test
```
```sql
-- optional : this is the default see --ns test --db test start server flags
-- USE NS test DB test;
@mysticaltech
mysticaltech / gist:89204c7ec3dff2da1609505c55005525
Last active October 23, 2022 23:38
How to share an external drive via NFS on Fedora Linux for Kodi as a client
1/ Install nfs-utils
sudo dnf install nfs-utils
2/ Enable the needed services
sudo systemctl enable rpcbind
sudo systemctl enable nfs-server
sudo service rpcbind start
sudo service nfs-server start