Skip to content

Instantly share code, notes, and snippets.

View Kristinita's full-sized avatar

Саша Черных Kristinita

View GitHub Profile
@marcpinet
marcpinet / README.md
Last active July 8, 2024 14:31
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

@nemchik
nemchik / console.log
Last active February 22, 2024 09:13
browser-update with browserslist
{
uc: '12.12',
a: '100',
c: '100',
e: '100',
f: '91',
i: '11',
ios: '12.2',
o_a: '64',
o: '82',
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active July 12, 2024 23:04
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

  • SC1000 $ is not used specially and should therefore be escaped.
  • SC1001 This \o will be a regular 'o' in this context.
  • SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
  • SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  • SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
  • SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
  • SC1009 The mentioned parser error was in ...
  • SC1010 Use semicolo
@tablacus
tablacus / focustreeview.js
Created December 24, 2019 13:46
Focus tree view - Tablacus Explorer
FV.TreeView.Focus();
return S_OK;
@tablacus
tablacus / switch_list_details.js
Created December 13, 2018 14:07
Switch List and Details - Tablacus Explorer
FV.CurrentViewMode = FV.CurrentViewMode == FVM_LIST ? FVM_DETAILS : FVM_LIST;
var FV = GetFolderView(Ctrl, pt);
FV.IconSize = 19;
@tablacus
tablacus / autocolumnssize.js
Created May 10, 2018 22:14
Auto columns size - Tablacus Explorer
FV.CurrentViewMode(4,16);
setTimeout(function()
{
FV.Columns ='"System.ItemNameDisplay" -2 "System.DateModified" -2 "System.Size" -2 "System.ItemTypeText" -2';
}, 99);
@Guerra24
Guerra24 / win10-context-menus.css
Last active October 3, 2023 00:17
Self-contained CSS for context menus. For the updated/completed theme please use: https://github.com/Guerra24/Firefox-UWP-Style
menupopup {
-moz-appearance: none !important;
padding: 8px 2px 8px 2px !important;
background-color: #2B2B2B !important;
border: 1px #A0A0A0 solid !important;
min-width: 280px !important;
}
menuseparator {
-moz-appearance: none !important;
border: none !important;
@tablacus
tablacus / MoveSelectedItemsToParent.js
Created September 5, 2017 12:49
Move selected items to the parent folder
var FV = GetFolderView(Ctrl, pt);
var Selected = FV.SelectedItems();
if (Selected) {
var oDest = sha.NameSpace(fso.GetParentFolderName(api.GetDisplayNameOf(FV, SHGDN_FORPARSING)));
if (oDest) {
oDest.MoveHere(Selected, FOF_ALLOWUNDO);
}
}