Skip to content

Instantly share code, notes, and snippets.

@hinell
hinell / Fix Broken EDID Guide.md
Last active March 7, 2024 04:18
Guide how to achieve better resolution with broken EDID. Two methods are used: xorg.conf config and kernel params.

Fix Broken EDID Guide

This guide outlines replacement of the broken EDID metadata file for the device in Linux Operating Systems.

Last-Modified: Sunday, April 11, 2021

• • •

@hinell
hinell / unicode-emoji-remove.sh
Created September 18, 2023 21:26
Remove uniocde symbols & emoji from a file; see hinell/dotfiles/bash-scripts for up-to date version
#!/usr/bin/env -S bash
# Title.......: unicode-emoji-remove.sh
# Summary.....: Unicode tool to strip emoji & icons from textual file
# Version.....: 1.0.0
# Created.....: September 18, 2023
# Authors.....: Alex A. Davronov <al.neodim@gmail.com> (2023-)
# Repository..: N/A
# Description.: Strip emoji & icons from textual file
# Thanks to Marc Durdin (https://stackoverflow.com/a/67495684)
# Usage.......: Use --help
@hinell
hinell / TypeScript is a mess.md
Last active November 25, 2023 11:04
We should stop using TypeScript. For real.

NOTS

Why you should stop using TypeScript?

Here is why:

  • Feature creep: devs constantly-introduce complex features, even completely unnecessary ones intentionally mixing instances & types
  • It also breaks backward compatibility often
  • Slow compilation & typechecking
  • Weird semantics
  • Typed System fails at overloading which brings performance in others languages
  • It has silly bugs
/********************
Name : SC.Tracks snippet
Version : 0.4.5
Created.......: Jan 9, 2019
Last-Modified : July 07, 2023
Description :
note: Created date actually is much ealier
The programm walks over tracks:
Tracks.nodes = [
1track
Source: https://edwilliams.org/sunrise_sunset_example.htm
Source:
Almanac for Computers, 1990
published by Nautical Almanac Office
United States Naval Observatory
Washington, DC 20392
Inputs:
day, month, year: date of sunrise/sunset
@hinell
hinell / README.md
Last active October 10, 2021 08:16
List & filter workspace cache folder; use for cleanup

VSCode Workspaces Storage Filter Script

Release date: Sat, October 09, 2021

The script is intended to taclke the issue of leaky workspaceStorage of Microsoft Visual Studio Code. See related issue on github: [VS Code#134532]

Usage

# list cache folders
@hinell
hinell / console-tab
Created July 22, 2021 22:09
Manage your tabs!
#!/usr/bin/env bash
# Title : console-tab
# Summary : Start dev environment. Supported platforms: Kubuntu 20.10
# Created-at : Wednesday, July 21, 2021
# Last-Modified : Thursday, July 22, 2021
# Repository : N/A
# Authors : Alex A. Davronov <al.neodim@gmail.com> (2021-)
# Description : TODO: Add description.
# Usage : Run $ .../console-tab usage
#
@hinell
hinell / Spread & Apply Max Items.js
Created July 20, 2020 20:56
Maximum number of items that can be safely passed into .apply(...) invocation
// Description: The code below fails in two major browsers due to exceeding number
// of argumnets that can be safely passed into `.apply(...)`
// invocation of the `test(...)` function.
(function(){
console.clear();
upperBound = {};
// Substruct 1 to let the magic happen
upperBound.Chrome = Math.pow(2, 16) + 55155;
upperBound.Firefx = Math.pow(2, 18) + 237857;
@hinell
hinell / list of state management tools.md
Last active December 5, 2019 14:11
Modern state management tools for JavaScript and TypeScript

COMPREHENSIVE MODERN LIST OF DATA STATE MANAGEMENT TOOLS

Updated: June 2019 Author: github@Hinell

TOOL DESCRIPTION
[setState][setState] Basic tool built in React library
[MobX][MobX] Simple, scalable state management.
[MobX-State-Tree][MobX-State-Tree] Model Driven State Management
[Redux][Redux] Predictable state container for JavaScript apps