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 / WMIDiag.vbs
Created Jul 23, 2019
WMIDiag.vbs - The WMI Diagnosis Utility
View WMIDiag.vbs
This file has been truncated, but you can view the full file.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
' OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
' FITNESS FOR A PARTICULAR PURPOSE.
'
' Copyright (c) Microsoft Corporation. All rights reserved
'
' This script is not supported under any Microsoft standard support program or service.
' The script is provided AS IS without warranty of any kind. Microsoft further disclaims all
' implied warranties including, without limitation, any implied warranties of merchantability
View my_ip.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', true);
header('Content-Encoding: UTF-8');
View linkwithin_widget_pretty.js
//15:31 יום שני 01 אוקטובר 2012
if (typeof (linkwithin_is_running) === 'undefined') {
linkwithin_is_running = true;
oLinkWithin = {
v: 35,
hs: [],
ts: [],
ps: [],
ws: [],
View checking if tab exists.js
"use strict";
var API = chrome || browser;
function tab_exists (tab_id, callback_exists, callback_not_exists) { //walk all tabs (in all windows), execute callback if it finds a tab with a given ID, and execute a callback (optional) if it didn't find one.
if("function" !== typeof callback_exists) throw new Error('please provide second argument - function that will be called when a tab-id will match one of the existing tabs.');
on_not_exists = ("function" === typeof on_not_exists) ? on_not_exists : function(){return true;}; //normalize optional 'on_not_exist' callback
function tabs_walker(windows){
var i,window,j,tab;
@eladkarako
eladkarako / write HTML on-to SVG on-to CANVAS and save it as an image.js
Created Jul 20, 2019
write HTML on-to SVG on-to CANVAS and save it as an image
View write HTML on-to SVG on-to CANVAS and save it as an image.js
function multiline(s){return s.toString().replace(/\r/g,"##R##").replace(/\n/g,"##N##").replace(/^.*\/\*\+(.*)\+\*\/.*$/, "$1").replace(/##R##/g,"\r").replace(/##N##/g,"\n");}
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
var data = multiline(function(){/*+
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<foreignObject width="100%" height="100%">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">
<em>I</em> like <span style="color:white; text-shadow:0 0 2px blue;">cheese</span>
</div>
@eladkarako
eladkarako / Winner🏆 Winner🏆, Chicken 🐔 Dinner🍗.md
Last active Jul 20, 2019
Winner🏆 Winner🏆, Chicken 🐔 Dinner🍗
View Winner🏆 Winner🏆, Chicken 🐔 Dinner🍗.md

Winner 🏆 Winner 🏆, Chicken 🐔 Dinner 🍗

Winner 🏆️ Winner 🏆️, Chicken 🐔️ Dinner 🍗️

Winner 🏆︎ Winner 🏆︎, Chicken 🐔︎ Dinner 🍗︎

@eladkarako
eladkarako / background.js
Created Jul 7, 2019
9inchurl.com extension parts [JavaScript][Web-Extension]
View background.js
//Add context menu to links
var title = "Simple URL Extender";
var id = chrome.contextMenus.create({"title": title, "contexts":["link"], "onclick": onExtendClick});
//callback for when user clicks "Simple URL Extender" in context menu
function onExtendClick(info, tab) {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {getURL: true});
});
}
@eladkarako
eladkarako / collect different A objects (links) with the same HREF attribute.js
Created Jul 7, 2019
[JavaScript] collect different A objects (links) with the same HREF attribute.js
View collect different A objects (links) with the same HREF attribute.js
@eladkarako
eladkarako / dirty_functions_generation__aka_dead_code.js
Created Jul 7, 2019
[JavaScript] dirty_functions_generation__aka_dead_code.js
View dirty_functions_generation__aka_dead_code.js
var store = {}
, names = ["a1g3r_a", "a10ha", "ah0y", "am_wa1", "amd0ra", "amg01a", "amg3r", "amgu_1a", "amt_pat_0m", "arg3ma", "art_c13", "arula", "arw3m_a", "austra", "aw3", "az3rlam", "c0mfus_0m", "c0mt3wpt", "c0mta_m3r", "c0mtw3mt", "c0s", "c0wl_a", "c10th3s", "caw3r0m", "cawl0d_a", "ch_13", "ch_ma", "chad", "cr0a", "d0g", "d3spa_r", "d_sap0_mtw3mt", "dh31_a", "dj_l0ut_", "drug", "f0d", "f0pt_sw", "f0wam", "f1_3cht3mst3_m", "f1_d", "f1_l3r_a", "f1a0s", "f1ust", "f3csy", "f3cuad0r", "f3mvy", "f3r3a", "f3st0m_a", "f3th_a", "f3xc_t", "f10mg", "f10v3", "f13lam", "f13s0", "fr_ght", "fru_t", "furm_tur3", "fury", "g30rg_a", "g_lrar", "gal0m", "gr3ma", "gr3md", "gr3t_mgs", "gratud3", "gu3rms3y", "gu_1t", "gu_m3a-l_sau", "gu_m3a", "guad310up3", "guaw", "guya", "h0r", "h01a", "h3y", "h013", "h310", "hap_m3s", "hatr3d", "humg3r", "huw_ty", "j0l", "j0rdam", "j0y", "j3y", "jam", "k_lat_", "khstam", "kuwa_t", "kyzstam", "l0dy", "l0r3d0w", "l0tswa", "l01_a", "l1_s", "l3m", "l3rwuda", "l3w_1d3mt", "l31_z3", "l31arus",
@eladkarako
eladkarako / draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
Created Jun 21, 2019
draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
View draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" dir="ltr" lang="en-US" language="English" charset="UTF-8" encoding="UTF-8">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="fragment" content="!"/>
<meta name="viewport" content="height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width,minimal-ui"/>
<style type="text/css" media="all">
/*<![CDATA[*/
@charset "UTF-8";
You can’t perform that action at this time.