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-03-31T10:12:47.141Z","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 | |
// 可登陆用户列表,按照规则一行一条,用户名必须小写 密码(区分大小写)为md5加密后的结果(不区分大小写) | |
UserAuth::$controlPrefix = 'UserAuth_'; | |
UserAuth::$adminUserList = array( | |
'admin' => 'e10adc3949ba59abbe56e057f20f883e' // 密码 123456 | |
); | |
UserAuth::Check(); // 只有调用此函数才能 对页面登录信息进行验证 | |
class UserAuth { |
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 | |
/** | |
* 文件缓存系统 | |
* | |
* 普通Cache缓存类,适用于大量零碎小数据缓存。大文件缓存不适用。 | |
* | |
* 特点:缓存文件分目录储存,防止单个目录下文件过多导致IO效率变低。 | |
* 可以控制子目录数,文件数始终在一个可以预见的数量范围之内。 | |
* | |
* 说明: |
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 | |
/** | |
* 名称:cURL网页抓取 | |
* 版本:v0.3 | |
* 作者:吣碎De人(http://www.qs5.org) | |
* 最后更新时间:2013年2月4日 | |
* 获取更新:http://www.qs5.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
<?php | |
// 定义文件名 | |
$imgSrc = './1.jpg'; | |
// 获取图片尺寸信息 | |
$imgSize = getimagesize($imgSrc); | |
// 创建图片对象 | |
$imgObj = imagecreatefromjpeg($imgSrc); |
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 | |
/** | |
* cURL网页抓取 | |
* | |
* @param string $_Get_Url 被访问Url | |
* @param string $_Method 访问方式 POST or GET | |
* @param string $_Form_Data POST 数据 | |
* @param string $_Cookie Cookies | |
* @param array $_Headers 头信息 | |
* @param array $_Proxy 代理地址 |
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 | |
# Git Hook Shell | |
eventType=$1; | |
projectPath=$2; | |
echo "---- Shell Run ----" | |
echo "Shell # cd ${projectPath}" | |
cd ${projectPath} |
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
// ==UserScript== | |
// @name Trello Only see Subscribed | |
// @name:zh-CN Trello 只看关注 | |
// @namespace http://www.qs5.org/?trello_only_see | |
// @version 0.1 | |
// @description Add watch-only features to Trello kanbans | |
// @description:zh-CN 给 Trello 看板添加只看关注功能 | |
// @author ImDong | |
// @match https://trello.com/b/* | |
// @grant GM_getValue |
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 | |
# command 操作锁定接管(可适用任何命令,例子以git为例) | |
# git lock 手动锁定 锁定后只有自己可以操作,必须手动解锁才可以释放 | |
# git unlock 解除锁定 除锁定者本人,需要提供 lockID 进行解锁 | |
# git checkout|pull|push|merge 操作时会触发临时锁 指定时间内不能继续操作 | |
# | |
# 安装方法: 移动文件至 /usr/local/bin/git 并添加可执行权限(chmod +x /usr/local/bin/git) | |
# 然后重启终端即可生效,如未生效,则放置于 ${PATH} 中优先级高于 原 git命令的目录即可 | |
# 同理可用于任意命令的前置锁定 |
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 | |
$str = "Uhg fkxufk"; | |
$arr = str_split($str, 1); | |
for ($i=0; $i < 25; $i++) { | |
foreach ($arr as $item) { | |
$val = ord($item); | |
// 空格跳过 | |
$new = $val; | |
if ($val != 32) { |
OlderNewer