Skip to content

Instantly share code, notes, and snippets.

View balazsbohonyi's full-sized avatar

Bohonyi Balazs - Zsolt balazsbohonyi

View GitHub Profile
@balazsbohonyi
balazsbohonyi / jetbrains_trial_reset.py
Created July 19, 2025 18:10
Jetbeans Trials reset
#!/usr/bin/env python3
"""
JetBrains Trial Reset Tool
A Python implementation that resets trial periods for JetBrains IDEs
"""
import os
import platform
import subprocess
import shutil
@balazsbohonyi
balazsbohonyi / readme.md
Last active April 9, 2024 22:33
'more' in Git Bash

Add an alias for more in .bashrc:

alias more=/proc/cygdrive/c/Windows/System32/more.com

...and then you can use it like this in Git Bash:

cat large_file | more

To increase less's screen width in Git Bash, try this: git config --global core.pager "env -u COLUMNS less"

@balazsbohonyi
balazsbohonyi / readme.md
Last active March 29, 2024 01:16
The best Windows utility for Win11
@balazsbohonyi
balazsbohonyi / node_create_a_redirect_server.md
Last active July 19, 2025 17:28 — forked from leommoore/node_create_a_redirect_server.md
Create a redirect server in Node.js

Create a redirect server in Node.js

'use strict'

var http = require('http');

var mappings = {
 g: 'http://www.google.com'

I need to geotag every photo from trip to .gpx track, but GPX Logger accidentaly stopped. Luckly, i has turned on Google location history.

  1. Takeout location history from google.
  2. Extract .json file
  3. trigger the following commands
git clone https://github.com/Scarygami/location-history-json-converter.git

py location-history-json-converter-master/location_history_json_converter.py -f gpx -s 2017-05-06 -e 2017-05-07 "Takeout/Location History/Records.json" "Takeout/Location History/Records.gpx"
@balazsbohonyi
balazsbohonyi / businessDays.js
Created August 8, 2013 18:55
Adding/Subtracting Business Days in Javascript (extends the native Date Javascript object)
Number.prototype.mod = function(n) {
return ((this%n)+n)%n;
}
// support for adding/subtracting business days for Javascript dates
Date.prototype.addBusinessDays = function(days) {
days = parseInt(days);
var wks = Math.floor(days/5);
var dys = days.mod(5);
var dy = this.getDay();