Skip to content

Instantly share code, notes, and snippets.

View eduardflorinescu's full-sized avatar

Eduard Florinescu eduardflorinescu

View GitHub Profile
@eduardflorinescu
eduardflorinescu / html2json.rb
Created June 14, 2024 07:23 — forked from masutaka/html2json.rb
Parse html and print json for Elasticsearch Bulk API
#!/usr/bin/env ruby
require 'json'
require 'oga'
require 'time'
action = {
'index' => {
'_index' => 'chalow',
'_type' => 'article'
@eduardflorinescu
eduardflorinescu / README.md
Created November 24, 2021 12:50 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that:

  1. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
  2. To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.