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 / gibberish_to_hebrew.php
Created Nov 8, 2019
gibberish_to_hebrew.php - search and replace to fix old-style Hebrew characters such as ùì àå äùééê ìàéëåú äèåáä áéåúø; îéåöø áàæåø îñåîï åîåâãø
View gibberish_to_hebrew.php
<?php
/*! A Gibberish to Hebrew heuristics fixer. *
* *
* similar to: *
* 'http://info.org.il/hebrew_magic.php' or *
* 'http://aci.selfip.org/support/hebwiz.php'. *
* *
* Elad Karako, October 2018. *
***************************************************/
View Fairy Dust Cursor.js
/* Fairy Dust Cursor.js
* - 90's cursors collection
* -- https://github.com/tholman/90s-cursor-effects
* -- https://codepen.io/tholman/full/jWmZxZ/
*/
(function fairyDustCursor() {
var possibleColors = ["#D61C59", "#E7D84B", "#1B8798"]
var width = window.innerWidth;
@eladkarako
eladkarako / write HTML on-to SVG on-to CANVAS and save it as an image.js
Created Nov 8, 2019
write HTML on-to SVG on-to CANVAS and save it as an image.js
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 / autocomplete file-system and folders path - example.cs
Created Nov 8, 2019
autocomplete file-system and folders path - example.cs
View autocomplete file-system and folders path - example.cs
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
internal class Win32
{
// The SHAutoComplete function allows you
// to add auto-compete functionality to your
// Windows Forms text boxes. In .NET Framework
// 1.1 and earlier, you can use SHAutoComplete.
@eladkarako
eladkarako / how_to_parse_html_into_dom_using_domparser_or_open_write_close_iframe.js
Created Nov 8, 2019
how_to_parse_html_into_dom_using_domparser_or_open_write_close_iframe.js
View how_to_parse_html_into_dom_using_domparser_or_open_write_close_iframe.js
https://developer.mozilla.org/en-US/Add-ons/Code_snippets/HTML_to_DOM
------------------------------------------------------------------------------------------------
var doc = (new DOMParser).parseFromString(markup, mime_type);
var doc = document.implementation.createHTMLDocument('');
doc.open();
@eladkarako
eladkarako / Description_British_Isles_United_Kingdom.svg
Created Nov 8, 2019
Description_British_Isles_United_Kingdom.svg
View Description_British_Isles_United_Kingdom.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eladkarako
eladkarako / British_Isles_United_Kingdom.svg
Created Nov 8, 2019
British_Isles_United_Kingdom.svg
View British_Isles_United_Kingdom.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eladkarako
eladkarako / 4chan API - some is old - used in Chanu Android application.txt
Created Nov 8, 2019
4chan API - some is old - used in Chanu Android application.txt
View 4chan API - some is old - used in Chanu Android application.txt
listing all thread at /b/
https://a.4cdn.org/b/catalog.json
thumnails of some threads
https://t.4cdn.org/b/thumb/1469818430350s.jpg
https://t.4cdn.org/b/thumb/1469818510584s.jpg
https://t.4cdn.org/b/thumb/1469815174740s.jpg
https://t.4cdn.org/b/thumb/1469815174740s.jpg
when entering a thread
@eladkarako
eladkarako / Example .htaccess - to enable Google PageSpeed - minimal.cfg
Created Nov 8, 2019
Example .htaccess - to enable Google PageSpeed - minimal
View Example .htaccess - to enable Google PageSpeed - minimal.cfg
<IfModule pagespeed_module>
#do not transform URLs to fully-qualified URLs, keep them as they were.
PreserveUrlRelativity on
### ###############
### #enable this only for debugging, this might be security hazard! together with lines below this allows example.com/wp-admin/pagespeed_global_admin (for example) an extra security depands on fact you can log into wp-admin.. but some might find a backdoor for it (user creation/login page/etc..)
### ModPagespeedStatistics on
### ModPagespeedStatisticsLogging on
### ModPagespeedLogDir "/home/content/64/1234567/html/_pagespeed_log/"
@eladkarako
eladkarako / Windows WMI program example using pure CMD BAT command-line - extracting Installed Anti-Virus Information.cmd
Created Nov 8, 2019
Windows WMI program example using pure CMD BAT command-line - extracting Installed Anti-Virus Information
View Windows WMI program example using pure CMD BAT command-line - extracting Installed Anti-Virus Information.cmd
C:\Windows\System32\Wbem\wmic.exe /NAMESPACE:\\root\SecurityCenter2 path AntiVirusProduct get displayName,pathToSignedProductExe,pathToSignedReportingExe,productState /format:value
pause
You can’t perform that action at this time.