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 | |
WWW="public_html" | |
AWK_EXPR='{if($0~/\.(php|js|css|tpl|sql|xml|htaccess)/&&$0!~/\/(var\/(cache|backups|files))\//)print $0}' | |
DOMAIN=`basename \`pwd\`` | |
LIST="Include" | |
ARCHIVE=$WWW"/"$DOMAIN"-"`date '+%F'`".tgz" | |
if [ -n "$1" ] | |
then |
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 | |
DOMAIN=`basename \`pwd\`` | |
MYSQL_CNF="../mysql_"$DOMAIN".cnf" | |
MYSQL_DB_FILE="../mysql_"$DOMAIN".db" | |
MYSQL_DB="" | |
if [ -f $MYSQL_DB_FILE ] | |
then | |
MYSQL_DB=`cat $MYSQL_DB_FILE` |
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 | |
WWW="www" | |
AWK_EXPR='{if($0~/\.(php|js|css|tpl|sql|xml|htaccess|ini)/&&$0!~/\/(tpl_c|upload|managed_cache|stack_cache|cache\/(cs|j)s\/s[0-9]+|app\/bitrix\/cache|bitrix\/modules\/[^\/]+\/install\/)\//)print $0}' | |
DOMAIN=`basename \`pwd\`` | |
LIST="Include" | |
ARCHIVE=$WWW"/"$DOMAIN"-"`date '+%F'`".tgz" | |
if [ -n "$1" ] | |
then |
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
php -f ../pack.php |
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
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('memory_limit','1G'); | |
set_time_limit(0); | |
$opt = getopt('', array( | |
'host:', | |
'dir:', |
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
0) | |
offset: 65545 0x10009 | |
end: 65546 0x1000a | |
size: 2 | |
1) | |
offset: 65549 0x1000d | |
end: 65549 0x1000d | |
size: 1 | |
2) | |
offset: 65552 0x10010 |
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
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
function scr_ls(){ | |
ob_start(); | |
passthru('screen -ls'); | |
$ss = explode("\n", ob_get_clean()); | |
$scrs = array(); |
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
<?php | |
class slowAES_aes | |
{ | |
static $keySize = array( | |
'SIZE_128' => 16, | |
'SIZE_192' => 24, | |
'SIZE_256' => 32 | |
); |
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
HTMLAudioElement.prototype.balance = function(leftValue, rightValue){ | |
if(!this.leftGain || !this.rightGain){ | |
var audioCtx = new AudioContext(); | |
if(audioCtx.destination.channelCount != 2){ | |
console.log('Destination channel count is not two:', audioCtx.destination.channelCount); | |
return; | |
} | |
var audioSrc = audioCtx.createMediaElementSource(this); |
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
/* | |
run in console at https://vk.com/audio | |
to download from wall, go to https://vk.com/wall[ID]?own=1&offset=[OFFSET] | |
wait for m3u file | |
use this autohotkey script https://gist.github.com/1d10t/6f8b151e50905449c63abc851dceb167 | |
to download mp3 files | |
*/ | |
(function(){ | |
OlderNewer