Skip to content

Instantly share code, notes, and snippets.

💭
☕︎

Elad Karako eladkarako

💭
☕︎
Block or report user

Report or block eladkarako

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eladkarako
eladkarako / DisableTouchPad.ahk
Last active Sep 12, 2019
DisableTouchPad.ahk - improved version of 'https://github.com/blza/DisableTouchPad.ahk' that also blocks mouse-move-system_message and scroll-gestures.
View DisableTouchPad.ahk
; v1.3 2019-09-12 https://github.com/eladkarako/DisableTouchPad.ahk
; * timeout to 300ms
; + also disabling touch-pad 'scrolls' (two fingers gesture, all directions).
; + also block system-message 'WM_MOUSEMOVE' (https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-mousemove)
; this helps with false screen-wakeups.
; * meta-improvements for quicker script.
; * code format/clean-up.
;
; v1.2 2017-07-13 https://github.com/blza/DisableTouchPad.ahk/
; Added support for latest AHK version by setting DllCall parameters to appropriate Ptr instead of Uint
@eladkarako
eladkarako / chrome-dino-new.html
Created Sep 1, 2019
chrome://dino source (unmodified, new, the media is embedded in the HTML-page)
View chrome-dino-new.html
<!doctype html>
<html dir="ltr" lang="en" class="offline"><head>
<meta charset="utf-8">
<meta name="theme-color" content="#fff">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<title>chrome://dino/</title>
<style>/* Copyright 2017 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
@eladkarako
eladkarako / index_with_link_to__web_extension__in_chrome_webstore.html
Last active Aug 31, 2019
Way to acknowledge/publish your alternative Chrome-webstore application in your HTML page, it will be suggested in the browser's menu (link to the web-store)
View index_with_link_to__web_extension__in_chrome_webstore.html
@eladkarako
eladkarako / extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!).js
Created Aug 14, 2019
extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!)
View extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!).js
NodeList.prototype.map = Array.prototype.map;
document
.querySelector('vt-graph-app').shadowRoot
.querySelector('vt-drawer').shadowRoot
.querySelector('vt-drawer-node-list').shadowRoot
.querySelectorAll('.node-info')
.map(function(e){return e.innerText;})
.sort()
.join("\r\n")
;
@eladkarako
eladkarako / form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
Created Jul 30, 2019
[PHP][JavaScript][HTML] Simple FORM-Submit example (NojQuery) with server-side SANITIZE for the input - form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
View form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
<?php
function arg_value($name){
$items = [
filter_input(INPUT_POST, $name, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK)
,filter_input(INPUT_GET, $name, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK)
];
$items = array_filter($items, function($item){
return ((null !== $item) && (false !== $item));
});
View Hebrew - First Names - Female - שמות פרטיים בנות.txt
אב
אבגיל
אבגר
אבי
אביאור
אביאל
אביאלה
אביאם
אביב
אביבה
@eladkarako
eladkarako / html2text.php
Created Jul 30, 2019
[PHP] html2text.php - takes HTML and removes/purge the tags so the result can be sensible/readable as a text.
View html2text.php
<?php
while (ob_get_level() > 0) ob_end_flush();
date_default_timezone_set("Asia/Jerusalem");
mb_language("uni");
mb_internal_encoding('UTF-8');
setlocale(LC_ALL, 'en_US.UTF-8');
header('Charset: UTF-8');
header('Content-Language: en');
@eladkarako
eladkarako / .htaccess
Created Jul 30, 2019
[PHP] making chunk'ed response in PHP
View .htaccess
SetEnvIf Request_URI .* no-gzip=1
#<ifModule mod_headers.c>
# Header set Connection keep-alive
#</ifModule>
#
#<IfModule mod_php5.c>
# php_value post_max_size 5M
# php_value upload_max_filesize 5M
# php_value memory_limit 700M
@eladkarako
eladkarako / mb_pathinfo.php
Created Jul 30, 2019
[PHP] mb_pathinfo.php - yet another multi-byte-safe pathinfo alternative, it breaks down a string (file-system path) to its components using a regular-expression.
View mb_pathinfo.php
<?php
header("Content-Type: text/plain; UTF-8");
/**
* mb_pathinfo (yet another multi-byte-safe pathinfo alternative)
*
* @param string $path - filename-like complete string (does not need to be actually existing in the OS).
* @param string $segment - optionally specify just one path-segments ('all' - all of them in an associative array).
* @param string $concat - optionally specify any string (filename) to append at the end.
*
@eladkarako
eladkarako / enumerate_level_0_non-recursive_files_in_folder.js
Created Jul 30, 2019
NodeJS - Enumerate level-0 (non-recursive) files in folder, prepared for an argument input (not used)
View enumerate_level_0_non-recursive_files_in_folder.js
"use strict";
const FS = require("fs")
,PATH = require("path")
,RESOLVE = function(path){path = path.replace(/\\+/g,"/");
path = PATH.resolve(path);
path = path.replace(/\\+/g,"/");
path = path.replace(/\/\/+/g,"/");
path = path.replace(/\/+$/g,""); //remove last '/'
return path;
You can’t perform that action at this time.