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 put_all_scripts_at_end.php
<?php
header("Content-Type: text/plain; UTF-8");
//mock HTML
$content = "%3C!DOCTYPE%20html%3E%20%3Chtml%20lang%3D%22en-US%22%20class%3D%22no-js%22%3E%20%3Chead%3E%20%3Cmeta%20charset%3D%22UTF-8%22%3E%20%3Cmeta%20name%3D%22viewport%22%20content%3D%22width%3Ddevice-width%22%3E%20%3Clink%20rel%3D%22profile%22%20href%3D%22http%3A%2F%2Fgmpg.org%2Fxfn%2F11%22%3E%20%3Clink%20rel%3D%22pingback%22%20href%3D%22http%3A%2F%2Flocal.eladkarako.com%2Ficompile%2Fxmlrpc.php%22%3E%20%3C!--%5Bif%20lt%20IE%209%5D%3E%20%3Cscript%20\nsrc%3D%22http%3A%2F%2Flocal.eladkarako.com%2Ficompile%2Fwp-content%2Fthemes%2Ftwentyfifteen%2Fjs%2Fhtml5.js%22%3E%3C%2Fscript%3E%20%3C!%5Bendif%5D--%3E%20%3Cscript%3E\n(function(html)%7Bhtml.className%20%3D%20html.className.replace(%2F%5Cbno-js%5Cb%2F%2C'js')%7D)(document.documentElement)%3B%3C%2Fscript%3E%20%3Ctitle%3EiCompile%20(Local)%20%7C%20Just%20another%20WordPress%20site%3C%2Ftitle%3E%20%3Clink%20rel%3D%22alternate%22%20type%3D%22application%2Frss%2Bxml%22%20title%3D%22iCompile%20(Loca
@eladkarako
eladkarako / bad_email_domain___disposable_email___spammers___temporary_email.txt
Created Mar 27, 2015
bad email domain - disposable email - spammers - temporary email
View bad_email_domain___disposable_email___spammers___temporary_email.txt
0-mail.com
0815.ru
0815.ru0clickemail.com
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
@eladkarako
eladkarako / computer_programming_languages.txt
Created Apr 23, 2015
List Of Computer Programming Languages (From gist.github.com, in the given order, w/o the first one which is Text due to repeating later)
View computer_programming_languages.txt
ActionScript
C
C#
C++
Clojure
CoffeeScript
CSS
Go
Haskell
HTML
@eladkarako
eladkarako / quick_iframe_creator.html
Last active Aug 29, 2015
Loose Permission IFrame. Done quickly using 'with' structure and comma expression. Not a single VAR expression and a VERY clear code.
View quick_iframe_creator.html
<!-- using iframe with "allow-same-origin",
will require that the path of the iframe (if served from different domain) will also contain the .htaccess file, below:
(that will send the header '..Allow-Origin:*' along with the HTML or PHP file)
Options +FollowSymLinks
RewriteEngine on
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "*"
Header set Access-Control-Expose-Headers "*"
Header set Access-Control-Allow-Credentials "true"
View easy_unicode_binary_string_using_unescape_encodeURIComponent.js
/* don't use a loop to convert char-by-char,
unescape(encodeURIComponent(...)) generates letters < 255 (unicode2ascii)
decodeURIComponent(escape("...")) generates the value back (ascii2unicode)
*/
unescape(encodeURIComponent("א"))
//output: "א"
unescape(encodeURIComponent("א")).split('').forEach(function(c){ console.log(c.charCodeAt(0)) });
//output: 215
@eladkarako
eladkarako / all_css_properties.txt
Last active Aug 29, 2015
[http://icompile.eladkarako.com/all-css-properties/] All CSS Properties, including vendor-prefixes and future draft
View all_css_properties.txt
-apple-trailing-word
-epub-caption-side
-epub-hyphens
-epub-text-combine
-epub-text-emphasis
-epub-text-emphasis-color
-epub-text-emphasis-style
-epub-text-orientation
-epub-text-transform
-epub-word-break
@eladkarako
eladkarako / FuckAdBlock_from_userscloud.com_.js
Created Aug 15, 2015
FuckAdBlock_from_userscloud.com_.js
View FuckAdBlock_from_userscloud.com_.js
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Sat, 15 Aug 2015 08:16:11 GMT
Content-Type: application/javascript; charset=utf8
Content-Length: 4931
Last-Modified: Wed, 24 Jun 2015 11:02:09 GMT
ETag: "1b1514-1343-51941702e1188"
Accept-Ranges: bytes
Vary: Accept-Encoding
Strict-Transport-Security: max-age=60; includeSubDomains; preload
@eladkarako
eladkarako / all_http_headers__json.json
Last active Nov 13, 2015
All HTTP Headers (Several Formats Of The Both Most-Common And The Exotic HTTP-Headers, Including Some From Google-Servers And WebSockets)
View all_http_headers__json.json
[
"Accept"
,"Accept-CH"
,"Accept-Charset"
,"Accept-Datetime"
,"Accept-Encoding"
,"Accept-Ext"
,"Accept-Features"
,"Accept-Language"
,"Accept-Params"
@eladkarako
eladkarako / all_http_headers__separated_by_newline.txt
Created Nov 13, 2015
All HTTP Headers (Several Formats Of The Both Most-Common And The Exotic HTTP-Headers, Including Some From Google-Servers And WebSockets)
View all_http_headers__separated_by_newline.txt
Accept
Accept-CH
Accept-Charset
Accept-Datetime
Accept-Encoding
Accept-Ext
Accept-Features
Accept-Language
Accept-Params
Accept-Ranges
@eladkarako
eladkarako / path_to_cygwin.cmd
Created Dec 5, 2015
convert any Window's path-like string to cygwin's path like string c:\www -> /cygdrive/c/www (supports UTF-8!!!)
View path_to_cygwin.cmd
@echo off
rem support UTF-8 names
chcp 65001
rem first arg ("~" removes the [\'\"] wrapping)
set CURRENT=%~1
rem backward-slash to forward-slash
set CURRENT=%CURRENT:\=/%
rem remove ":" after the drive letter
set CURRENT=%CURRENT::/=/%
rem adds cygwin-dummy path "/cygdrive/" prefix
You can’t perform that action at this time.