Skip to content

Instantly share code, notes, and snippets.

View smowtion's full-sized avatar

Smowtion smowtion

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<h1>Alexa Search Traffic</h1>
<ul class="b-menu-01">
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
@smowtion
smowtion / gist:9497721
Created March 11, 2014 23:57
Resize crop images
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
@smowtion
smowtion / index.html
Created May 30, 2014 20:16
Load Disqus comments when scroll near bottom with ajax load , fast load your website check demo http://urlchecker.org with more than 400 comment
<!-- An element a visitor can click if they <3 comments! -->
<button class="show-comments">Load Disqus comments</button>
<!-- The empty element required for Disqus to loads comments into -->
<div id="disqus_thread"></div>
@smowtion
smowtion / urlchecker.php
Last active August 29, 2015 14:03
urlchecker
<?php
/**
* link checker by urlchecker.net
*/
$lcurl = 'http://urlchecker.org/?url=' . urlencode($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
$tnlc = '<a href="' . $lcurl . '"><strong>Check Download Links</strong></a>';
echo $tnlc;
?>
@smowtion
smowtion / html_form.html
Created July 15, 2014 09:25
html form by urlchecker.net
<form action="http://urlchecker.org/" method="post">
<textarea style="border: 1px solid #9d9d9d; background-color: #d3d3d3; color: #000;" rows="10" cols="45" name="links"></textarea>
<br />
<div style="margin-top:4px;">
<input style="padding: 2px;" type="submit" value="Check Links" name="submit" />
</div>
</form>
@smowtion
smowtion / Javascript Addon.html
Last active August 29, 2015 14:03
Javascript Addon (Place this HTML form code in any page on your website)
<script type="text/javascript">
urlchecker = "<a href='http://urlchecker.net/?url=" + window.top.location + "'> Check Download link</a>";
document.write(urlchecker);
</script>
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDlN48smo55Cl48b71XpXuFD7OhJ5pktls&sensor=false"></script>
<script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.12/src/infobox.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
#!/bin/bash
#Force file syncronization and lock writes
mongo admin --eval "printjson(db.fsyncLock())"
MONGODUMP_PATH="/usr/bin/mongodump"
MONGO_HOST="prod.example.com"
MONGO_PORT="27017"
MONGO_DATABASE="dbname"