Skip to content

Instantly share code, notes, and snippets.

@raphaelbruno
raphaelbruno / install-bluetooth-sixaxis
Last active May 18, 2021 02:35
Install Sixaxis / DualShock 3 to run on bluetooth (Linux)
sudo apt-get install dialog pkg-config build-essential pyqt4-dev-tools libusb-dev libbluetooth-dev python-dbus -y
install bluez bluez-tools bluez-hcidump checkinstall libusb-dev libbluetooth-dev joystick pyqt4-dev-tools
wget https://github.com/RetroPie/sixad/archive/master.zip -O sixad-master.zip
unzip sixad-master.zip
cd sixad-master
make
sudo make install
cd ..
rm -rf sixad-master sixad-master.zip
@raphaelbruno
raphaelbruno / assetto-corsa-steam-install.md
Last active September 15, 2024 08:42
Assetto Corsa Linux Steam Install
@raphaelbruno
raphaelbruno / radeon-to-amdgpu
Last active July 8, 2021 15:30
Change radeon to amdgpu
# Set these configs
radeon.cik_support=0
amdgpu.cik_support=1
radeon.si_support=0
amdgpu.si_support=1
# Without GRUB (Pop!_OS...)
$ sudo kernelstub -a "radeon.cik_support=0"
$ sudo kernelstub -a "amdgpu.cik_support=1"
$ sudo kernelstub -a "radeon.si_support=0"
@raphaelbruno
raphaelbruno / cinnamon-toggle-projection-between-displays
Last active June 1, 2021 00:59
Cinnamon Toggle Projection Between Displays (xrand)
#!/bin/bash
# This script will toggle between (in this order): Laptop Mode, Projector Mode, Extended Mode and Mirrored Mode
RESOLUTIONS=("1366x768" "2560x1080")
EXTENDED_MODE_PRIMARY_INDEX=1
EXTENDED_MODE_PRIMARY_POSITION=1366x-120
MIRRORED_MODE_PRIMARY_INDEX=0
# List of connected monitors
CONNECTED_MONITORS=`xrandr | grep -P ' connected' | grep -o '^[^ ]*'`
@raphaelbruno
raphaelbruno / wine-instalation
Last active July 16, 2021 20:11
Wine Installation
# Wine (Last Version - It has bugs with some versions of the .Net)
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
sudo apt update
sudo apt install --install-recommends winehq-devel
# Wine 5.0.x
sudo apt install wine
@raphaelbruno
raphaelbruno / protontricks.md
Last active July 1, 2022 16:07
ProtonTricks

Protontricks Installation

  • You will need to install Winetricks
    sudo apt install winetricks
  • Install pipx
    sudo apt install python3-pip python3-setuptools python3-venv
    python3 -m pip install --user pipx

~/.local/bin/pipx ensurepath

@raphaelbruno
raphaelbruno / post-reveice
Created September 12, 2021 00:28
Hook post-reveice (git init --bare)
#!/bin/bash
APP=/var/www/html
echo "================= Git Checkout ==================="
GIT_WORK_TREE=${APP} git checkout -f
echo "Updated ${APP}"
echo "============== Delete Unused Files ==============="
rm ${APP}/README.md
#!/bin/bash
# ###########################################################
# Functions
# ###########################################################
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`