Skip to content

Instantly share code, notes, and snippets.

View geekyayush's full-sized avatar
🎯
Focusing

Ayush Somani geekyayush

🎯
Focusing
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active May 22, 2025 07:24
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
@zabirauf
zabirauf / claude_proxy_service.ts
Created March 19, 2024 15:02
Claude proxy service to support CORS
import { serve } from 'https://deno.land/[email protected]/http/server.ts';
const PORT = 8088;
const ALLOWED_HEADERS = ['x-api-key', 'anthropic-version', 'Content-Type'];
function addCORSHeaders(responseHeaders: Headers) {
responseHeaders.set('Access-Control-Allow-Origin', '*'); // Allow requests from any origin
responseHeaders.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); // Allowed methods
responseHeaders.set('Access-Control-Allow-Headers', '*'); // Allow all headers
}
@luismts
luismts / requests.md
Last active October 29, 2024 18:24
Enhancements and Desired Features for Directus

Enhancements and Desired Features for Directus: Contributing to the Platform's Future

Directus is an open-source content management system that offers exceptional flexibility in creating custom content interfaces. The community surrounding Directus plays a vital role in its evolution and continuous improvement. One of the most effective ways to influence the development of this platform is through requesting new features or improvements.

Through GitHub, the Directus team values the contributions and suggestions from the community. This article aims to compile a list of features and enhancements that could further drive the utility and versatility of Directus.

🚀 Your Voice Matters! Join and Support these Key Enhancements for Directus 🌟

Features:

@levelsio
levelsio / upgradeSubPrice.php
Created October 8, 2023 17:28
This script upgrades the price on active subscriptions on Stripe
<?
// set price
$newPricePlanId='price_1NsRt5Inbsdfsfddsf';
$newPriceMonthly=39;
$i=1;
foreach($users as $user) {
if(!$user['stripe_customer_id']) {
echo "No Stripe customer id, maybe update in db?";
@czue
czue / json_cleaner.py
Created September 21, 2023 11:25
OpenAI JSON Cleaner
def clean_and_parse_json_with_ai(json_string: str, openai_key: str):
clean_json_fn = {
"name": "clean_json",
"description": "Cleans JSON.",
"parameters": {
"type": "object",
"properties": {
"clean_json": {
"type": "string",
"description": "The cleaned JSON.",
@Natetronn
Natetronn / directus-flow-for-mulitple-unique-indexes.md
Last active July 5, 2024 22:10
Directus Flow for Multiple Unique Indexes

Directus Flow for Multiple Unique Indexes

Context:

  • owners collection

  • sellers collection

  • countries collection

@runevision
runevision / Unity versions not affected by Unity Runtime Fee.md
Created September 14, 2023 09:45
Unity versions not affected by Unity Runtime Fee

Unity versions not affected by Unity Runtime Fee

This is information that has been dug up by me and others in the Unity community. It's not official information from Unity (but most of the linked resources are). It is also not legal advise. I am not a lawyer.

TLDR:

Contrary to what Unity themselves are saying, for games made with these Unity versions, developers can elect not to be affected by a newer version of the Terms of Service that introduces the Unity Runtime Fee:

  • Unity 2022.x or earlier
  • Unity 2021.x LTS or earlier

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@winNft
winNft / ChakraThem.ts
Created January 15, 2023 22:39
theme
// Chakra UI specific theme and variables configuration
import { extendTheme } from '@chakra-ui/react';
export const theme = extendTheme({
styles: {
global: {
body: {
minHeight: '100vh',
overflowX: 'hidden',
@geocine
geocine / convert_original_stable_diffusion_to_diffusers_fix.py
Created December 26, 2022 18:50
convert_original_stable_diffusion_to_diffusers_fix.py
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software