Skip to content

Instantly share code, notes, and snippets.

View TomaszKlosinski's full-sized avatar

Tomasz Klosinski TomaszKlosinski

View GitHub Profile
@TomaszKlosinski
TomaszKlosinski / check_open_ports
Created November 30, 2023 10:04 — forked from adige/check_open_ports
Check open ports without netstat or lsof
declare -a array=($(tail -n +2 /proc/net/tcp | cut -d":" -f"3"|cut -d" " -f"1")) && for port in ${array[@]}; do echo $((0x$port)); done
@TomaszKlosinski
TomaszKlosinski / install_xelatex_on_mac.txt
Created February 1, 2024 13:28 — forked from taesiri/install_xelatex_on_mac.txt
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
brew install pandoc
brew tap homebrew/cask
brew cask install basictex
eval "$(/usr/libexec/path_helper)"
# Update $PATH to include `/usr/local/texlive/2020basic/bin/x86_64-darwin`
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install xelatex
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox