Skip to content

Instantly share code, notes, and snippets.

View QAInsights's full-sized avatar
💻
Building Stuffs

NaveenKumar Namachivayam ⚡ QAInsights

💻
Building Stuffs
View GitHub Profile
@QAInsights
QAInsights / microgpt.py
Created March 1, 2026 16:09 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@QAInsights
QAInsights / fritzing-download.md
Created January 29, 2026 22:29 — forked from ryanlua/fritzing-download.md
Free download of Fritzing using the official download links
@QAInsights
QAInsights / alias_eza.md
Created August 23, 2025 19:07 — forked from AppleBoiy/alias_eza.md
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

import http from 'k6/http';
import { check } from 'k6';
export const options = {
vus: 1,
duration: '300s',
noConnectionReuse: false,
batchPerHost: 20,
};
import org.apache.http.client.methods.HttpGet
import org.apache.http.impl.client.CloseableHttpClient
import org.apache.http.impl.client.HttpClients
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager
import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy
import org.apache.http.util.EntityUtils
// Define the desired number of connections
def maxConnectionsPerRoute = 1
@QAInsights
QAInsights / dynamodb.local
Last active February 13, 2023 23:02
AWS DynamoDB Local Instructions
Download DynamoDB Local https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html
Launch in Windows
`java -D"java.library.path=./DynamoDBLocal_lib" -jar DynamoDBLocal.jar`
Create table
`aws dynamodb create-table --table-name perfgpt_dev --attribute-definitions AttributeName=username,AttributeType=S AttributeName=datetime,AttributeType=S --key-schema AttributeName=username,KeyType=HASH AttributeName=datetime,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5`
@QAInsights
QAInsights / ChatGPT-sample-raw-data.csv
Created January 17, 2023 15:11
Sample raw data for ChatGPT
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 17 columns, instead of 3 in line 9.
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
1673958946553,95,HTTP Request,200,OK,Thread Group 1-1,text,true,,1591,109,1,1,http://example.com/,92,0,56
1673958946969,45,HTTP Request,200,OK,Thread Group 1-2,text,true,,1591,109,2,2,http://example.com/,45,0,17
1673958947719,28,HTTP Request,200,OK,Thread Group 1-1,text,true,,1591,109,2,2,http://example.com/,28,0,0
1673958948053,27,HTTP Request,200,OK,Thread Group 1-2,text,true,,1591,109,2,2,http://example.com/,27,0,0
1673958948827,27,HTTP Request,200,OK,Thread Group 1-1,text,true,,1591,109,2,2,http://example.com/,27,0,0
1673958949095,27,HTTP Request,200,OK,Thread Group 1-2,text,true,,1591,109,2,2,http://example.com/,26,0,0
1673958949905,25,HTTP Request,503,OK,Thread Group 1-1,text,true,,1591,109,2,2,http://example.com/,25,0,0
1673958950185,26,HTTP Request,503,OK,Thread Group 1-2,text,true,,1591,109,2,2,http://example.com/,26,0,0
1673958951018,26,HT
@QAInsights
QAInsights / .zshrc
Created July 28, 2022 14:17 — forked from Anon-Exploiter/.zshrc
.zshrc of Kali Linux 2020.3 including the lit prompt
# ~/.zshrc file for zsh non-login shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt ksharrays # arrays start at 0
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
# Method 1
npm install @openapitools/openapi-generator-cli -g
openapi-generator-cli help
openapi-generator-cli version
openapi-generator-cli generate -g jmeter -i http://localhost:9966/petclinic/v2/api-docs