Skip to content

Instantly share code, notes, and snippets.

View yonixw's full-sized avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / RAYMEN_2_README.md
Last active December 24, 2023 18:13
Raymen Heb mod notes
  • typing animation ltr
  • big "yahoo" on first 2 column jump
    • lvl 1 - YeHaron A-Aor
    • unlike after getting first power from Li, which is transalted
  • "try again" after fail/gameover (any level)
  • yahoo on all yellow looms in a level
  • lessi ride level "GO"
  • ZeAdat HaAIm
    • "You made it rayman" - race level after lessi
  • HaBaio
@yonixw
yonixw / Circular_Buffer.js
Created December 13, 2023 12:25
JS Circular Buffer
function make_CRS_Buffer(size) {
//based on https://stackoverflow.com/a/60285222/1997873
return {
arr: [],
arr_i: 0,
arr_size: size,
size: function () {
return this.arr.length;
},
full: function () {
@yonixw
yonixw / Window1255_HEB_to_UTF8.js
Created December 13, 2023 12:23
JS convert windows 1255 (hebrew) to utf8
const win1255 = [
..."àýáýâýãýäýåýæýçýèýéýëýêìýîýðýñýòýôýöý÷ýøýùýúíýïóýõáÌâÌãÌëÌêÌôÌóÌùÑùÒúÌ×ÈýÇýÂÅýÆýÁÉýÃËÌÄåÌ",
].filter((e) => e != "ý");
const hebutf8 = [
..."א‎ב‎ג‎ד‎ה‎ו‎ז‎ח‎ט‎י‎כ‎ךל‎מ‎נ‎ס‎ע‎פ‎צ‎ק‎ר‎ש‎תם‎ןף‎ץבּגּדּכּךּפּףּשׁשׂתּ׳ָ‎ַ‎ֲֵ‎ֶ‎ֱֹ‎ֳִֻּוּ",
].filter((e) => !!e && e.charCodeAt(0) != 8206);
function win1255toUTF(str) {
return [...str]
.map((e) => (win1255.indexOf(e) > -1 ? hebutf8[win1255.indexOf(e)] : e))
@yonixw
yonixw / README.md
Last active September 11, 2023 22:45
Backup4All Version 9 SQL

Backup4All Version 9 SQL

Export the following map Zip -> Files. So this will not include rows for deleted files. Only when they were added/changed.

Run on latest SQLite Version

How to Export

  1. Open the .bkc file. It is a SQLite file. Might be password protected with the user-defined backup password.
@yonixw
yonixw / README.md
Created August 25, 2023 00:53 — forked from Saphareas/README.md
Psono to Bitwarden Import Script

Psono to Bitwarden Import Script

Psono to Bitwarden Import Script is a script for importing passwords/logins and secure notes from a Psono.pw export file into your Bitwarden vault.

This script requires Python 3 and the Bitwarden CLI client!

$ psono-importer.py [-p|--psonofile] <exported psono file>
Working set size: 196
Progress:-----------------------------------------------------------------| 0/196
@yonixw
yonixw / MAIN.md
Created July 12, 2023 12:54
RTM RTMP stream self hosted

URLs

IP is the WIFI ip or 127.0.0.1 for localhost

  • OBS on pc or Streamlabs on iOS/Android

    • Account Settings -> Custom RTMP
    • rtmp://<ip>:1935
    • pass: test
  • VLC, open:

@yonixw
yonixw / json2csv.ts
Last active June 8, 2023 08:49
Json2CSV against injections
const csv_safe_quote = '"';
const csv_safe_escapedQuote = '""""';
function safe_csv_item(item:any) : string {
try {
if (item === "") {
return '""'
}
// Force string:
npm install -g underscore-cli
underscore help
underscore --wrapwidth 75 pretty < input.json
@yonixw
yonixw / real diff.sh
Created November 3, 2022 15:05
Git REAL diff
* git branch -a
* git ls-files
* git diff <branchA> <branchB> -- <file>
* git diff CI_CD remote_data --
git ls-files | grep -vE "yarn\.lock|package-lock\.json" | xargs -L1 -d '\n' git --no-pager diff remotes/origin/remote_data remotes/origin/CI_CD -- >> diff.diff
@yonixw
yonixw / split_crop.sh
Created September 18, 2022 18:24
magick png image to pdf
magick convert 2.png -crop 1152x1584 +repage 2.meta-coin.pdf