API • 随机句子、随机图片API收集

一言https://hitokoto.cn/apihttps://api.ixiaowai.cn/api/ylapi.phphttps://api.uixsj.cn/hitokoto/w.phphttps://v1.jinrishici.com/z话https://nmsl.shadiao.app/api.php二次元http://illii.cn/api.phphttp://pic.tsmp4.net/api/erciyuan/img.phphttp://api.pingping6.com/girl2/?type=302http://api.mtyqx.cn/tapi/random.phphttp://api.mtyqx.cn/api/random.phphttp://www.dmoe.cc/random.phphttps://api.dujin.org/pic/https://api.ixiaowai.cn/api/api.phphttp://api.btstu.cn/sjbz/?lx=dongman三次元https://cdn.mom1.cn/?mom=302http://pic.tsmp4.net/api/nvsheng/img.phphttp://api.btstu.cn/sjbz/?lx=meizi风景http://pic.tsmp4.net/api/fengjing/img.phphttp://lorempixel.com/1600/900/https://api.ixiaowai.cn/gqapi/gqapi.phpBing日图https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicturehttps://bing.ioliu.cn/v1/rand另外其他随机图片API请参见该文:https://cway.top/post/550.html

Yandex Mail、Zoho Mail可设置自定义域名邮箱推荐

注册Yandex Mail账户账户注册地址地址:https://mail.yandex.com/登入地址地址:https://mail.yandex.com/?pdd_domain=自定义域名Zoho免费企业邮局官方网站网站:https://www.zoho.com/ 我们可以看到当前Zoho提供的企业邮局有免费和付费账户,但是一般我们普通用途,免费账户足够使用,免费版本目前不支持POP、SMPT,建议购买付费版本。(这里有一个技巧,我们一定要在.COM域名下才行,千万不要跑进zoho.com.cn域名,因为两者是完全不同的账户,不畅通的。)

极简网盘-极简且美观的多用户网盘程序:Veno File Manager汉化版

一款极简的网盘程序,不臃肿,界面美观的自适应网盘程序,支持密码分享、远程下载等功能,支持多用户注册。原程序付费,目前官方最新版本:3.5.5 (2020.1.14)正版购买下载地址:http://filemanager.veno.it演示:http://pan.hik.win使用:        搭建好PHP环境,然后将源码上传到网站根目录即可,默认登录管理的用户名是admin密码是password,进后台后记得设置一下语言和更改密码。汉化版下载:veno-file-manager-v3.4.8密码:uepa|大小:3.5M已经过安全软件检测无毒,请您放心下载。

极简网盘-极简且美观的多用户网盘程序:Veno File Manager汉化版

判断百度蜘蛛偷偷进行转移权重301,给新站提权

  功能说明:   1.判断蜘蛛跳转   2.支持多个域名随机跳转   3.判断百度搜索进去不进行跳转(防止被发现)   4.正常浏览器访问不跳转   5.过安全狗防护使用方法:   以下代码新建为:useragent.func.php(可以放在隐蔽的地方)   然后在你网站程序核心函数,例如:dedecms动态页面可以在:index.php  进行引入自己新建的代码为: require_once (dirname(__FILE__) . "/useragent.func.php");<?php/**作者:68喜科技*/error_reporting(E_ALL^E_NOTICE^E_WARNING);$xieyi="http://";function checkrobot($useragent=''){        static $kw_spiders = array('bot', 'crawl', 'spider' ,'slurp', 'sohu-search', 'lycos', 'robozilla');        static $kw_browsers = array('msie', 'netscape', 'opera', 'konqueror', 'mozilla');          $useragent = strtolower(empty($useragent) ? $_SERVER['HTTP_USER_AGENT'] : $useragent);        if(strpos($useragent, 'http://') === false && dstrpos($useragent, $kw_browsers)) return false;        if(dstrpos($useragent, $kw_spiders)) return true;        return false;}function dstrpos($string, $arr, $returnvalue = false) {        if(empty($string)) return false;        foreach((array)$arr as $v) {                if(strpos($string, $v) !== false) {                        $return = $returnvalue ? $v : true;                        return $return;                }        }        return false;}//网址随机输出,可以填写多个随机输出转移权重的网址$url[0] = "http://demoo1.com";$url[1] = "http://demoo2.com";$url[2] = "http://demoo3.com";$url[3] = "http://demoo4.com";$url[4] = "http://demoo5.com";$url[5] = "http://demoo5.com";srand ((double)microtime()*1000000);$randomnum = rand(0, count($url)-1);if(checkrobot()){    Header("Location:$url[$randomnum]");                 header('HTTP/1.1 301 Moved Permanently');                header("Location:$url[$randomnum]");                    exit;}//判断的是百度,如果是百度点击进去就不跳转,防止被发现if(stristr ($_SERVER['HTTP_REFERER'],"baidu.com")){                     $file = file_get_contents( $xieyi.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);                          echo $file;                exit;    exit;       }?>

