Skip to content

Instantly share code, notes, and snippets.

View tonybenoy's full-sized avatar
🦀

Tony Benoy tonybenoy

🦀
View GitHub Profile
@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 &
# 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 / 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
@tonybenoy
tonybenoy / Arch Linux ARM on Crostini.md
Last active February 8, 2023 12:49 — forked from baldrailers/Arch Linux ARM on Crostini.md
Arch Linux ARM on Crostini

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@tonybenoy
tonybenoy / chromebook-apk-updater.sh
Last active February 6, 2023 09:18
Install apps from Android device to chromebook
# Figure out your own way of syncing apps from
# an android device. I use google files and syncthings.
# Share the folder with linux. I've named it msapps
# I started it as a way to sync Microsoft apps
for apk in /mnt/chromeos/MyFiles/Downloads/msapps/*.apk
do
adb install $apk
done

Keybase proof

I hereby claim:

  • I am tonybenoy on github.
  • I am tonybenoy (https://keybase.io/tonybenoy) on keybase.
  • I have a public key whose fingerprint is 84CC 4B4B 3CBE C3E1 9B56 AE3F 392A F228 0089 9E51

To claim this, I am signing this object:

Clone a hdd using dd rescue. Faster?
sudo ddrescue -r 0 -v -v -n /dev/sdd1 /dev/sdc rescue.map --force --min-read-rate=1MB --skip-size=1MB -c 16
@tonybenoy
tonybenoy / .vimrc
Created May 7, 2020 21:27 — forked from miguelgrinberg/.vimrc
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
let need_to_install_plugins = 1
endif
call plug#begin()
anycast.slackware.in
bind 2a07:1c44:4800::1
log logs/mysite.log
tls {
dns vultr
}
proxy / localhost:81 localhost:82 localhost:83 localhost:84 localhost:85 {
}
@tonybenoy
tonybenoy / hardware_token.md
Last active June 8, 2019 19:58 — forked from sandys/hardware_token.md
Registering a hardware token