Skip to content

Instantly share code, notes, and snippets.

@denilsonsa
denilsonsa / 51-these-are-not-joysticks.rules
Last active August 6, 2022 15:51
Fix for keyboard/mouse/tablet being detected as joystick in Linux — Moved to https://github.com/denilsonsa/udev-joystick-blacklist
#
# ███╗ ███╗ ██████╗ ██╗ ██╗███████╗██████╗ ████████╗ ██████╗
# ████╗ ████║██╔═══██╗██║ ██║██╔════╝██╔══██╗ ╚══██╔══╝██╔═══██╗
# ██╔████╔██║██║ ██║██║ ██║█████╗ ██║ ██║ ██║ ██║ ██║
# ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║ ██║ ██║
# ██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗██████╔╝ ██║ ╚██████╔╝
# ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝╚═════╝ ╚═╝ ╚═════╝
#
# ╔═════════════════════════════════════════════════════════════════╗
# ║ https://github.com/denilsonsa/udev-joystick-blacklist ║
@denilsonsa
denilsonsa / README.md
Last active May 1, 2024 11:55
ets2-mobile-route-advisor - Map demo using Leaflet

ets2-mobile-route-advisor - Map demo using Leaflet

This Gist is outdated. Look at denilsonsa/ets2-stuff for the most recent code.

@denilsonsa
denilsonsa / telegram-tg-links-to-web-tg.user.js
Last active July 25, 2026 23:35
Telegram tg:// to web+tg:// — user-script, AKA greasemonkey script.
@denilsonsa
denilsonsa / README.md
Last active February 12, 2025 11:56 — forked from noromanba/README.md
add permanently HEAD links on Gist for UserScript
@denilsonsa
denilsonsa / README.md
Last active May 1, 2024 11:54
Help setting up ETS2 for 2 asymmetrical displays with nvidia GTX 550
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@denilsonsa
denilsonsa / README.md
Last active March 20, 2016 06:21
Videosub hack to play embedded .SRT subtitles in HTML5 video
@denilsonsa
denilsonsa / README.md
Last active December 17, 2024 04:39
Embed VTT subtitles into HTML

Embed VTT subtitles into HTML

Objective

I have a video file on my local disk. I also have some subtitles (in HTML5's [WebVTT][] format).

I want to create an HTML file to play that video with subtitles, all from the local filesystem.

Problem

@denilsonsa
denilsonsa / moneylog_convert.py
Created June 14, 2016 10:36
moneylog_convert.py que usei até final de 2014
#!/usr/bin/env python2
# -*- coding: utf8 -*-
from __future__ import unicode_literals
import sys
from datetime import date, timedelta
import re
@denilsonsa
denilsonsa / 9verdades1mentira.ipynb
Last active May 1, 2024 11:52
9 verdades e 1 mentira, testadas usando pythonlogica
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.