Skip to content

Instantly share code, notes, and snippets.

View zenixls2's full-sized avatar
😭

Zenix zenixls2

😭
View GitHub Profile
@zenixls2
zenixls2 / mamba.sh
Created May 6, 2025 06:43
mamba forge install
name=Miniforge3-$(uname)-$(uname -m).sh
wget "https://github.com/conda-forge/miniforge/releases/latest/download/$name"
bash $name -b -p ~/mambaforge
~/mambaforge/bin/mamba init bash
rm $name
@zenixls2
zenixls2 / etc keyd default.conf
Created December 9, 2024 04:32
keychron keyd mapping 68%
[ids]
*
[main]
# Maps capslock to escape when pressed and control when held.
capslock = `
shift.capslock = ~
pyenv exec python -m venv venv
https://github.com/joelowj/awesome-algorithmic-trading
https://github.com/hkirat/Algorithmic-Resources
https://github.com/quantopian/pyfolio/blob/master/pyfolio/tears.py
https://github.com/quantopian/research_public/blob/master/drafts/Measures%20of%20Dispersion.ipynb
@zenixls2
zenixls2 / main.py
Created August 29, 2024 03:16
prophet example
import os
import datetime
import pandas as pd
from prophet import Prophet
pd.set_option("display.max_columns", None)
pd.set_option("display.max_rows", None)
from pandas_datareader import data as pdr
import yfinance as yfin
@zenixls2
zenixls2 / Message dump
Created April 19, 2024 05:41
Disable miniapp swipe close action
Answer to a question from the workshop:
This snippet here helps to disable the ability to close a mini app on a down swipe
body {
height: 100vh;
overflow: hidden;
}
.container {
@zenixls2
zenixls2 / .vimrc
Last active January 12, 2024 06:59
tabby code ML in MacOS
filetype plugin indent on
call plug#begin()
Plug 'TabbyML/vim-tabby'
call plug#end()
@zenixls2
zenixls2 / 20240110.md
Last active January 10, 2024 07:48
note

Backend (python)

  • flask web app
    • file upload handling
    • read/write DB (using sqlalchemy)
    • spawn langchain jobs
    • serve frontend's static web page.
  • sqlalchemy (ORM)
  • mysql
  • langchain
@zenixls2
zenixls2 / readme.md
Created August 23, 2023 08:45
OpenSSH server in windows
  1. Settings -> Apps and Features -> Optional Features -> Openssh Server Install
  2. Open Admin Powershell
  3. Run the following command in the shell to open port 22.
netsh advfirewall firewall add rule name="sshd" dir=in action=allow protocol=TCP localport=22
  1. Run the following command in the shell to start sshd service
Start-Service sshd

>```

@zenixls2
zenixls2 / .vimrc
Last active May 19, 2023 02:49
vimrc for c++/golang/rust
runtime! debian.vim
if has("syntax")
syntax on
endif
if filereadable("/etc/vim/vimrc.local")
source "/etc/vim/vimrc.local"
endif