Skip to content

Instantly share code, notes, and snippets.

View vicente-gonzalez-ruiz's full-sized avatar

Vicente González Ruiz vicente-gonzalez-ruiz

View GitHub Profile
# Setting up a Raspberry Pi as a bridged wireless access point
# https://www.raspberrypi.org/documentation/configuration/wireless/access-point-bridged.md
# Update
sudo apt-get update
sudo apt-get upgrade
# Disable bluetooth
https://gist.github.com/vicente-gonzalez-ruiz/a330f19fda79d8e4b818204d5224c8f0
# Activated device? By default, the RPi has the bluetooth activated.
# Activated service?
systemctl status bluetooth
# Pair a device
sudo bluetoothctl
scan on
pair <the listed device>
quit
sudo apt-get install ssh # Possiblely already done
sudo systemctl enable ssh
sudo systemctl start ssh
wget https://downloads.raspberrypi.org/raspbian_lite_latest
# Boot and login (pi, raspberry).
# Configure keyboard
sudo dpkg-reconfigure keyboard-configuration
sudo setupcon
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / epub_to_mobi.txt
Created May 12, 2020 18:01
epub to mobi (kindle)
# Compile https://aur.archlinux.org/packages/kindlegen/
# Download and:
makepkg -s
# Convert
kindlegen book.epub -o book.mobi
# Send the file using <user>@kindle.com
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / emacs_elpy.md
Last active February 17, 2023 07:42
Emacs + elpy
# https://realpython.com/emacs-the-best-python-editor/
# https://melpa.org/#/getting-started
cat > $HOME/.emacs << EOF
;; ===================================
;; MELPA Package Support
;; ===================================
;; Enables basic packaging support
(require 'package)
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / install_retroarch.sh
Last active April 25, 2020 17:23
Install retroarch in Manjaro
# https://snapcraft.io/install/retroarch/manjaro#install
sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install retroarch
retroarch
# Install cores
# Remove
sudo snap remove retroarch
retroarch -v -L ./snap/retroarch/current/.config/retroarch/cores/mame2003_libretro.so recalbox/roms/mame/A/atetris.zip
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / mount_recalbox.sh
Last active April 25, 2020 10:37
How to mount the recalbox filesystem using Samba
# mkdir recalbox
sudo mount -t cifs //recalbox.local/share recalbox/ -o user=samba,password=password,uid=1000,gid=1001,rw