Skip to content

Instantly share code, notes, and snippets.

@AliMD
AliMD / Install Package Controll.py
Last active December 16, 2015 14:39
Sublime Text 2 for Web Developers, Ali.MD Edition ;)
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation');
@AliMD
AliMD / ThemeForest Total Sale Calculator.md
Last active December 14, 2015 15:39
ThemeForest Total Sale and Sale/Month Calculator and Convert to Iranian Rial ;)

ThemeForest Total Sale Calculator

Create a bookmark in your broser and copy pase calc.min.js content in url.
Now you can go to the a themeforest page and click on that bookmark.
You can set window.dollarInToman=5000 in js console.
If you want to make money in themeforest like us cotact me ;)

@AliMD
AliMD / Useful Htaccess Tricks and Tips.md
Last active March 31, 2021 19:28
Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more) Optimized for wordpress Tested in 1devs server with apache (not nginx)

Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more)

Apache configuration file (.htaccess) .htaccess files are an overhead, this logic should be in your Apache config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html

Techniques in here adapted from all over, including: html5boilerplate: html5boilerplate.com Kroc Camen: camendesign.com/.htaccesss perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ Useful htaccess tricks & tips: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips

@AliMD
AliMD / gist:3923810
Created October 20, 2012 16:21
How To Create an IE-Only Stylesheet
@AliMD
AliMD / gist:3918905
Created October 19, 2012 15:38
HAWX Cheat

At the Hangar

  • hold Shift and type xaxdqx to unlock the A-12 Avenger 2.
  • hold Shift and type aqaqax to unlock the F-18 HARV.
  • hold Shift and type dxdxdq to unlock the FB-22 Strike Raptor.
@AliMD
AliMD / gist:3918649
Created October 19, 2012 14:56
Invert Pages :D

Nazaretoon rajebe github e chappe chiye ? :trollface: :D
in matn ro too address bar browser copy konid

data:text/html;base64,TW92ZSB0aGlzIGxpbmsgPGEgaHJlZj0iamF2YXNjcmlwdDooZnVuY3Rpb24oKXtkb2N1bWVudC5ib2R5LnN0eWxlLndlYmtpdFRyYW5zaXRpb249J2FsbCAxcyc7c2V0VGltZW91dChmdW5jdGlvbigpe2RvY3VtZW50LmJvZHkuc3R5bGUud2Via2l0VHJhbnNmb3JtPSdzY2FsZVgoLTEpJzt9LDEwKTt9KSgpOyI+SW52ZXI8L2E+IHRvIHlvdXIgYm9va21hcmsgOyk=

hala too har pagi ke doost dashti roosh click konin ;)
baghiye khalaghiyat ha be ohdeye khodetoon

@AliMD
AliMD / gist:3910476
Created October 18, 2012 08:34
Dark and white 60% background base64 for iEeeeeeee

dark_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9JREFUeNpiYGBgmAkQYAAAngCaoMXLCwAAAABJRU5ErkJggg==');"></div>

light_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P///0yAAAMACZUDl8+B/NgAAAAASUVORK5CYII=');"></div>
@AliMD
AliMD / gist:3885209
Created October 13, 2012 16:21
Htaccess Password Protection

Password Protection

One of the many uses of the .htaccess is being able to reliably password protect directories on websites. Note: If you would like to use the cPanel tool to password protect your folders please see our article: Password Protect a folder on your website

The .htaccess File

Adding password protection to a directory using .htaccess takes two stages. The first part is to add the appropriate lines to your .htaccess file in the directory you would like to protect. Everything below this directory will be password protected:

AuthName "Secret Folder"
AuthType Basic
@AliMD
AliMD / TransferDollar.md
Created October 4, 2012 12:52
Transfer Dollar for domain and host
@AliMD
AliMD / CIW-Des.md
Created October 1, 2012 11:23
CIW Last sessions

CIW Des Idea for last sessions

  • Google Map
  • Base64
  • Custome Animations
  • SVG
  • Canvas
  • Adobe CS Pack
  • photoshop save4web
  • sizes
  • photoshop actions