Skip to content

Instantly share code, notes, and snippets.

View zeyus's full-sized avatar
☠️
Simulating the universe

zeyus zeyus

☠️
Simulating the universe
View GitHub Profile
@zeyus
zeyus / UniOneDrive.fish
Created July 7, 2026 08:52
Uni mounts (onedrive + ERDA) with RClone - finally without constant freezing of dolphin
#!/usr/bin/env fish
echo "Mounting OneDrive"
# mounts configured with rclone
rclone mount --vfs-cache-mode full --vfs-cache-max-age 336h --vfs-cache-max-size 50G --dir-cache-time 336h --async-read=true --buffer-size=32M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 2G --vfs-refresh OneDriveAU:/ /home/zeyus/Documents/OneDriveAU/ --daemon
echo "Mounting Sharepoint"
rclone mount --vfs-cache-mode full --vfs-cache-max-age 336h --vfs-cache-max-size 50G --dir-cache-time 336h --async-read=true --buffer-size=32M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 2G --vfs-refresh SharePointPhD:/ /home/zeyus/Documents/SharePointAU/ --daemon
echo "Mounted OneDriveAU and SharePointAU to ~/Documents/"
@zeyus
zeyus / karchive@5.115.rb
Last active January 28, 2026 15:27
Homebrew ki18n formula
class KarchiveAT5115 < Formula
desc "Reading, creating, and manipulating file archives"
homepage "https://api.kde.org/frameworks/karchive/html/index.html"
license all_of: [
"BSD-2-Clause",
"LGPL-2.0-only",
"LGPL-2.0-or-later",
any_of: ["LGPL-2.0-only", "LGPL-3.0-only"],
]
@zeyus
zeyus / latency_plot.R
Created June 18, 2025 11:15
FSR -> Photodiode latency data analysis
library("conflicted")
library("tidyverse")
# Define data sources with file paths and names
data_sources <- list(
list(
file_path = "timing_log_simplified_5091.csv",
name = "iPadM3Pro|Flutter|Comprehensive"
),
@zeyus
zeyus / README.md
Last active April 2, 2025 11:38
XDF viewer and CSV exporter GUI python script

Python XDF file explorer and exporter

image

  • step 1: Install python from : https://www.python.org/downloads/
    • you may need to restart your PC to make the commands available
  • step 2 (only required if you see a message about missing packages / imports): install the required libraries using the command (in the terminal) pip
    • pip install pyxdf pandas matplotlib
  • step 3: download the explore-xdf.py file from this gist
@zeyus
zeyus / README.md
Last active May 17, 2024 12:58
Terminal realtime plotting tool for neural network training stats (or other arbitrary data)

image

Requirements

  • ansi-escapes
  • PyGnuplot
  • tqdm (optional, for progress bar)
@zeyus
zeyus / save_svg_and_png_from_csv.py
Created April 26, 2024 12:23
Read in the collected data from the drawing experiment, display information about completed trials and save SVGs and PNGs
import csv
import sys
# pip install cairosvg
from cairosvg import svg2png
maxInt = sys.maxsize
while True:
# decrease the maxInt value by factor 10
@zeyus
zeyus / YTLongForm.user.js
Last active January 2, 2026 08:59
Mark + add a border around youtube thumbnails based on video length, disable shorts: Violentmonkey / Greasemonkey / userscript
// ==UserScript==
// @name Long Videos are Best Videos
// @namespace zeyus
// @match https://www.youtube.com/*
// @grant GM.registerMenuCommand
// @grant GM.getValues
// @grant GM.setValues
// @inject-into auto
// @version 2.3
// @author zeyus
@zeyus
zeyus / lsnl.R
Last active December 18, 2023 13:30
Least squares non-linear estimate in R
library("R.matlab")
library("tidyverse")
library("pracma")
library("ggforce")
coord_data <- readMat("cirkel300.mat")
tbl <- as_tibble(list(X=coord_data$X[,1], Y=coord_data$Y[,1]))
# center the data
# tbl$X <- tbl$X - mean(tbl$X)
@zeyus
zeyus / fss.R
Last active December 16, 2023 13:55
Quick visual inspection of firearm suicide and homicide data by year/state
# quick and dirty visual analysis of year on year by state
# Firearm_suicide_homicide_dataset.csv
# source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/QVYDUD
library(tidyverse)
# Firearm Data Codebook,,
# ,,
# Variable Name,Variable Description,Source
# state,State name,
@zeyus
zeyus / README.md
Last active October 10, 2023 14:16
QT5 / MNE / Interactive GUI on UCloud