Skip to content

Instantly share code, notes, and snippets.

View ichernev's full-sized avatar

Iskren Ivov Chernev ichernev

  • Palo Alto, California, USA
View GitHub Profile
@ichernev
ichernev / andotp_reader.py
Created November 27, 2025 00:27
AndOTP encrypted file reader
#!/usr/bin/python3
# NOTE: Install pycryptodome, there is no AES in stdlib...
import json
import hashlib
import sys
import argparse
import io
from urllib.parse import quote
@ichernev
ichernev / cadastre_bg_conv.js
Created November 7, 2025 19:39
https://www.cadastre.bg/ polygon to geojson converter
/**
* Sample code to convert from https://www.cadastre.bg/ polygons to geojson for
* viewing on a standartized mapping software.
*/
var proj4 = require('proj4');
class Parser {
constructor(s) {
this.s = s;
@ichernev
ichernev / vcf_to_csv.py
Created November 6, 2025 23:13
Python script that converts VCF into CSV
# import vcf
# with open('contacts.vcf', 'r') as f:
# vcf_reader = vcf.Reader(f)
# i = 0
# for record in vcf_reader:
# print('{} {}'.format(i, record))
# i += 1
import json
import quopri

Moment 2.30.0

Bugfixes

  • #6128 [feature] Graceful handling of undefined locale name
  • #5554 [bugfix] Handle invalid mutations
  • #6193 [bugfix] weekyear setter handle dow
  • #5592 [bugfix] Stricter single digit date parsing
  • #5827 [bugfix] ts: toISOString function also return null
  • #5607 [bugfix] unify duration.valueOf and asMilliseconds
@ichernev
ichernev / moment-2.29.3.md
Created April 17, 2022 18:17
Moment 2.29.3 Changelog

moment 2.29.3 changelog

Bugfixes

  • #5995 [bugfix] Remove const usage

Other

  • #5990 misc: fix advisory link
# moment 2.29.2 changelog
This is security update, adressing
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
Locales with names containing forward slash `/` and backward slash `\\` are no
longer loaded from filesystem (they can still be used in locales which are
defined on the spot).
This might break your code, if you happen to package your own locales in

moment 2.25.0 changelog

new locales

  • #4957 [new locale] oc-lnc: Occitan
  • #5356 [new locale] zh-mo: Chinese (Macau)
  • #5271 d9913b26[new locale] en-in: English (India)
  • #5076 849f5c01[new locale] gom-deva: Add Konkani Devanagari
  • a585cb65[new locale] fil: Filipino, copied from tl-ph

locale updates

@ichernev
ichernev / moment-2.19.2.md
Created November 11, 2017 20:09
moment 2.19.2 changelog

moment 2.19.2 changelog

Bugfixes

  • #4255 [bugfix] Fix year setter for random days in a leap year, fixes #4238
  • #4242 [bugfix] updateLocale now tries to load parent, fixes #3626
@ichernev
ichernev / moment-2.19.0.md
Created October 10, 2017 09:17
moment 2.19.0 changelog

moment 2.19.0 changelog

NOTE: There are some changes in this release with questionable stability across the packaging/environment spectrum. Update with care.

Critical

React native 0.49+ crashes with dynamic requires. This is a workaround.

  • #4213 [critical] Rename dynamic require to avoid React Native crash
#!/bin/bash -x
set -e
set -o pipefail
REPO="moment/moment"
function json_escape(){
echo -n "$1" | python -c 'import json,sys; print json.dumps(sys.stdin.read())'
}