Skip to content

Instantly share code, notes, and snippets.

@NeatNit
NeatNit / israel_gtfs.md
Last active January 15, 2024 19:59
Understanding Israel MOT's GTFS format

Israel's GTFS for Bus Routes

Start page: https://www.gov.il/he/departments/general/gtfs_general_transit_feed_specifications
Includes a linked PDF that explains the formats in detail.

OSM wiki: https://wiki.openstreetmap.org/wiki/GTFS
GTFM standard reference: https://gtfs.org/schedule/reference/ (not really needed as the PDF explains everything)

Here's my understanding for the parts that are relevant for OSM import:

Firstly, files are downloaded via HTTPS in this link: https://gtfs.mot.gov.il/gtfsfiles/israel-public-transportation.zip

@NeatNit
NeatNit / Firefox jank.md
Last active February 14, 2023 19:03
List of ways Firefox sucks. Firefox isn't special; all browsers suck about equally.

Firefox Jank

Desktop (Linux)

  • Firefox supports smooth and precise scrolling as well as kinetic scrolling, but this feature is inexplicably disabled by default. The only way to enable it is to set the environment variable MOZ_USE_XINPUT2=1, but since a browser can be launched in a great many ways, the only way to guarantee it is to set that environment variable by default for the entire machine - e,g. in /etc/environment. This is bonkers. Why should the user pollute their environment with this hack? Why isn't this feature just enabled by default? A crapton of users are definitely just not aware that it exists.

  • Firefox displays tooltips on top of other windows, when the mouse isn't even over it:

    image

    This is after the mouse moved this way (red arrow):

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NeatNit
NeatNit / hook.lua
Last active April 4, 2017 19:00
render hooks reverse engineering
local gmod = gmod
local pairs = pairs
local isfunction = isfunction
local isstring = isstring
local IsValid = IsValid
if CLIENT_DLL then require( "draw" ) end
local draw = draw
local render = render