Skip to content

Instantly share code, notes, and snippets.

Avatar

Paulo Henrique Deléo paulodeleo

  • Curitiba - PR, Brazil
View GitHub Profile
@paulodeleo
paulodeleo / .tmux.conf
Last active Feb 16, 2021
Tmux configuration to enable mouse scroll and mouse panel select, taken from: http://brainscraps.wikia.com/wiki/Extreme_Multitasking_with_tmux_and_PuTTY
View .tmux.conf
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow mouse dragging to resize panes
set -g mouse-resize-pane on
# Allow mouse to select windows
@paulodeleo
paulodeleo / Serviços e programas gratuitos que uso.md
Last active Jan 13, 2021
Serviços e programas gratuitos que uso
@paulodeleo
paulodeleo / x360ce.ini
Created Dec 27, 2012
x360ce.ini for ps2 controller (through usb adapter) for Castle Crashers
View x360ce.ini
[Options]
UseInitBeep=1
Log=0
Console=0
DebugMode=0
InternetDatabaseUrl=http://www.x360ce.com/webservices/x360ce.asmx
InternetFeatures=1
InternetAutoload=1
AllowOnlyOneCopy=1
@paulodeleo
paulodeleo / mailer_one_liner.rb
Created Aug 5, 2020
Rails one liner for testing email from console
View mailer_one_liner.rb
class TestMailer < ActionMailer::Base; def test; mail from: 'sender@mail.com', to: 'recipient@mail.com', subject: 'Test e-mail subject', body: 'Test e-mail body'; end; end; TestMailer.test.deliver_now
@paulodeleo
paulodeleo / fixscroll.sh
Created Apr 20, 2019
Script to fix natural touchpad scroll direction for gnome based apps on XFCE4 (eg.: Xubuntu). A copy of https://gist.github.com/wjladams/1a7f37019e0b1b3c2c0be335142b1852
View fixscroll.sh
#!/bin/sh
# Find the amount by doign
# synclient | grep HorizScrollDelta
# synclient | grep VertScrollDelta
# And then simply negative that value for this
# Found at
# https://askubuntu.com/questions/690512/how-to-enable-natural-scrolling-in-xfce4/853262
# This is because, although xubuntu 18.04 has reverse scrolling option in touchpad
# settings, it doesn't really work, the setting does not cascade to gnome apps for some reason.
synclient HorizScrollDelta=-116
@paulodeleo
paulodeleo / myDell7559.xmodmap
Created Apr 20, 2019
My xmodmap based keyboard key remappings for Dell 7559 on linux to use a Lenovo-like layout
View myDell7559.xmodmap
!!! Load it using `xmodmap myDell7559.xmodmap` on login !!!
!!! Remaps pgup to delete !!!
keycode 112 = Delete
!!! Remaps num lock to home !!!
keycode 77 = Home
!!! Remaps numeric 7 to end !!!
keycode 79 = End
@paulodeleo
paulodeleo / Gestures.conf
Created Apr 20, 2019
My Gestures app config export for touch based input control of multimedia keys on Ubuntu (19.04)
View Gestures.conf
# Generated by Gestures 0.2.2 --> https://gitlab.com/cunidev/gestures
# Manual editing might result in data loss!
# Invalid lines
# Unsupported lines
# Swipe threshold (0-100)
View Default (Linux).sublime-keymap.json
// sublime.log_input(True)
// sublime.log_commands(True)
[
{ "keys": ["alt+f4"], "command": "exit" },
{ "keys": ["ctrl+alt+f4"], "command": "close_window" },
{ "keys": ["ctrl+'"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } },
// Comment on cce notebook - linux
{ "keys": ["control+q"], "command": "toggle_comment", "args": { "block": false } }
View Default (Windows).sublime-keymap.json
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+f11"], "command": "toggle_menu" }
]
@paulodeleo
paulodeleo / Raspberry pi test settings.txt
Last active Mar 15, 2018
Raspberry pi test settings
View Raspberry pi test settings.txt
# based on this article: https://www.linux-toys.com/?p=1153
# original pi settings
vm.swappiness = 60
vm.vfs_cache_pressure = 100
vm.dirty_background_ratio = 10
vm.dirty_ratio = 20
# test settings
sudo sysctl -w vm.swappiness=15