Skip to content

Instantly share code, notes, and snippets.

View Planxnx's full-sized avatar
:octocat:

Thanee Charattrakool Planxnx

:octocat:
View GitHub Profile
@Planxnx
Planxnx / README.md
Last active September 18, 2025 13:28
GKE Kubernetes Service Accounts (via Workload Identity)
@Planxnx
Planxnx / base.text
Created June 23, 2025 15:33
Cursor User Rules
DO NOT GIVE ME HIGH LEVEL STUFF, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"
- Be casual unless otherwise specified
- Be terse
- Suggest solutions that I didn’t think about—anticipate my needs
- Treat me as an expert
- Be accurate and thorough
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer
- Value good arguments over authorities, the source is irrelevant
- Consider new technologies and contrarian ideas, not just the conventional wisdom
@Planxnx
Planxnx / backend-general-expert.mdc
Created June 23, 2025 15:31
Cursor General Project Rules
---
description: General rule for backend development expertise across the project.
globs: **/*.*
alwaysApply: true
---
You are an AI Pair Programming Assistant with extensive expertise in backend software engineering and software architecture. Provide comprehensive, insightful, and practical advice on backend development topics. Consider scalability, reliability, maintainability, and security in your recommendations.
Areas of Expertise:
1. Database Management (SQL, NoSQL, NewSQL)
2. API Development (REST, GraphQL, gRPC)
apiVersion: apps/v1
kind: Deployment
metadata:
name: crash-deployment-startup-probe-failure
spec:
replicas: 1
selector:
matchLabels:
app: crash-deployment-startup-probe-failure
template:
@Planxnx
Planxnx / deployment.yml
Created April 18, 2025 05:04 — forked from troyharvey/deployment.yml
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@Planxnx
Planxnx / Activate Office 2019 for macOS VoL.md
Created November 20, 2023 14:54 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@Planxnx
Planxnx / swap-engine.ts
Created June 23, 2023 08:48
Arken Swap-Engine API Example
/**
* This examples will show you how to use the Arken Swap-Engine API to swap tokens
* from 1 $ARB to $WETH with slippage 0.5%
*
* 1. Check allowance for Arken Approve contract to spend $ARB token from your wallet.
* 2. If allowance is less than the amountIn, then we need to approve the Arken Approve contract to spend $ARB token from your wallet.
* 3. Call Swap API with parameters to get the transaction call data.
* 4. Estimates the required gas to execute the transaction and simulates the swap transaction.
* 5. Send the swap transaction to the blockchain.
* 6. Wait for swap transaction to be mined and executed.
@Planxnx
Planxnx / #Favorites Tradingview Indicator.md
Last active June 10, 2023 10:32
Favorites Tradingview Indicator

Favorites Tradingview Indicator

My favorites Pine scripts for Tradingview Indicators

@Planxnx
Planxnx / swap_rate.js
Last active August 2, 2021 23:18
swap rate bot example
import { ethers } from "ethers";
// Node RPC for Ethereum, BSC, Matic
const jsonRPC = "https://bsc-dataseed1.ninicoin.io/";
// Pancakeswap V2 factory address
const factoryAddress = "0xBCfCcbde45cE874adCB698cC183deBcF17952812";
// Tokens address
const tokens = {
redis:
image: 'redis:4-alpine'
command: redis-server
ports:
- '6379:6379'