Skip to content

Instantly share code, notes, and snippets.

@plmi
plmi / call-api-by-name-2.bas
Last active June 16, 2024 22:15
Call API by Name by Cobein
'---------------------------------------------------------------------------------------
' Module : cCallAPIByName
' DateTime : 31/08/2008 19:40
' Author : Cobein
' Mail : cobein27@hotmail.com
' WebPage : http://www.advancevb.com.ar
' Purpose : Call APIs by name
' Usage : At your own risk
' Requirements: None
' Distribution: You can freely use this code in your own
@plmi
plmi / compile.sh
Created September 3, 2023 10:30
Compile LaTeX presentation
#!/bin/sh
biber presentation && \
pdflatex -shell-escape presentation.tex && pdflatex -shell-escape presentation.tex
@plmi
plmi / nfs-mount.ps1
Created August 26, 2023 20:12
Mount OpenMediaVault NFS share on Windows
Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart
New-PSDrive -PSProvider FileSystem -Name M -Root \\192.168.8.101\export\shared -Persist
choco install zoxide nvm 7zip.install pyenv-win git neovim starship vscode googlechrome powershell-core powertoys
@plmi
plmi / flop_benchmark.py
Last active October 31, 2022 20:48
FLOP Benchmark with numpy
#!/usr/bin/env python3
import time
import numpy as np
N = 4096
A = np.random.randn(N, N).astype(np.float32)
B = np.random.randn(N, N).astype(np.float32)
# number of multiplications
@plmi
plmi / Makefile
Last active November 12, 2023 14:09
Makefile to compile latex document with latexmk
PAPER=solution-1.tex
SHELL=/bin/zsh
# remove extension .tex from PAPER
# https://unix.stackexchange.com/a/460224
FILENAME := $(shell x='$(PAPER)'; echo "$${x%%.*}")
.PHONY: all clean watch
# use -shell-escape to use minted package
# use -bibtex for biblatex support