Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
☕︎

Elad Karako eladkarako

💭
☕︎
View GitHub Profile
@eladkarako
eladkarako / SM-A037F_ILP_A037FXXU1AUH3_A037FOJM1AUH3_A037FXXU1AUH3_A037FXXU1AUH3 -- A03s -- Android 11 - content of default.prop prop.default from stoke recovery.img .prop
Created Sep 29, 2022
SM-A037F_ILP_A037FXXU1AUH3_A037FOJM1AUH3_A037FXXU1AUH3_A037FXXU1AUH3 -- A03s -- Android 11 - content of default.prop prop.default from stoke recovery.img .prop
View SM-A037F_ILP_A037FXXU1AUH3_A037FOJM1AUH3_A037FXXU1AUH3_A037FXXU1AUH3 -- A03s -- Android 11 - content of default.prop prop.default from stoke recovery.img .prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.actionable_compatible_property.enabled=true
ro.postinstall.fstab.prefix=/system
ro.oem_unlock_supported=1
ro.secure=1
security.perf_harden=1
ro.adb.secure=1
ro.allow.mock.location=0
@eladkarako
eladkarako / javascript_human_readable_bytes_size.js
Created Sep 29, 2022
javascript_human_readable_bytes_size.js
View javascript_human_readable_bytes_size.js
function human_readable_bytes_size(bytes, decimals, sap) {
decimals = "number" === typeof decimals ? decimals : 2;
sap = "string" === typeof sap ? sap : "";
var
size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
, factor = Math.floor( (String(bytes).length - 1) / 3 )
;
bytes = bytes / Math.pow(1024, factor); //calc
View crc32.js
var crc_table = [0x0, 0x77073096, 0xee0e612c, 0x990951ba, 0x76dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0xedb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x9b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x1db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x6b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0xf00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x86d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0
@eladkarako
eladkarako / RollerCosterTycoon2 with OpenRCT2 for Windows. guide, fixes, and making it portable.md
Last active Sep 28, 2022
RollerCosterTycoon2 with OpenRCT2 for Windows. guide, fixes, and making it portable
View RollerCosterTycoon2 with OpenRCT2 for Windows. guide, fixes, and making it portable.md
  1. every archive extraction here can be done by native Windows handling of ZIP file, which is perfectly fine, but if you want a 7zip, you can use https://github.com/eladkarako/7z_bundle/archive/refs/heads/master.zip , you only need the amd64 folder and you can place anywhere. 7zFM.exe can be used to register file-types and add context-menu for Windows (should be launched as administrator).

  1. download daily-build of OpenRCT2 1.1. open https://github.com/OpenRCT2/OpenRCT2/actions/workflows/ci.yml
    1.2. click the top possible workflow, that finished successfully (green check-mark), it will navigate to new page, scroll to the bottom of the page.

    1.3. click the Windows x64 artifact, it will download a zip file.
@eladkarako
eladkarako / msi_extractor.cmd
Last active Sep 27, 2022
extract msi files to a folder using nothing but msiexec.exe. has tricks to work-around long paths, meaningful exit codes and extended log file (written to temp folder). useful for creating administrative installations or preparing slipstream setups. or just to extract files. does not actually install anything
View msi_extractor.cmd
@echo off
:: you can also add a nice context-menu entry for right-clicking .msi files.
::---------------------------------------------------------------------------
::Windows Registry Editor Version 5.00
::
::[HKEY_CLASSES_ROOT\Msi.Package\shell\msi_extractor]
::"Icon"="%SystemRoot%\\System32\\msiexec.exe,0"
::@="MSI Extractor"
::
::[HKEY_CLASSES_ROOT\Folder\shell\msi_extractor\command]
@eladkarako
eladkarako / msiexec exit codes.tsv
Created Sep 27, 2022
msiexec exit codes, msiexec error codes, tsv, from https://learn.microsoft.com/en-us/windows/win32/msi/error-codes - first and second column switched so first column is the exit code number.
View msiexec exit codes.tsv
Value Error code Description
0 ERROR_SUCCESS The action completed successfully.
13 ERROR_INVALID_DATA The data is invalid.
87 ERROR_INVALID_PARAMETER One of the parameters was invalid.
120 ERROR_CALL_NOT_IMPLEMENTED This value is returned when a custom action attempts to call a function that cannot be called from custom actions. The function returns the value ERROR_CALL_NOT_IMPLEMENTED. Available beginning with Windows Installer version 3.0.
1259 ERROR_APPHELP_BLOCK If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog box informing the user and asking whether to try to install anyway. This error code is returned if the user chooses not to try the installation.
1601 ERROR_INSTALL_SERVICE_FAILURE The Windows Installer service could not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered.
1602 ERROR_INSTALL_USEREXIT The user cancels installation.
1603 ERROR_INSTALL_FAILURE A fatal error oc
View YouTube Emoji Full.json
This file has been truncated, but you can view the full file.
[
{
"emojiId": "\ud83d\ude00",
"image": {
"thumbnails": [
{
"url": "https://www.youtube.com/s/gaming/emoji/0f0cae22/emoji_u1f600.svg"
}
]
@eladkarako
eladkarako / extract fonts from adobe reader installation without actually installing anything.md
Last active Sep 19, 2022
extract fonts from adobe reader installation without actually installing anything
View extract fonts from adobe reader installation without actually installing anything.md
  1. get the offline installation package (about ~230MB) from https://get.adobe.com/uk/reader/enterprise/
    choose Windows 10, English and get whatever version you have in the last combo-box.
    for example:
    https://ardownload2.adobe.com/pub/adobe/reader/win/AcrobatDC/2200220191/AcroRdrDC2200220191_en_US.exe

  2. use 7zip to extract the exe into a folder on your desktop, for example C:\Users\Elad\Desktop\AcroRdrDC2200220191_en_US\

you can use the special build with the extra codecs and formats from:
https://github.com/eladkarako/7z_bundle