Skip to content

Instantly share code, notes, and snippets.

View zenixls2's full-sized avatar
😭

Zenix zenixls2

😭
View GitHub Profile
sudo apt install nvidia-driver-525 nvidia-dkms-525
sudo apt install ./cudnn-local-repo-ubuntu2004-8.9.0.131_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-ubuntu2004-8.9.0.131/cudnn-local-80259EFB-keyring.gpg /usr/share/keyrings/
sudo apt update
sudo apt install libcudnn8
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt update
sudo apt install -y nvhpc-23-3-cuda-multi
export LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/REDIST/math_libs/11.8/targets/x86_64-linux/lib/
@zenixls2
zenixls2 / test.py
Created March 29, 2023 07:04
sound to text example
#!/usr/bin/env python3
import numpy as np
import sounddevice as sd
import soundfile as sf
import whisper
import ffmpeg
#sd.default.device = [13, 13]
#device_list = sd.query_devices()
#print(device_list)
@zenixls2
zenixls2 / ubuntu
Last active March 17, 2023 09:11
modify screen settings from linux command line
sudo apt install ddcutil
sudo ddcutil detect
# Display 1
# I2C bus: /dev/i2c-11
# EDID synopsis:
# Mfg id: PHL
# Model: PHL 243S7
# Serial number: UHB1832019552
# Manufacture year: 2018
@zenixls2
zenixls2 / .vimrc
Created February 15, 2023 07:03
vimrc basic backup
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
runtime! debian.vim
" Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
Fractal Forecasting
Scalping
Alligator Analysis
Rate of Change Behavioral Analysis
AROON Data Displayer
RSI Indication
Time-Series Forecasting
Auto- and Moving Regression Methods
Single Trade:
- MAE
- MFE
- ETD
- Edge Ratio
- Alpha Loss
- Liquidity impact
- Transaction cost analysis
♪♪ ヽ(ˇ∀ˇ )ゞ
@zenixls2
zenixls2 / lib.rs
Last active November 15, 2019 10:15
fast slice transform
#![feature(untagged_unions)]
#[repr(C)]
struct FatPtr<T> {
pub data: *const T,
pub len: usize,
}
#[repr(C)]
union Repr<T> {
@zenixls2
zenixls2 / asyncio_review.py
Created May 31, 2018 10:56
play on async iteration (__aiter__, __anext__)
import asyncio
class XDD:
def __init__(self):
self.items = [1,2,3,4]
self.index = 0
async def __aiter__(self):
return self
@zenixls2
zenixls2 / proxy.go
Created October 24, 2017 08:48 — forked from a-kr/proxy.go
Golang reverse proxy
package main
import (
"log"
"net/http"
"net/http/httputil"
"encoding/base64"
)
func main() {