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 / wezterm.lua
Last active April 16, 2024 19:30
WezTerm configuration
local wezterm = require 'wezterm'
local schemes = wezterm.get_builtin_color_schemes()
local scheme = schemes['OneDark (base16)']
local bg_color, fg_color, active_color, hover_color, text_color
local dark_mode = wezterm.gui.get_appearance() == "Dark"
if dark_mode then
@mate-h
mate-h / python-reverse-engineering.md
Last active April 8, 2024 13:49
Reverse Engineering Python executable

Reverse engineering

Obtained binaries from Discord server. The download link: https://drive.google.com/file/d/1xPP9R2VKmJ9jwNY_1xf1sVVHlxZIsLcg

Basic information about binaries. There are two main versions of the program in question: aimful-kucoin.exe and aimful-binance.exe. They are both Windows executables. From the FAQ section of the discord server, the following information is available:

In what language was this bot written?

  • Python.
@mate-h
mate-h / config.fish
Created March 8, 2024 04:22
Personal config.fish
if status is-interactive
# Commands to run in interactive sessions can go here
end
fish_add_path "/opt/homebrew/bin"
fish_add_path "/Applications/WezTerm.app/Contents/MacOS"
# fish_add_path ~/miniconda/bin
fish_add_path ~/miniforge3/bin
@mate-h
mate-h / android-setup.sh
Last active February 22, 2024 20:21
Downloads the Android Command Line tools for MacOS and installs the platform-tools (including ADB) package with the sdkmanager CLI. Useful for installing basic Android tooling and the Android Emulator without the need to install Android Studio or the entire SDK.
# install mise from https://mise.jdx.dev/getting-started.html
mise install java@17
mise global java@17
# install brew from https://brew.sh/
# sdkmanager, avdmanager
brew install --cask android-commandlinetools
echo "fish_add_path /opt/homebrew/share/android-commandlinetools/cmdline-tools/latest/bin" > ~/.config/fish/config.fish
@mate-h
mate-h / jsonvue-dark-theme.css
Last active February 14, 2024 06:40
JsonVue Custom One Pro Dark theme styles
:root {
--gray-900: #23272E;
--gray-800: #1E2227;
--gray-100: #ABB2BF;
--red: #E06B75;
--green: #98C379;
--orange: #D19A66;
--cyan: #56B6C2;
--magenta: #C678DD;
--blue: #61AFEE;
@mate-h
mate-h / freqtrade.fish
Last active February 10, 2024 04:04
Freqtrade CLI Fish completions
# Freqtrade Completions for Fish Shell
function __fish_freqtrade_needs_command
set cmd (commandline -opc)
if test (count $cmd) -eq 1
return 0
end
return 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;
@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 / 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
import { useFrame } from '@react-three/fiber'
import { MutableRefObject, useMemo, useRef } from 'react'
import {
BufferAttribute,
BufferGeometry,
FloatType,
HalfFloatType,
LinearFilter,
Mesh,
NearestFilter,