Skip to content

Instantly share code, notes, and snippets.

View iiiGerardoiii's full-sized avatar
💭
jdimsa

Gerardo iiiGerardoiii

💭
jdimsa
  • Monterrey, NL, México
View GitHub Profile
@iiiGerardoiii
iiiGerardoiii / space_speed.lua
Last active August 24, 2025 09:23
This MPV script changes playback speed to 2x while the spacebar is held for 0.5 seconds and reverts it to normal speed when the spacebar is released. If released earlier, it toggles pause/play as default behavior.
-- This script changes playback speed to 2x while the spacebar is held for 0.5 seconds
-- and reverts it to normal speed when the spacebar is released. If released earlier,
-- it toggles pause/play as default behavior.
local mp = require 'mp'
-- Variables to track state
local is_space_held = false
local speed_timeout = nil
local pause_triggered = false
@iiiGerardoiii
iiiGerardoiii / crontab
Created September 10, 2018 07:32
To run OYSTER and ZNC on boot
@reboot /home/pi/pepe/script.sh
*/5 * * * * /usr/local/bin/znc >/dev/null 2>&1
[Unit]
Description=The Lounge IRC client
After=thelounge.service
[Service]
Type=simple
ExecStart=/home/pi/.yarn/bin/thelounge start
User=pi
Group=pi
Restart=on-failure
^MButton::DllCall("SystemParametersInfo", Int,113, Int,0, UInt,10, Int,2)
!MButton::DllCall("SystemParametersInfo", Int,113, Int,0, UInt,20, Int,2)
@iiiGerardoiii
iiiGerardoiii / style
Last active December 29, 2023 19:53
css config for thelounge
.irc-bold {
text-shadow: 0 0 2px;
font-weight: 400;
}
#windows #form, .messages .msg, .userlist {
font-family: "fixedsys excelsior beta","hack",roboto;
font-size: 16px;
-moz-osx-font-smoothing: grayscale;
}
@iiiGerardoiii
iiiGerardoiii / Default (OSX).sublime-keymap
Last active August 15, 2018 14:41
Colemak keybinds for Vintage mode on Sublime Text
[
{ "keys": ["m"], "command": "enter_insert_mode",
"context":
[
{"key": "setting.command_mode"},
{"key": "selection_empty"}
]
},
{ "keys": ["M"], "command": "enter_insert_mode", "args":
@iiiGerardoiii
iiiGerardoiii / Edge-like scrolling on Firefox
Last active March 31, 2024 03:40
Edge-like scrolling on Firefox
general.smoothScroll.currentVelocityWeighting: 0
general.smoothScroll.mouseWheel.durationMaxMS: 150
general.smoothScroll.stopDecelerationWeighting; 0.82
mousewheel.min_line_scroll_amount: 25
@iiiGerardoiii
iiiGerardoiii / userChrome.css
Last active August 29, 2020 06:59
Firefox chrome folder
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
#PersonalToolbar{
--uc-bm-height: 21px; /* Might need to adjust if the toolbar has other buttons */
--uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
/* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
--uc-autohide-toolbar-focus-rotation: 0deg; /* urlbar is focused */
#
# weechat.conf -- weechat v1.0.1
#
[debug]
[startup]
command_after_plugins = ""
command_before_plugins = ""
display_logo = on
# Turn on 256 color support...
if [ "x$TERM" = "xxterm" ]
then
export TERM="xterm-256color"
fi