Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
☕︎

Elad Karako eladkarako

💭
☕︎
View GitHub Profile
View topazlabs_subdomains.txt
topazlabs.com
api.topazlabs.com
auth.topazlabs.com
blog.topazlabs.com
cloudai.topazlabs.com
community.topazlabs.com
d-cloudflare.topazlabs.com
discuss.topazlabs.com
dishost.topazlabs.com
docs.topazlabs.com
@eladkarako
eladkarako / gibberish_to_hebrew.js
Created Apr 24, 2021
[PHP/NodeJS] A Gibberish to Hebrew heuristics fixer. Similar to http://info.org.il/hebrew_magic.php or http://aci.selfip.org/support/hebwiz.php . Alternatively you can use the NodeJS JavaScript program provided (easier, faster, better).
View gibberish_to_hebrew.js
/*
How to start this program? (batch file example)
--------------------------------------------------
@echo off
chcp 65001 1>nul 2>nul
pushd "%~dp0"
call "C:\nodejs32\node.exe" "gibberish_to_hebrew.js" "sample_gibberish.txt"
set "EXIT_CODE=%ErrorLevel%"
pause
popd
@eladkarako
eladkarako / All Sub-Domains Of StackOverflow, StackExchange, SuperUser, ServerFault, AskUbuntu, StackApps (info).md
Last active Apr 24, 2021
All Sub-Domains Of StackOverflow, StackExchange, SuperUser, ServerFault, AskUbuntu, StackApps
View All Sub-Domains Of StackOverflow, StackExchange, SuperUser, ServerFault, AskUbuntu, StackApps (info).md

All Sub-Domains Of StackOverflow, StackExchange, SuperUser, ServerFault, AskUbuntu, StackApps

A-Z-natually-sorted upside-down but presented normally, so the most important part is the super-domain, then domain, then sub-domain (but I can not avoid sorting stuff against '.' sometimes).

right-aligned (a.k.a left-pad, with whitespace) for easier reading.

Includes common sub-domains such as blog., meta., and ns1 (and 2,3,4), but also www. (which often redirects to the domain without www.),
also, combination of www. with other sub-domains (some redundant domains such as ads.ads. may be included, if so notify me below and I'll fix it..).

The information was gethered using https://stackexchange.com/sites, virustotal, and securitytrails (see: <a href="https://github.com/eladk

@eladkarako
eladkarako / פתרון לשלטים וממירים מקליטים מחורבנים של הוט שלא מגיבים לשלט.md
Last active Apr 17, 2021
פתרון לשלטים וממירים מקליטים מחורבנים של הוט שלא מגיבים לשלט
View פתרון לשלטים וממירים מקליטים מחורבנים של הוט שלא מגיבים לשלט.md

החלפתם ממיר, ופתאום הכול איטי? השלט עובד אבל בטכנולוגיה אור-אדום (אינפרא אדום) הממירים (בניגוד לטלויזיות, אפילו ישנות מאוד) פשוט עושה חרא של עבודה עם זה. וצריך להיות ממש מול הממיר כדי שהשלט יעבוד, וגם אז, ספרות כפולות, 6 לחיצות על שעובד, ותמיד קופץ אחד יותר מדי וצריך שוב. הקיצור סיוט.

השלטים האלה מיועדים לעבוד בטכנולוגיית רדיו (כמו בלוטופ), התפקוד הבסיסי שלהם הוא אור-אדום, אבל ברגע שתעשו "התאמת-שלט" השם לא מגלה הרבה, באנגלית אולי יותר ברור Pairing Remote) (מזכיר בלוטופ עכשיו?).

@eladkarako
eladkarako / EladKarako's Ultimate Guide For Using Colors In GitHub.md
Last active Apr 17, 2021
EladKarako's Ultimate Guide For Using Colors In GitHub
View EladKarako's Ultimate Guide For Using Colors In GitHub.md

Say you would like a nice colorful (Red/Green/Orange/Gray) title somewhere,
but you've noticed inline-style-CSS or <font color=... simply does not work...
well you can use a "little cheat", that is, using a ```diff highlight-block (all highlights are based on highlight.js),

```diff
! Orange
# Gray
- Red
+ Green
@eladkarako
eladkarako / JavaScript CamelCase to snake_case - with regular expression and no regular-expression-grouping, no loops either - convert a string in camel case into an all lower case underscore-separated string.js
Created Apr 12, 2021
JavaScript CamelCase to snake_case - with regular expression and no regular-expression-grouping, no loops either - convert a string in camel case into an all lower case underscore-separated string
View JavaScript CamelCase to snake_case - with regular expression and no regular-expression-grouping, no loops either - convert a string in camel case into an all lower case underscore-separated string.js
console.log(
"AbCdefGh".replace(/[A-Z][a-z]+/g,function(match){return (match.toLowerCase() + "_");}).replace(/_+/gm,"_").replace(/_+$/gm,"")
)
//output:
//"ab_cdef_gh"
@eladkarako
eladkarako / Make an APK Offline Using APKTool.md
Last active May 8, 2021
Make an APK Offline Using APKTool
View Make an APK Offline Using APKTool.md

here is a way to "fool" an apk into "thinking" you are offline, yes - it may prevents ads, but it is also a very important way making sure applications such as text-editors, password-managers, and even custom-keyboards (as long you don't need any sync functionality..) will not access or send (leak) private or sensitive information or a remote server. turning an apk offline is a good idea even if you trust the application 100%, every networks may be compromised (packet listeners/man-in-the-middle on a WiFi network or a security-vulnerability in 3rd-party-servers you can do nothing about..).

the following is not a guide, it does not include specific commands, so you must have some (basic) experience in using APKTool already, those are most just tips, and I do not advise reverse-engineering at all other than a good educational practice and skills to help you understand how smali-code "works". note that any modification to to a program should follow its license (for example Notepad++ is an opensource advert

@eladkarako
eladkarako / Android - control WiFi N (802.11n) and 40Mhz ability - turn ON-OFF using wpa_supplicant.conf (and optionally build.prop and default.prop).md
Last active Mar 29, 2021
Android - control WiFi N (802.11n) and 40Mhz ability - turn ON-OFF using wpa_supplicant.conf (and optionally build.prop and default.prop)
View Android - control WiFi N (802.11n) and 40Mhz ability - turn ON-OFF using wpa_supplicant.conf (and optionally build.prop and default.prop).md

I couldn't find a specific way to turn 40mhz ON, but I did found pretty generic OFF switches for WiFi N (802.11n) and 40mhz, that you may turn OFF to make sure the device does tries to accept wider channel. note that wide channel normally means one 20mhz channel in 1-13 range (2.4) and another in 36-161 channels.

additional switches for /system/etc/wifi/wpa_supplicant.conf:

#https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf
#http://lists.infradead.org/pipermail/hostap/2012-July/026278.html
@eladkarako
eladkarako / Manually Convert a Boundle-APK (Split-APK) Into a Single APK Using APKTool And Some Common-Sense - With Example YouTubeVanced From APKMirror.md
Created Mar 29, 2021
Manually Convert a Boundle-APK (Split-APK) Into a Single APK Using APKTool And Some Common-Sense - With Example YouTubeVanced From APKMirror
View Manually Convert a Boundle-APK (Split-APK) Into a Single APK Using APKTool And Some Common-Sense - With Example YouTubeVanced From APKMirror.md

first some info.

info 1 splitted apk is a nice way to deliver smaller updates through Google-store, code (java based), architecture (libs and such, c based), resources, and languages each sits in their own APK container.

info 2 to install a split-apk (boundle) manually you normally need a split-installer. split (boundle) apk has some very basic conventions, the first full installation is some sort of a compatible zip (ZipCrypto and Deflate), its extension does not really matter. the content contains at least one APK (but normally more, otherwise - what's the point ;) ..), its name is base.apk, libs of multiple architectures will have a name such as split_config.armeabi or more specific split_config.armeabi_v7a, split_config.arm64_v8a.apk (x86, and x86_64 are also supported),

@eladkarako
eladkarako / Change The Windows Automatic-Update Internet-Time Server (NTP - Network Time Protocol Servers).md
Created Mar 27, 2021
Change The Windows Automatic-Update Internet-Time Server (NTP - Network Time Protocol Servers)
View Change The Windows Automatic-Update Internet-Time Server (NTP - Network Time Protocol Servers).md

First you can do this yourself manually, clicking the bottom-clock, than adjusting the time, and write a new entry in the internet-time tab selection box, you can click update right away and OK to close the dialog box and save.

or

  1. first import the following registry code to add few new NTP-servers (the bottom-ones you probably already have)
    Windows Registry Editor Version 5.00