Skip to content

Instantly share code, notes, and snippets.

View rench's full-sized avatar
🎯
Focusing

rench rench

🎯
Focusing
View GitHub Profile
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active November 12, 2025 06:32
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@anonymousmaharaj
anonymousmaharaj / chatgpt-stable-diffusion-generate-prompt
Created April 8, 2023 21:02
Prompt for ChatGPT to generate correct prompts to SD. You can leave comment to improve it.
I want you to help me make requests (prompts) for the Stable Diffusion neural network.
Stable diffusion is a text-based image generation model that can create diverse and high-quality images based on your requests. In order to get the best results from Stable diffusion, you need to follow some guidelines when composing prompts.
Here are some tips for writing prompts for Stable diffusion1:
1) Be as specific as possible in your requests. Stable diffusion handles concrete prompts better than abstract or ambiguous ones. For example, instead of “portrait of a woman” it is better to write “portrait of a woman with brown eyes and red hair in Renaissance style”.
2) Specify specific art styles or materials. If you want to get an image in a certain style or with a certain texture, then specify this in your request. For example, instead of “landscape” it is better to write “watercolor landscape with mountains and lake".
3) Specify specific artists for reference. If you want to get an image similar to the work of some
@bluelovers
bluelovers / ChatGPT Stable Diffusion prompts generator.txt
Last active October 11, 2025 06:30
using ChatGPT as Stable Diffusion prompts generator
Stable Diffusion is an AI art generation model similar to DALLE-2.
Here are some prompts for generating art with Stable Diffusion.
Example:
- A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting.
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth
- pirate, deep focus, fantasy, matte, sharp focus
- red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait
// Note that this is not the production code
pragma solidity 0.5.6;
import "./IERC20.sol";
contract Wallet {
address internal token = 0x123...<hot_wallet_addr>;
address internal hotWallet = 0x321...<hot_wallet_addr>;
constructor() public {
@rfikki
rfikki / goerli-peers-latest.txt
Last active October 15, 2025 07:47
Goerli Peers 02/25/2021 - IMPORTANT RUN THE LATEST RELEASE OF THE GETH CLIENT - https://geth.ethereum.org/downloads/
admin.addPeer("enode://bfb8f20e0bda834faecdca1a01de66b9a7fc184c2a30fca681e6e018aaae91db5d80021f9bf9b5ab598c06264b97a7e1dac1068d16267573c033245b62a2f1f7@47.103.147.67:30303");
admin.addPeer("enode://4d0f2ee1d123159525e4a98fb698076469099d326fe60499ec886e3864fbcc71d3f7b9003fa122058883d6924444bebcfc6bb18b6eb7010cc11571e9ab8ea45b@51.158.104.10:30303");
admin.addPeer("enode://40c212f40b6912dffe848e5c97987e527a3f6da8305a05de2d59cf9444a2d5e183bbb18fab95a7b7e5dc8fa7c30dad0f30f22d39bcdf22c97a1c5ae1fc0f2986@54.175.52.44:30303");
admin.addPeer("enode://26800845069faba9791520112350d0a5f0cd52d0af890196beeb5195345e17b00e60e27f260f6e24087e6066c2637e210f389a9795360b1251c17e58b95446f9@85.25.137.11:30303");
admin.addPeer("enode://2daaae5f69037e575fe169d64aa668223effdf60c2a1898492bf0a9bd45d4991355431ec5bcf9cba2eed1d750cd425d689e0e5cc7141f2954623e3d233ad44ed@80.221.111.50:30303");
admin.addPeer("enode://7a3041767f5bb2f96edf824b186ddb97fdff074675dd55f71347da3b7586210a6e09507415291d2c952dd34184b33562f9a4ecb0188ce3781df644e69901f660
@thomasdarimont
thomasdarimont / ExtractOriginalMethodNameFromReferenceExample.java
Last active July 12, 2019 18:06
One can use a SerializedLambda to unreflect the actual method referred to by a MethodReference
package de.tdlabs.training.hacks;
import java.io.Serializable;
import java.lang.invoke.SerializedLambda;
import java.lang.reflect.Method;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Supplier;
import static java.util.Arrays.asList;
@gomfunkel
gomfunkel / elgato-eve.md
Last active July 12, 2025 08:08
Elgato Eve HomeKit Services & Characteristics

Elgato Eve HomeKit Services & Characteristics

A work in progress collection of proprietary and as of yet undocumented HomeKit characteristics and their UUIDs used by Elgato Eve.

This list is not including all Eve accessories available and some services and characteristics still make no sense to me. If you have anything to contribute, please leave a comment. There is no guarantee that the information listed below is correct.

Elgato Eve Energy (Firmware Revision 1.3.1;466)

Service - Characteristic UUID R W Type Description
@bjyoungblood
bjyoungblood / build-arm.fish
Created December 14, 2014 22:06
Cross-compile Node.JS for ARM
#!/usr/bin/fish
set -x AR arm-linux-gnueabihf-ar
set -x CC arm-linux-gnueabihf-gcc
set -x CXX arm-linux-gnueabihf-g++
set -x LINK arm-linux-gnueabihf-g++
./configure --without-snapshot --dest-cpu=arm --dest-os=linux --prefix=/usr/local
make -j 2
@meigesir
meigesir / ConsistentHash.java
Last active May 19, 2020 08:09
一致性hash算法的实现。
import java.util.ArrayList;
import java.util.Collection;
import java.util.SortedMap;
import java.util.TreeMap;
import org.apache.commons.lang.RandomStringUtils;
import com.google.common.base.Charsets;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
@lwr
lwr / autopac.sh
Last active June 7, 2024 07:34
使用 https://github.com/clowwindy/gfwlist2pac 生成自定义 PAC 的辅助脚本
#!/bin/bash
GFWLIST=https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt
PROXY=127.0.0.1:7070
cd `dirname "${BASH_SOURCE[0]}"`
echo "Downloading gfwlist from $GFWLIST"
curl "$GFWLIST" --socks5-hostname "$PROXY" > /tmp/gfwlist.txt
/usr/local/bin/gfwlist2pac \
--input /tmp/gfwlist.txt \