The Official ChatGTP cheat code thread.

Ethnic Vagina Finder

The Great Paper Chaser
Joined
May 4, 2012
Messages
55,153
Reputation
2,816
Daps
156,232
Reppin
North Jersey but I miss Cali :sadcam:
Right

I actually see it as the next dotcom crash. I remember everybody was making a website for everything imaginable during the 90s internet bubble. And these nonsense websites were getting billion dollar evaluations for no reason despite having no real world application. For example "pets.com" was a 10billion dollar enterprise that they said would revolutionize humanity until it crashed, cause it had no bussiness model.


We had only a handful of survivors from that era(Google, Amazon, ebay, yahoo etc) but the rest were scams capitalizing on public ignorance of a new technology (the internet). And we have a few scammers that survived to be rich today (masayoshi Son, Mark Cuban, etc)

I think AI will be the same. If so, I think it's actually wise to invest in any AI start up currently so you can ride the bubble before it crashes. Or even make your own using the templates online . AI will eventually be a bigger pitfall than the "crypto is the future" hustle during covid, but similar gains can be leeched off before it crashes due to regulation or lack of practicality
The dot com bubble was different. A lot of those companies simply had an idea and that’s it. They didn’t do anything. And most of the public wasn’t using the internet.
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
I got chatgpt to make a userscript that would load mastodon links like twitter posts.

it basically determines if a link is a mastodon link based on the @Username and post id. it's then add to the end /embed.js for each mastodon instance link with it's unique domain.

Code:
// ==UserScript==
// @name         Mastodon Embed Links
// @version      1
// @description  Embed Mastodon posts in Xenforo-compatible forums
// @match        https://www.thecoli.com/threads/*
// @match        https://thecoli.com/threads/*
// ==/UserScript==

(function() {
    'use strict';

    // Regex pattern to match Mastodon links
    const mastodonRegex = /^https?:\/\/([a-z\d-_]+\.)*([a-z\d-_]+)\.([a-z]{2,})(\/@[a-zA-Z0-9-_]+\/\d+)/;

    // Find all links on the page
    const links = document.getElementsByTagName("a");
    for (let i = 0; i < links.length; i++) {
        const link = links[i];
        const href = link.getAttribute("href");

        // Check if the link matches the Mastodon regex pattern
        if (mastodonRegex.test(href)) {
            const match = href.match(mastodonRegex);
            const username = match[4].split("/")[1];
            const postID = match[4].split("/")[2];
            const domain = match[2];

            // Create the iframe embed code
            const embedUrl = `${href}/embed`;
            const scriptSrc = `https://${domain}/embed.js`;
            const iframe = document.createElement("iframe");
            iframe.src = embedUrl;
            iframe.classList.add("mastodon-embed");
            iframe.style.maxWidth = '550px';
            iframe.style.border = "0";
            iframe.style.width = '100%';
            iframe.style.height = '400px';
            iframe.setAttribute("allowfullscreen", "allowfullscreen");
            const script = document.createElement("script");
            script.src = scriptSrc;
            script.async = true;
            iframe.appendChild(script);

            // Replace the link with the embedded post
            link.parentNode.replaceChild(iframe, link);

            // Listen for the "load" event on the iframe
            iframe.addEventListener("load", () => {
                // Get the width and height of the content inside the iframe
                const iframeContentWidth = iframe.contentWindow.document.body.offsetWidth;
                const iframeContentHeight = iframe.contentWindow.document.body.offsetHeight;

                // Set the width and height of the iframe to the size of the content
                iframe.width = iframeContentWidth;
                iframe.height = iframeContentHeight;
            });

        }
    }
})();

To use this script:
  1. Install the Tampermonkey browser extension if you haven't already.
  2. Open the Tampermonkey dashboard and click on the "Create a new script" button.
  3. Replace the default content with the userscript provided above.
  4. Save the script (Ctrl+S or Command+S) and make sure it's enabled in Tampermonkey.

some posts with a mastodon link.



AjsW1Bq.png
 

IIVI

Superstar
Joined
Mar 11, 2022
Messages
11,904
Reputation
2,803
Daps
41,328
Reppin
Los Angeles
A few months ago someone approached to make a a desktop app in 100% Java specifically. I haven't used that language going back to college. They had full-flushed out requirements and everything, definitely would not have been easy and some edge cases were very intricate. I said it'd take about half a year (which was about the rate I charged).

I actually managed to pull it off in about a month because I was able to offload so many tedious tasks like DateParsing, regex, etc. to ChatGPT and Github Copilot. Integration tests and everything. I heard back recently and they love the app. I definitely had to come up with some more novel ideas though because again, those edge cases were something (heard they attempted to do it themselves before they asked me).

Outside of that, been using it for general coding snippets. I wanted to print a webpage to pdf so I needed to clean up the printable version and get rid of a lot of the ads, menu's etc. and was able to get ChatGPT to write me scripts to run after giving it some the HTML. Additionally, was able to get some quick stat tallies on sites like pro-football-reference.com.
 
Last edited:

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
A few months ago someone approached to make a a desktop app in 100% Java specifically. I haven't used that language going back to college. They had full-flushed out requirements and everything, definitely would not have been easy and some edge cases were very intricate. I said it'd take about half a year (which was about the rate I charged).

I actually managed to pull it off in about a month because I was able to offload so many tedious tasks like DateParsing, regex, etc. to ChatGPT and Github Copilot. Integration tests and everything. I heard back recently and they love the app. I definitely had to come up with some more novel ideas though because again, those edge cases were something (heard they attempted to do it themselves before they asked me).

Outside of that, been using it for general coding snippets. I wanted to print a webpage to pdf so I needed to clean up the printable version and get rid of a lot of the ads, menu's etc. and was able to get ChatGPT to write me scripts to run after giving it some the HTML. Additionally, was able to get some quick stat tallies on sites like pro-football-reference.com.
i've been asking a lot of regex questions on different models to gauge their usefulness, chatgpt responses reigns over them all.

getting A.I to breakdown regex patterns i come across online:banderas:
 
Top