Skip to content

Instantly share code, notes, and snippets.

💭
☕︎

Elad Karako eladkarako

View GitHub Profile
View multiline.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");}
@eladkarako
eladkarako / easy_json_beautifier.js
Created Mar 21, 2019
[JavaScript] Easy JSON beautifier - with optionally using comma-first syntax. can handle any complexity of object/array combinations.
View easy_json_beautifier.js
JSON.stringify(YOUR_OBJECT, null, 2)
.replace(/,\n /gm, "\n ,").replace(/ *(,(\ +))/gm, "$2,") //comma-first.
;
@eladkarako
eladkarako / google.co.il_opensearch_modified_extended_example.xml
Last active Mar 20, 2019
google.co.il_opensearch_modified_extended_example.xml
View google.co.il_opensearch_modified_extended_example.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░ - Serve this file as UTF-8. ░
░ - Serve this file as Windows-EOL (CR+LF). ░
░ - Serve this file use mimetype: ░
░ application/opensearchdescription+xml ░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!--
@eladkarako
eladkarako / Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.md
Created Mar 11, 2019
Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.
View Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.md

Windows users needs to sync the time.

Right click the clock on your start-menu toolbar, and select Adjust data/time,
Go to the last-tab - Internet Time, and click Change settings... button,
Check ON the little-checkbox and click the Update now button.


@eladkarako
eladkarako / upgrader.py
Created Mar 8, 2019
upgrader.py - upgrade all your pip packages one by one.
View upgrader.py
import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
call("pip install --upgrade " + ' '.join(packages), shell=True)
@eladkarako
eladkarako / VMWare Uninstall - Info And Script.md
Last active Feb 27, 2019
VMWare Uninstall - Info And Script
View VMWare Uninstall - Info And Script.md

https://kb.vmware.com/s/article/1308


Delete Those Folders (And Content):

rmdir /s /q   "C:\Documents and Settings\%USERNAME%\Application Data\VMware"
rmdir /s /q   "C:\Documents and Settings\All Users\Application Data\VMware"
rmdir /s /q   "C:\Documents and Settings\All Users\Start Menu\Programs\VMware"
@eladkarako
eladkarako / VMWare Direct Download Links from softwareupdate.vmware.com.md
Last active Feb 25, 2019
VMWare Direct Download Links from softwareupdate.vmware.com
View VMWare Direct Download Links from softwareupdate.vmware.com.md
@eladkarako
eladkarako / [JavaScript] Remove Item(s) From eBay Cart.js
Created Feb 23, 2019
[JavaScript] Remove Item(s) From eBay Cart
View [JavaScript] Remove Item(s) From eBay Cart.js
document.querySelector('button[data-test-id="cart-remove-item"],button[data-test-id=sfl-remove-item]').click();
@eladkarako
eladkarako / 60gb_basic_unix_vm.7z
Last active Mar 5, 2019
Basic Linux VirtualMachine Ready To Be Imported To VirtualBox, 60GB Hard-Disk (Dynamically Resized) - Only 3KB 7zip Archive!
@eladkarako
eladkarako / [JavaScript][Ajax][XHR] Pre-Connect All The YouTube Videos To Speed Up Future Viewing.js
Created Feb 15, 2019
[JavaScript][Ajax][XHR] Pre-Connect All The YouTube Videos To Speed Up Future Viewing.js
View [JavaScript][Ajax][XHR] Pre-Connect All The YouTube Videos To Speed Up Future Viewing.js
function warm(url, callback){
function ready_handler(ev){
if(XMLHttpRequest.DONE !== xhr.readyState) return;
if(200 !== xhr.status && 302 !== xhr.status) return;
if("function" === typeof callback) callback.apply(undefined,[xhr]);
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = ready_handler;
xhr.open('HEAD', url, true);
You can’t perform that action at this time.