贴吧签到PHP单文件版

修改bduss,然后用定时任务访问即可。代码:<?php date_default_timezone_set('PRC'); set_time_limit(0); echo "=========【".date('Y-m-d H:i:s')."】========="."\r\n"; //身份标识 $bduss="填写bduss";    /*定义自定义函数*/    function xCurl($url,$cookie=null,$postdata=null,$header=array()){        $ch = curl_init();        curl_setopt($ch, CURLOPT_URL,$url);        if (!is_null($postdata)) curl_setopt($ch, CURLOPT_POSTFIELDS,$postdata);        if (!is_null($cookie)) curl_setopt($ch, CURLOPT_COOKIE,$cookie);        if (!empty($header)) curl_setopt($ch, CURLOPT_HTTPHEADER, $header);        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);        curl_setopt($ch, CURLOPT_TIMEOUT, 50);        $re = curl_exec($ch);        curl_close($ch);        return $re;    };    /*贴吧客户端请求头*/    $tieba_header = array(        'Content-Type: application/x-www-form-urlencoded',        'Charset: UTF-8',        'net: 3',        'User-Agent: bdtb for Android 8.4.0.1',        'Connection: Keep-Alive',        'Accept-Encoding: gzip',        'Host: c.tieba.baidu.com',    );    /*浏览器请求头*/    $firefox_header = array(        'Host: tieba.baidu.com',        'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0',        'Accept: */*',        'Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',        'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',        'Referer: http://tieba.baidu.com/',        'Connection: keep-alive',    );        //获取tbs    $re=json_decode(xCurl('http://tieba.baidu.com/dc/common/tbs','BDUSS=' . $bduss,null,$firefox_header),true);    if (! $re['is_login']) {     echo "bduss 失效!";     exit;    }    //组织提交参数    $tbs = $re['tbs'];    $postdata = array ('BDUSS='.$bduss,'tbs=' . $tbs);    $postdata = implode('&', $postdata).'&sign='.md5(implode('', $postdata).'tiebaclient!!!');    //执行签到操作    function dosign($bduss,$tbs,$postdata,$tieba_header){     //获取关注贴吧列表     for ($pageno = 1; 1 ; $pageno ++){      $postdata='BDUSS='.urlencode($bduss).'&_client_version=8.1.0.4'.'&page_no=' . $pageno.'&page_size=100'.'&sign='.md5('BDUSS='.$bduss.'_client_version=8.1.0.4'.'page_no='.$pageno.'page_size=100'.'tiebaclient!!!');      $res = json_decode(gzdecode(xCurl('http://c.tieba.baidu.com/c/f/forum/like','ca=open',$postdata,$tieba_header)),true);      //循环执行签到      foreach ($res['forum_list']['non-gconforum'] as $list) {      echo '尝试签到[' . $list['name'].']吧:';      $ret = json_decode(gzdecode(xCurl('http://c.tieba.baidu.com/c/c/forum/sign','ca=open','BDUSS='.urlencode($bduss).'&fid='.$list['id'].'&kw='.urlencode($list['name']).'&sign='.md5('BDUSS='.$bduss.'fid='.$list['id'].'kw='.$list['name'].'tbs='.$tbs.'tiebaclient!!!').'&tbs='.$tbs,$tieba_header)),true);      if ($ret['error_code'] == '0'){      echo '签到完成,经验值加' . $ret['user_info']['sign_bonus_point'] . ',你是今天第' . $ret['user_info']['user_sign_rank'] . '个签到的。'."\r\n";      }else{      echo $ret['error_msg'] . '。'."\r\n";      }      }      if ($res['has_more'] == '0'){      break;      }     }    }    dosign($bduss,$tbs,$postdata,$tieba_header);    //执行超级签到,并获取签到结果    //$res = json_decode(xCurl('http://tieba.baidu.com/tbmall/onekeySignin1','BDUSS='.$bduss,'ie=utf-8&tbs='.$tbs,$firefox_header),true);    // echo '签到完成!已签' . @$res['data']['signedForumAmount'] . '个吧,' . @$res['data']['unsignedForumAmount'] . '个吧未签。'."\r\n\r\n";    // //检测是否全部签到成功    // if(!empty($res['data'])&&!empty($res['data']['unsignedForumAmount'])){    //  echo $res['data']['unsignedForumAmount']."个贴吧签到失败,执行重签。"."\r\n";    //  dosign($bduss,$tbs,$postdata,$tieba_header);    // }

