05 2020 档案

摘要:<?php namespace jwt; /** * PHP实现jwt */ class Jwt { //头部 private static $header=array( 'alg'=>'HS256', //生成signature的算法 'typ'=>'JWT' //类型 ); //使用HMAC生成 阅读全文
posted @ 2020-05-30 13:13 酷酷的城池 阅读(213) 评论(0) 推荐(0) 编辑
摘要:html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter:progid:DXImageTr 阅读全文
posted @ 2020-05-26 14:00 酷酷的城池 阅读(118) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash current=`date "+%Y%m%d%H%M%S"` source 引入配置文件/config1.sh key=`echo -n $current$hash_key|md5sum|cut -d" " -f1` status="`ps -ef |grep "curl 配 阅读全文
posted @ 2020-05-26 11:09 酷酷的城池 阅读(1994) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python3 import sys import imp import jieba import jieba.posseg as psg import urllib.parse ################################################# 阅读全文
posted @ 2020-05-25 09:02 酷酷的城池 阅读(585) 评论(0) 推荐(0) 编辑
摘要:这三个类的主要区别在两个方面:运算速度(运算性能或执行效率)和线程安全性。 1、运算速度比较(通常情况下):StringBuilder > StringBuffer > String String是final类不能被继承且为字符串常量,而StringBuilder和StringBuffer均为字符串 阅读全文
posted @ 2020-05-16 14:41 酷酷的城池 阅读(144) 评论(0) 推荐(0) 编辑
摘要:<?php function curl_get($url,$header=[]){ if(!$header){ $header = array( 'Accept: application/json', ); } $curl = curl_init(); //设置抓取的url curl_setopt( 阅读全文
posted @ 2020-05-12 13:59 酷酷的城池 阅读(187) 评论(0) 推荐(0) 编辑
摘要:#ik_max_word搜索用ik_smart$ curl -X PUT 'localhost:9200/accounts' -d ' { "mappings": { "properties": { "user": { "type": "text", "analyzer": "ik_max_word 阅读全文
posted @ 2020-05-07 18:02 酷酷的城池 阅读(1132) 评论(0) 推荐(0) 编辑
摘要:搞学习猿学:http://yuanxue365.com/简书:https://www.jianshu.com/doyoudo:http://www.doyoudo.com/好知网:http://www.howzhi.com/找书籍ePuBw(优质电子书下载网站):https://epubw.com/ 阅读全文
posted @ 2020-05-06 14:44 酷酷的城池 阅读(716) 评论(0) 推荐(0) 编辑
摘要:<?php #生产 $rk = new RdKafka\Producer(); $rk->setLogLevel(LOG_DEBUG); $rk->addBrokers("127.0.0.1"); $topic = $rk->newTopic("test3"); for ($i = 0; $i < 阅读全文
posted @ 2020-05-06 14:28 酷酷的城池 阅读(823) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示