This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/Dremora/barcode-lookup/blob/gh-pages/barcode.js | |
var barcode_country = function (code) { | |
code = parseInt(code.substr(0, 3), 10); | |
if ((0 <= code && code <= 19)) { | |
return 'US,CA'; | |
} /*else if ((20 <= code && code <= 29)) { | |
return 'Restricted distribution (MO defined)'; | |
}*/ else if ((30 <= code && code <= 39)) { | |
return 'US'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: bluej774 | |
# http://ubuntuforums.org/showthread.php?t=693788 | |
UNAME=USERNAME # username | |
PWORD=PASSWORD # password (plaintext, sorry!) | |
TEMP=`mktemp` # temporary file | |
ERROR=5 # times to retry | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$dir = '/path/to/local/dir'; | |
if(is_dir($dir)) { | |
date_default_timezone_set('Europe/Moscow'); | |
$backup = fopen($dir.date("Y_m_d_H-i-s").'.tgz','w'); | |
$archive = curl_init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$email = 'your@email'; | |
$dnsbl_check = array( | |
"bl.spamcop.net", | |
"list.dsbl.org", | |
"sbl.spamhaus.org", | |
"xbl.spamhaus.org", | |
"cbl.abuseat.org", | |
"zen.spamhaus.org", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
resources="/proc/bc/$VEID/resources" | |
LOG="/var/log/vps-highload.log" | |
uid=(`cat $resources | awk '{print $1}' | grep -o '[0-9]*'`) | |
used=(`cat $resources | grep privvm | awk '{print $2}'`) | |
all=(`cat $resources | grep vmguar | awk '{print $4}'`) | |
for ((i = 0; i < ${#uid[@]}; i++));do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$names = array( | |
array(), | |
array( | |
array(), | |
array("Григорий","Илья"), | |
array("Иван","Даниил"), | |
array("Петр"), | |
array("Анастасия"), | |
array("Василий","Павел","Ева","Сусанна"), |
NewerOlder