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
View git_cleanup_all_commits.sh
echo "Clean all git commit"
git checkout --orphan latest_branch
git add -A
git commit -am "Delete all previous commit"
git branch -D master
git branch -m master
echo "Cleanup refs and logs"
rm -Rf .git/refs/original
rm -Rf .git/logs/
@eladkarako
eladkarako / color_convertion__kelvin_to_rgb.js
Created Oct 1, 2019
[JavaScript] Color Convertion - Kelvin to RGB
View color_convertion__kelvin_to_rgb.js
"use strict";
function kelvin_to_rgb(kelvin){
var tmp = kelvin / 100
,r
,g
,b
;
//------------------------------------------------------Red
if(tmp <= 66){
@eladkarako
eladkarako / vm_shrink_optimize.md
Last active Sep 27, 2019
A Virtual-Machine Hard-Drive Shrink and Optimization Guide - With VirtualBox And Dynamic VDI Hard-Drive File.
View vm_shrink_optimize.md

After you've installed a clean new Windows 7/8/10,
and installed all the nedded updated from Windows-update,
you'll end up with a hard-drive of about 35GB of a virtual-machine,
with almost nothing on it.

There are several folders you can delete, free-space null'ification and
hard-drive compacting methods that will reduce about 15GB of the hard-file,
without changing anything in your machine configuration itself.

Shrinking the hard-drive will make it easier for you to export VM.

@eladkarako
eladkarako / autohotkey_disable_mouse_toggle_f8_quit_f1.ahk
Created Sep 21, 2019
autohotkey_disable_mouse_toggle_f8_quit_f1.ahk
View autohotkey_disable_mouse_toggle_f8_quit_f1.ahk
#NoEnv ;disables access to environment variables.
#SingleInstance force ;prevent more than one copy of the program running at a time (skip the dialog-box that asks if to replace the current-execution --- new execution will replace old one).
#InstallKeybdHook ;explicitly activate keyboard-hook for the script (same as using $ infront of the hotkey).
#InstallMouseHook ;explicitly activate mouse-hook for the script.
#KeyHistory 0 ;disable key-logging history. prevents some overhead caused by keyboard/mouse-hook. (normally 'KeyHistory' command is used for debugging keys from this program, but activating 'InstallKeybdHook/InstallMouseHook' also tracks global key/mouse events, disabling history helps a little).
#Persistent ;explicitly declare the program to run permanently. must use ExitApp to close it.
ListLines Off ;disable key-logging most-recently line executed.
SendMode Input ;prefer faster "Input" (SendInput) over "Event" ("Event" is the d
@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
אב
אבגיל
אבגר
אבי
אביאור
אביאל
אביאלה
אביאם
אביב
אביבה
You can’t perform that action at this time.