这里给出maven中应添加的依赖,直接copy进pom.xml即可 org.gearman.jgs java-gearman-service [0.7.0-SNAPSHOT,)
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 | |
highlight_file(__FILE__); | |
$dir = 'sandbox/' . $_SERVER['REMOTE_ADDR']; | |
if ( !file_exists($dir) ) | |
mkdir($dir); | |
chdir($dir); | |
$args = $_GET['args']; | |
for ( $i=0; $i<count($args); $i++ ){ |
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 Client | |
{ | |
public $greetingRules = []; | |
public function __construct() | |
{ | |
$this->greetingRules[] = new MorningGreeting(); | |
$this->greetingRules[] = new AfternoonGreeting(); |
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
var pcsc = require('pcsclite'); | |
var iconv = require('iconv-lite'); | |
var pcsc = pcsc(); | |
pcsc.on('reader', function(reader) { | |
console.log('New reader detected', reader.name); | |
reader.on('error', function(err) { |
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
# Telnet Bruteforce in Python, by aaaddress1@chroot.org | |
# ref: https://github.com/jgamblin/Mirai-Source-Code | |
import socket | |
import sys | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('10.118.127.36', 23)) | |
#s.send(b'\xff\xfc\x23\xff\xfa\x1f\x00\xa0\x00\x39\xff\xf0\xff\xfd\x01') |
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
{"lastUpload":"2020-06-18T22:29:09.889Z","extensionVersion":"v3.4.3"} |
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 | |
trait Singleton | |
{ | |
protected static $_instance = null; | |
public static function getInstance() | |
{ | |
if (static::$_instance === null | |
|| !(static::$_instance instanceof static)) { |
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 | |
# Program: | |
# 利用專案樣版在 Subversion 中建立一個 Zend Framework 專案 | |
# History: | |
# 2011/11/03 Jace Ju First release | |
# Usage: | |
# Create template of project at first time: | |
# > cd /path/to/project_template | |
# > mkdir branches | |
# > mkdir tags |
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 | |
abstract class Database | |
{ | |
public function __construct() | |
{ | |
$this->connect(); | |
} | |
abstract public function connect(); |
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 | |
versions=("5.6.24" "7.0.9") | |
function say() | |
{ | |
value=$1 | |
echo -e "php-$value\n" | |
} |
OlderNewer