Skip to content

Instantly share code, notes, and snippets.

View hustlestar's full-sized avatar
🐵
Focusing

Jack Ma hustlestar

🐵
Focusing
View GitHub Profile
@hustlestar
hustlestar / .wezterm.lua
Created April 23, 2026 11:13
wezterm windows config similar to ghostty on mac
-- ~/.wezterm.lua or %USERPROFILE%\.config\wezterm\wezterm.lua
-- Ghostty-style keybindings (mac-style splits) for WezTerm on Windows
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
-- ─── Shell ───
if wezterm.target_triple:find('windows') then
local ok = wezterm.run_child_process { 'where.exe', 'pwsh.exe' }
@hustlestar
hustlestar / kucoin_burning_drop_calculator.py
Created October 13, 2021 14:04
Calculating allocation and estimated gain from Kucoin Burning Drop event
import math
full_allocation_size = 1400000
allocated_asset_price_usdt = 0.2
staking_period_days = 20
max_stake_usdt = 3000
max_stake_eth = 1
max_stake_kcs = 270
@hustlestar
hustlestar / linkedin_auto_connect
Last active January 22, 2023 01:43
Script to add new connections on linkedin automatically.
//copy next 1 line to the browser console on the linkedin network page https://www.linkedin.com/mynetwork/
setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000);
//wait several minutes then copy all following lines to console
var currentSuccesfulConnections=0;
var totalConnections=0;
var totalInvitations=0;
var interestingConnections=0;
var inviteText="";
#mount shared drive
#mkdir vmshared
#sudo mount -t vboxsf vmshared vmshared
#install java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
java -version