显示随机图片随机照片URL收集

https://acg.toubiec.cn/random.phphttp://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302(自然)http://img.xjh.me/random_img.php?tctype=acg&return=302 (竖屏)http://img.xjh.me/random_img.php?type=bg&ctype=acg&return=302https://uploadbeta.com/api/pictures/random/http://api.mtyqx.cn/tapi/random.phphttp://api.mtyqx.cn/api/random.phphttps://random.52ecy.cn/randbg.phphttps://api.ixiaowai.cn/api/api.phphttps://api.ixiaowai.cn/mcapi/mcapi.php一言Api:https://api.ixiaowai.cn/api/ylapi.php

分享几个免费 IP 归属地查询 API

太平洋电脑:https://whois.pconline.com.cn/ipJson.jsp?ip=127.0.0.1淘宝:http://ip.taobao.com/service/getIpInfo.php?ip=127.0.0.1淘宝的对请求间隔时间有要求短时间请求可能会报错。

正则在线测试网站日常收集

可能有些会失效,请大家选择需要的:http://tool.oschina.net/regex/ https://tool.xinke.org.cn/regexp.html http://tools.jb51.net/regex/create_reg https://www.regexpal.com/

Hexo搭建后如何发布网站GitHubPages、码云

Hexo官网:https://hexo.io/zh-cn/与Jekyll 一样是一款优秀快速的开源博客框架框架,安装方案参考官网文档,我就不再赘述:https://hexo.io/zh-cn/docs/同时Hexo也提供多彩的主题下载,官方就有相应的主题模块:https://hexo.io/themes/第一步:搭建局域网blog环境介绍作者使用系统:Deepin Linux 15.3桌面版软件环境:node+npm安装Hexonpm install hexo-cli -g初始化blog$ hexo init blog启动blog$ cd blog$ hexo server至此,本地blog已经创建完成,默认通过127.0.0.1:4000访问,简单到没朋友如果你不喜欢默认主题,可根据下面介绍换上其他漂亮的皮肤选择主题在hexo官网查看自己喜欢的主题通过git clone [url] themes/xxx 将主题克隆到本地,修改 _config.yml 中的theme:xxx以hexo-theme-3-hexo这个主题为例:先在git BASH控制台进入博客目录,使用git命令下载主题到主题文件夹git clone https://github.com/yelog/hexo-theme-3-hexo.git themes/3-hexo修改hexo根目录的_config.yml,如下:theme: 3-hexo如果想更新主题的话也很简单,先进入主题目录然后执行pull命令即可cd themes/3-hexogit pull# 安装后重启服务器 重新渲染页面$ hexo clean && hexo g && hexo s常用命令#创建一个新的文章$ hexo new "文章名"#生成静态文件$ hexo generate#讲一个草稿发布出去$ hexo publish [layout] <filename>#启动一个本地服务器$ hexo server更多命令移步官方文档第二步:搭建github pages局域网blog已经搭建完成,但是我们想让网上所有人都可以看到我们的文章,怎么办呢?又不想自己搭建服务器,别急,这时候就轮到github pages出场了注册github账户到github官网注册一个github账户配置SSH登录免密码许多Git服务器都支持使用SSH公钥进行认证,当然也包括github。首先你需要确认一下自己是否已经拥有密钥了,默认情况下,用户的 SSH 密钥存储在其 ~/.ssh 目录下。~即代表用户目录,Windows系统的话也在其用户目录内。进入该目录并列出其中内容,你便可以快速确认自己是否已经拥有密钥:$ cd ~/.ssh$ lsauthorized_keys2  id_rsa       known_hostsconfig            id_rsa.pub我们需要寻找一对 id_rsa 或 id_dsa 命名的文件,其中一个带 .pub 扩展名。 '.pub'文件是你的公钥,另一个则是私钥。如果没有找不到这样的文件(或者根本就没有.ssh目录),我们可以通过 ssh-keygen 程序来创建它们。#邮箱可以随便填$ ssh-keygen -t rsa -C "xx@xx.com"先 ssh-keygen 会确认密钥的存储位置和文件名(默认是 .ssh/id_rsa),然后他会要求你输入两次密钥口令,留空即可。所以一般选用默认,全部回车即可。接下来我们登陆到GitHub上,右上角小头像->Setting->SSH and GPG keys中,点击new SSH key。Title:可以随便填写,但最好起的名字能让自己知道这个公钥是哪个设备的。Key:将上面生成的.pub文件中的所有内容复制到这里。点击下面的Add SSH key即可。然后你就会发现可以免密码访问了。如果服务端是自己搭建的git服务器,生成密钥公钥对的步骤是一样的。然后将生成的 .pub 文件内容,导入到git服务器 /home/git/.ssh/authorized_keys 文件内,一行一个。然后你就会发现git push 不再需要密码了以上是其中一种连接方式,当然您使用HTTPS方式连接也可以,无需密钥但是首次使用可能需要密码。创建github远程仓库在github上创建一个仓库 xxx.github.io xxx为自己的github用户名配置Hexo修改 _comfig.yml,xxx为你的用户名,前一个是SSH方式,后一个是HTTPS:deploy:   type: git   repo: git@github.com:xxx/xxx.github.io.git   branch: masterdeploy:  type: git  repo: https://github.com/xxx/xxx.github.io.git  branch: master注意上述配置文件中:后面有空格。安装git部署插件$ npm install hexo-deployer-git --save推送服务器$ hexo deploy或者简写$ hexo d最后访问xxx.github.io就可以测试你的网站咯!文章参考:https://www.jianshu.com/p/50e796e038cbhttps://www.jianshu.com/p/3f2fe426edff码云方法同理,可参考:https://blog.csdn.net/wrp0101/article/details/79139996

z-blog实现登录后显示“管理后台”按钮,未登录显示注册

//根据id获取课程 @Override @GetMapping("/coursebase/get/{courseId}") public CourseBase getCourseBaseById(@PathVariable("courseId") String courseId) throws RuntimeException { return courseService.getCourseBaseById(courseId); } //更新课程基本信息 @Override @PutMapping("/coursebase/update/{id}") public ResponseResult updateCourseBase(@PathVariable("id") String id, @RequestBody CourseBase courseBase) { return courseService.updateCourseBase(id,courseBase); }