Skip to content

Instantly share code, notes, and snippets.

View jjsty1e's full-sized avatar

jjsty1e jjsty1e

View GitHub Profile
@jjsty1e
jjsty1e / lsmod
Last active March 30, 2018 08:24
ls extend
#!/bin/bash
#########################################################################
# File Name: Advanced_ls_commond.sh
# Author: LookBack
# Email: admin#dwhd.org
# Version:
# Created Time: 2015年09月09日 星期三 03时52分41秒
# usage: wget -cq http://www.dwhd.org/script/lsmod -O /bin/lsmod && chmod +x /bin/lsmod && echo 'alias ls="/bin/lsmod"' >> ~/.bashrc && . ~/.bashrc
#########################################################################
<?php
$data = [
(object)[],
(object)[]
];
echo json_encode($data) . "\n";
echo json_encode($data, JSON_FORCE_OBJECT);
<?php
$pharFile = 'bin/fanyi.phar';
if (file_exists($pharFile)) {
unlink($pharFile);
}
$phar = new Phar($pharFile);
@jjsty1e
jjsty1e / concurrency.php
Created March 21, 2023 01:54
PHP并发请求测试
<?php
// 循环次数
$batch = 10;
// 请求地址
$url = 'http://example.com/';
// 请求头
@jjsty1e
jjsty1e / zentao.php
Created March 24, 2023 05:31
禅道bug提醒
<?php
try {
// 请求头
$headers = [
'Content-Type: application/json',
];
$payload = json_encode([
'msgtype' => 'markdown',