Skip to content

Instantly share code, notes, and snippets.

View Yrds's full-sized avatar
⌨️
Keyboard > mouse

Yuri dos Santos Yrds

⌨️
Keyboard > mouse
View GitHub Profile
@Yrds
Yrds / rastreio.sh
Last active November 23, 2018 15:02
Script simples que retorna o estado atual de um objeto dos correios. Uso: "./rastreio.sh CODIGO"
#!/bin/bash
cd /tmp/
codigo=$1
if [ -z $1 ]; then
··echo -e "ERRO: É preciso inserir um código de rastreio\nExemplo: rastreio.sh PR112318237BR"
··exit
fi
URxvt.background: rgb:00/00/00
URxvt.font: xft:monospace:pixelsize=10
URxvt.letterSpace: -1
Xft.antialias: true
URxvt.foreground:rgb:A/A/A
URxvt.scrollBar:off
@Yrds
Yrds / controles.sh
Last active January 20, 2017 16:27
#!/bin/sh
#SCRIPT TO DETECT MULTIPLE CONTROLLERS(BASED ON GREP AT LINE #6) AND PASS TO XBOXDRV
############ DO NOT USE THIS WITH A ORIGINAL XBOX GAMEPAD PLUGGED IN, YOU CAN PLUG AFTER RUNNING THE SCRIPT ############
set -e
config=/home/yuri/config.xboxdrv
joysticks=$(ls /dev/input/by-path/ | grep event-joystick)
[xboxdrv]
dpad-as-button=true
trigger-as-button=true #If your "Trigger" is a button
#evdev = /dev/input/your-device-event
evdev-grab=true
mimic-xpad=true
# Workaround fix to inverted axis from evdev devices emulating X360 gamepads