Skip to content

Instantly share code, notes, and snippets.

View georgiee's full-sized avatar
👻
Ghosting github.com since a while

Georgios Kaleadis georgiee

👻
Ghosting github.com since a while
View GitHub Profile
+ my line
- other line
@georgiee
georgiee / experiment.rb
Created February 8, 2024 07:50
Diff/Challenges ActiveRecord Playground
# idea to tinker around with active records with an in memory db from here:
# https://makandracards.com/makandra/32401-activerecord-how-to-use-activerecord-standalone-within-a-ruby-script
# Run this script with `$ ruby my_script.rb`
require 'sqlite3'
require 'active_record'
require 'paper_trail'
# Use `binding.pry` anywhere in this script for easy debugging
require 'pry'
@georgiee
georgiee / README.md
Last active September 15, 2023 08:28
Browser Localization Issues with input[type=numeric]

Intro

Questions to answer:

  • How does a numeric input handle locales?
  • How can I determine the output?
  • How can I change it?

Innocent questions but it's a wild ride.

Description

@georgiee
georgiee / README.md
Created June 20, 2022 14:13
web component lite for react: isolate css & dom (shadow dom enhancement)

I'm building a React widget where I don't control the environment. I want to make sure that no css bleeds into my widget. Instead of delviering my component as a web component I though of the underlying shadow dom standard to render react directly into a shadow dom (together with any styles emitted from styled components).

Works pretty good. Idea is from https://www.wpeform.io/blog/render-react-app-shadow-dom-styled-components/ which I found while searching for some prior art of this approach.

@georgiee
georgiee / howto-google-photos-dsm-synology-photos-exif-date.md
Last active July 13, 2021 06:29
google photos takeout, dsm synology photos, exiftool DateTimeOriginal & PhotoTakenTimeTimestamp

What

After a takeout with Google Photos any file taken with your own device should contain the correct time. But photos sent from other people, created with Lightroom or very old files might have a stripped date field. Google Photos usually adds a date from the date it was uploaded. You want to have at least that date from Google, otherwise all files you import to Synology Photos will clump together at the date of the indexation.

That's also what most people are doing but they think Google stripped the date from their files during the Takeout. Most files should be fine though, depending on your specific photo collection of course.

My current takeout size is 100GB and I didn't have that much space left while I have plenty of disk space on my synology.

Ok maybe this time it works.

2020-05-20

  • ACL Implementation based on casbin. For Frontend but data contract enforcement can be expanded to backend to. Util for disabled & control removal. Directive for matching template adjustments.
  • Alpha version + Changelog for initial development works pretty good
  • Nx Workspace vs. Yarn Workspace. Wanted Yarn so heavily but after months Nx won. Problems with multiple rxjs dependencies, files in node_modules when node resolution is not used (e.g. ivy angular) caused many problems
  • Microfrontend Abstraction with a data contract (resources/state) & ACL support to separate it from any subsystem that can deliver the workflow management (routing/store etc)
  • Journal to enable introspection of available Microfrontends
@georgiee
georgiee / sdr-basics.md
Last active December 22, 2019 18:26
SDR

SDR Software: SdrDX (https://fyngyrz.com/?p=915), CubicSDR

rtl sdr range: 500 kHz - 1.75 GHz.

Cubic SDR LSB + Fldigi = decode data (tones) into text or even fax (Op Mode / WEFAX / WEFAX-IOC576)

Time Signal DCF77 (77khz, out of range)

@georgiee
georgiee / spec.ts
Last active December 8, 2018 17:25
One Angular Test can explain asynchronicity in Angular
it('setTimeout & tick & flushMicrotasks', fakeAsync(() => {
let state = [];
// add to the micro task queue — will be the first thing executed after this script block is done
Promise.resolve().then(function() {
state.push('promise result');
});
// add to the task queue — will be executed after this task and when the micro task queue is emptied
@georgiee
georgiee / conferences.md
Last active December 8, 2018 18:14
conferences list

to be grown organic.

2018

Dachfest Month: Nov Location: Munich https://dachfest.com/

FITC Web Unleashed Month: Feb

@georgiee
georgiee / README.md
Last active October 1, 2018 15:13
Phising Website Scripts "tradeit.cash"