IMPORTANT: Kube cluster must be configured to use Workload Identity. See Enable Workload Identity Federation for GKE on clusters and node pools
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
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 |
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
--- | |
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) |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: crash-deployment-startup-probe-failure | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: crash-deployment-startup-probe-failure | |
template: |
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
# 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 |
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.
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
/** | |
* 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. |
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 { 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 = { |
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
redis: | |
image: 'redis:4-alpine' | |
command: redis-server | |
ports: | |
- '6379:6379' |