Skip to content

Instantly share code, notes, and snippets.

View tonybenoy's full-sized avatar
🦀

Tony Benoy tonybenoy

🦀
View GitHub Profile
@tonybenoy
tonybenoy / r-setup.sh
Last active October 17, 2023 08:54
Setting up R for Ubuntu codespaces
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libfontconfig1-dev
sudo apt-get install libharfbuzz-dev libfribidi-dev
sudo apt-get install libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
# Gentoo ARM on Crostini
I got Gentoo ARM installed on a Lenovo Chromebook Duet!
## 0. Before we begin
- Enable **Linux development environment** in Chrome OS's settings
- Get it running
@tonybenoy
tonybenoy / multimonitor.sh
Created December 19, 2023 18:41
A simple script that uses Weylus to create a nother virtual monitor and use it as a second screen from linux. Requires Weylus and nohup.
xrandr --newmode $(gtf 1920 1080 60 | grep -o '"1920x1080_60.00" .*' | sed 's/^\(.*\)"\(.*\)" \(.*\)$/\2 \1 \3/') && xrandr --addmode VIRTUAL1 "1920x1080_60.00" && xrandr --output VIRTUAL1 --mode "1920x1080_60.00"
nohup weylus --no-gui &