This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| EMAIL="testuser_$(date +%s)@example.com" | |
| PASSWORD="securePassword123!" | |
| NEW_PASSWORD="newSecurePassword456!" | |
| NAME="Test User" | |
| echo "================================" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Font Weight Options | |
| * Description: Manage custom font weights for body text, headings, and code elements. | |
| */ | |
| // Prevent direct access. | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.1.0 | |
| info: | |
| title: Kinsta API (Pruned for Custom GPT) | |
| version: 1.0.2 | |
| description: Subset of Kinsta API excluding Applications, Databases, and Static Sites. | |
| servers: | |
| - url: https://api.kinsta.com/v2 | |
| security: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| now we are more focused on the dev mode and not the AI mode. but here is the issue we experience. when we scrape on headless: true, we experience this thing where we get the parameter to be injected but i dont know if it injects but it ends up not solving. but when we set headless to false then it scrapes | |
| Edit | |
| Relevant chats | |
| I see the issue! This is a common problem with Cloudflare Turnstile captchas in headless mode. Let me analyze what's happening: | |
| The Problem | |
| When headless: true, you're getting the Turnstile parameters intercepted correctly, but the captcha isn't actually being solved. When headless: false, it works fine. This suggests a few potential issues: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ...existing code... | |
| useEffect(() => { | |
| if (typeof window === 'undefined') return; // Prevent SSR issues | |
| if (hasRestored.current) return; | |
| const activeJobId = localStorage.getItem("spidra-active-job"); | |
| if (activeJobId) { | |
| try { | |
| const parsed = JSON.parse(activeJobId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update_plugin_across_sites() { | |
| PLUGIN_NAME=$1 | |
| if [ -z "$PLUGIN_NAME" ]; then | |
| echo "Error: Plugin name is required." | |
| echo "Usage: $0 update-plugin <plugin_name>" | |
| return 1 | |
| fi | |
| echo "Fetching all sites in the company..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Theme Name: Kinsta Blog Theme | |
| Author: Joel Olawanle | |
| Author URI: https://kinsta.com/blog/author/joelolawanle/ | |
| Description: A thoughtfully designed WordPress theme crafted specifically for illustrating the process of theme creation. This theme provides a clean, responsive layout suitable for showcasing articles and tutorials, making it an ideal choice for blog posts and educational content related to web development and design. | |
| Version: 1.0 | |
| License: GNU General Public License v3 or later | |
| License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { request } from 'graphql-request'; | |
| import Paginate from './Paginate'; | |
| const App = () => { | |
| const [blogPosts, setBlogPosts] = useState([]); | |
| const [currentPage, setCurrentPage] = useState(1); | |
| const [totalPosts, setTotalPosts] = useState(); | |
| const [postsPerPage] = useState(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it --rm \ | |
| --volume /var/run/docker.sock:/var/run/docker.sock \ | |
| --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ | |
| --entrypoint="install" \ | |
| appwrite/appwrite:0.15.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState, useEffect } from "react"; | |
| const App = () => { | |
| const [posts, setPosts] = useState([]); | |
| useEffect(() => { | |
| fetch("https://jsonplaceholder.typicode.com/posts") | |
| .then((res) => res.json()) | |
| .then((data) => { | |
| console.log(data); |
NewerOlder