共计 682 字节(压缩后429),其中请求数据 149 字节(141)、返回数据 533 字节(288)
共计 1650 字节,其中请求数据 370 字节、返回数据 1280 字节(HTTP 头 136 字节 + 数据 1144 字节)
<?php | |
$filename = $_SERVER['REQUEST_URI']; | |
if ($i = strpos($filename, '?')) { | |
$filename = substr($filename, 0, $i); | |
} | |
if (file_exists(__DIR__ . $filename)) { | |
return false; | |
} |
angular.module('App', []).config(['$interpolateProvider', function($interpolateProvider) { | |
$interpolateProvider.startSymbol('[['); | |
$interpolateProvider.endSymbol(']]'); | |
}]); |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
#!/bin/bash | |
#.git/hooks/pre-commit | |
EXEC=`php -r "echo 'php ', implode(DIRECTORY_SEPARATOR, [__DIR__, 'vendor', 'bin', 'phpcs']);"` | |
FILES=`git diff --cached --name-only | grep -i php$ | grep ^app` | |
ARGS='--standard=psr2 --encoding=utf8 -p' | |
for fn in $FILES; do | |
if [ ! -f $fn ]; then | |
DELETE=($fn) |
package main | |
import ( | |
"fmt" | |
"time" | |
"sync/atomic" | |
) | |
const ( | |
ITEM_DATA_SIZE = 4096 |
<?php | |
include 'pheanstalk/pheanstalk_init.php'; | |
$ph = new Pheanstalk_Pheanstalk('127.0.0.1'); | |
$ph->ignore('default')->watch($tube); | |
while ($job = $ph->reserve(0)) { | |
$ph->delete($job); | |
fwrite(STDOUT, $job->getId() . "\r"); |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"io" | |
"bufio" | |
"runtime" | |
"path/filepath" |
#!/bin/bash | |
while [ ! -d .hg ]; do | |
cd .. | |
[ -f proc/cpuinfo ] && break | |
done | |
[ ! -d .hg ] && echo 'Oops! No hg repository found.' && exit | |
for f in `hg st | awk '{print $2}'`; do |