Skip to content

Instantly share code, notes, and snippets.

View vaad2's full-sized avatar
๐Ÿ˜€

Vadim vaad2

๐Ÿ˜€
View GitHub Profile
var fpdefs = {
vertex_shader :
'attribute vec3 a_vertexPosition,a_vertexNormal;attribute vec2 a_vert' +
'exTexture;uniform mat4 u_mvMatrix,u_pMatrix,u_nMatrix;uniform vec3 u' +
'_lightPosition;varying vec3 v_normal;varying vec2 v_texture;varying ' +
'vec3 v_eyeVec,v_lightRay;void main(){vec4 vertex=u_mvMatrix*vec4(a_v' +
'ertexPosition,1.);v_normal=vec3(u_nMatrix*vec4(a_vertexNormal,1.));v' +
'ec4 light=u_mvMatrix*vec4(u_lightPosition,1.);v_lightRay=vertex.rgb-' +
'light.rgb;v_eyeVec=-vec3(vertex.rgb);gl_Position=u_pMatrix*vertex;gl' +
'_PointSize=1.;v_texture=a_vertexTexture*3.-vec2(1.,1.);}',
@EddiG
EddiG / wireshark.md
Last active April 11, 2025 19:32
How to decrypt SSL/TLS traffic in Wireshark on MacOS

The main point is to save the SSL/TLS keys those used by the web browser (SSLKEYLOGFILE=/tmp/tmp-google/.ssl-key.log).
In the example below we run brand new instance of Google Chrome (--user-data-dir=/tmp/tmp-google do the trick):
SSLKEYLOGFILE=/tmp/tmp-google/.ssl-key.log /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/tmp/tmp-google
Then run the Wireshark and open the Preferences -> Protocols -> SSL, where we put the path to the SSL keys log file into the (Pre)-Master-Secret log filename field.
Now all SSL/TLS traffic from this browser instance will be decrypted.

@eriknovak
eriknovak / logstash-pg-es.md
Last active August 19, 2024 19:02
Instructions for setting up the Logstash configuration for synching PostgreSQL with Elasticsearch

Populating Elasticsearch Index with Logstash

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite "stash."

This section describes how one can use it on UNIX to migrate data from a PostgreSQL database to elasticsearch.

The Prerequisites

@amiraliakbari
amiraliakbari / TrxMultiSend.sol
Created October 27, 2020 13:44
Tron Multi-send contract
pragma solidity ^0.5.0;
/**
* SPDX-License-Identifier: UNLICENSED
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
@ruvnet
ruvnet / *claude.md
Last active July 29, 2025 20:40
The Claude-SPARC Automated Development System is a comprehensive, agentic workflow for automated software development using the SPARC methodology with the Claude Code CLI

Claude-SPARC Automated Development System For Claude Code

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.

Features