-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
网站收集 #92
Comments
JavaScript深入系列、JavaScript专题系列 http://t.cn/RaIQqJo M不假思索答: |
人民日报那种图片合成http://refined-x.com/projects/codes/tracking.html |
https://curl.trillworks.com/ https:/zhangyingwei/cockroach https:/ligyxy/DictMySQL https://www.v2ex.com/t/416035#reply40 我做了一款可以快速打开常用网页的 Chrome 效率插件 https://anyshortcut.com/ https://www.v2ex.com/t/415551#reply34 推广自己的扩展: http://bm.to0l.cn/ PHP 页面怎么直接跳转到微信内置浏览器中的 https://m.8864.org/ywt1218.php https://www.v2ex.com/t/416106#reply15
|
如何抓包 拿到 session_id 下载最新 charlesproxy 在手机端安装完证书后 请进入 设置 - 通用 - 关于本机 - 证书信任设置 当中有 Charles 的证书 请把后面的开关打开 批量插入,需要保证 NOT NULL 字段有值insert into database.table (id, key, field) 单条更新update database.table set field = v3 where key = v1; https://blog.zhengxianjun.com/ JavaScript 浮点数神坑当属 0.1 + 0.2 == 0.3 为 false https://openexchangerates.github.io/accounting.js/ PHP static 指向运行的 class,一般只有子类覆盖父类的 static 成员或者方法时,在父类中使用 static 会访问到子类
} class ChildClass extends ParentClass ParentClass::run(); // 输出 ChildClass::run(); // 输出
}
}JavaScript Crypto-JS 使用手册https://blog.zhengxianjun.com/2015/05/javascript-crypto-js/ http://xn--vq3al9d.xn--6qq986b3xl/ 郝越.我爱你 server { listen 80; server_name xn--vq3al9d.xn--6qq986b3xl; index index.php; root /alidata/www/love;}在百度搜索“中文域名编码”,进入在线编码的网站,提交中文域名,即可将中文域名转为 punycode 或者是 GBK 编码。在 nginx 配置文件中使用 punycode 即可 $idn = idn_to_utf8($xn_idn); User 登录网站 A(存在 CSRF 攻击漏洞的网站) |
XSS。简单地说,就是网页被不信任源注入了可执行脚本。 CSRF 全称是 Cross-Site Request Forgery,指攻击者盗用了用户的身份,以用户的身份发送恶意请求。 $ar2 = [1,2,3,4,5]; if (!array_diff($ar1,$ar2) && !array_diff($ar2,$ar1)) return 'equal'; http://pan.baidu.com/s/1jIl6fwa 视频教程在线观看地址: https://www.bilibili.com/video/av12522583/ ob_clean这个函数的作用就是用来丢弃输出缓冲区中的内容,如果你的网站有许多生成的图片类文件,那么想要访问正确,就要经常清除缓冲区 jsapi http://paysdk.weixin.qq.com/ |
//$serverOk = $redis->connect($host, $port); 昨天看到一个微服务框架,很值得关注 |
(new \DateTime ($time))->diff(new \DateTime ())->format('%a天前');
function weekday($year, $week = 1){
$year_start = mktime(0,0,0,1,1,$year);
$year_end = mktime(0,0,0,12,31,$year);
if (intval(date('w',$year_start)) === 1){
$start = $year_start;
}else{
$start = strtotime('+1 monday',$year_start);
}
if ($week === 1){
$weekday['start'] = $start;
}else{
$weekday['start'] = strtotime('+'.($week-0).' monday',$start);
}
$weekday['end'] = strtotime('+1 sunday',$weekday['start']);
if (date('Y',$weekday['end'])!=$year){
$weekday['end'] = $year_end;//跳过今年
}
return array_map(function($i){
return date('Y-m-d',$i);
},$weekday);
}function urlsafe_base64_encode($data)
{
return strtr(base64_encode($data), ['+' => '-', '/' => '_', '=' => '']);
}
window.invitationData = {
status:'{{$status}}',
top_status:'{{$top_status}}',
- rule:'{{$rule}}',
+ rule:decodeURIComponent('{{urlencode($rule)}}'), |
算法学习 Golang 版 https:/ningskyer/Algorithms-Learning-With-Go
|
Web黑盒渗透思路之猜想 http://www.freebuf.com/articles/web/161491.html def fib():
prev, curr = 0, 1
while True:
yield curr
prev, curr = curr, curr + prev
>>> f = fib()
>>> list(islice(f, 0, 10))
[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
def something():
result = []
for ... in ...:
result.append(x)
return result
def iter_something():
for ... in ...:
yield x 和孩子一起玩编程》在当当已经可以购买了 一个月看一次,十万户 半年看一次,百万户 两年看一次,千万户 v我的策略是看大趋势,短期定投,达到盈利目标就抛,绝不贪心。稳健操作,合理控仓。BUT.我那些一直持币不动的朋友都发财了... 错过了比特币,错过了以太坊,因为关注的时机太晚了。然后下功夫研究数字货币这半年,果断在11月3号入手了eos,价格在5块钱。到了写本答案的时间12月3号,价格在26块,涨了5倍多,赚的钱量级在几百万,只用了一个月的时间,未来预计还有3-10倍的涨幅。还有参与ico的项目,目测也能至少10-30倍回报。 |
先注册密码为240610708的用户A。 node.js通过npm install -g anyproxy 安装AnyProxy 移动端通过wifi代理启用anyproxy的服务器的ip,端口默认为8001 移动端要安装证书才能使用,不然无法拦截https请求 然后移动端通过浏览器进入 ip:8002 点击下载crt证书 进行安装 ios要在设置 通用 关于本机 最下面的证书信任里面吧anyproxy打开 MySQL 查找某些列有重复的数据项https://hyjk2000.github.io/2011/12/15/find-duplicate-records-in-mysql/ function structToArray($item) { $file = fopen($url, "rb"); $bin = fread($file, 2); fclose($file); $strInfo = @unpack("C2chars", $bin); $typeCode = intval($strInfo['chars1'].$strInfo['chars2']); $isGzip = 0; switch ($typeCode) {
} echo $url = $isGzip ? "compress.zlib://".$url:$url; // 三元表达式 $result = []; print_r($result); |
#图片转字符
#encoding=utf-8
from PIL import Image # 图像处理模块
#from urllib import request #网络请求模块
ASCII_CHARS = [' ', '#', '?', '%', '.', '+', '.', '*', ':', ',', '@']
# 压缩图片
def scale_image(image, new_width=60):
(original_width, original_height) = image.size # 获取原图尺寸
aspect_ratio = original_height/float(original_width) * 0.5 # 计算高宽比,因为输出文本有2倍行距,所以乘0.5维持高宽比
new_height = int(aspect_ratio * new_width)
new_image = image.resize((new_width, new_height))
return new_image
# 灰度模式
def convert_to_grayscale(image):
return image.convert('L') # 调用image对象自己的.convert()方法
def map_pixels_to_ascii_chars(image, range_width=25):
# 将每个像素根据其灰度值映射为一个字符,每个字符对应25个灰度值
pixels_in_image = list(image.getdata()) # 获取原图灰度值列表
pixels_to_chars = [ASCII_CHARS[int(pixel_value/range_width)] for pixel_value in pixels_in_image]
# 对于每个像素点,将其灰度值转换为列表ASCII_CHARS的索引
return "".join(pixels_to_chars)
def convert_image_to_ascii(image, new_width=60):
image = scale_image(image, new_width) # 调用scale_image()函数,压缩图片
image = convert_to_grayscale(image) # convert_to_grayscale()函数,转换为灰度图
pixels_to_chars = map_pixels_to_ascii_chars(image) # 映射至字符集
len_pixels_to_chars = len(pixels_to_chars) # 获取字符集长度
image_ascii = [pixels_to_chars[index: index + new_width] for index in range(0, len_pixels_to_chars, new_width)]
return "\n".join(image_ascii)
def handle_image_conversion(image_filepath, new_width=60):
image = Image.open(image_filepath) # Image.open()打开源图片
image_ascii = convert_image_to_ascii(image, new_width) # 调用上面的convert_image_to_ascii()函数
print(image_ascii) # 输出字符画
image_file_path = 'loveyou.jpg' # 图片的本地名称
#image_url = "http://upload.wikimedia.org/wikipedia/en/thumb/9/9c/Tencent_QQ.png/64px-Tencent_QQ.png" # 图片的网络地址
#request.urlretrieve(image_url, image_file_path) # 将网络图片下载到本地,并重命名
handle_image_conversion(image_file_path) # 启动handle_image_conversion()这个总函数
from subprocess import Popen, PIPE
import os,sys
''' 获取 ifconfig 命令的输出 http://cuiqingcai.com/3494.html'''
def getIfconfig():
p = Popen(['ifconfig'], stdout = PIPE)
data = p.stdout.read()
return data
$msg = pack('C2v',0x22,0x33,0x0532); $data = unpack('C2head/vnumber',$msg);https://my.oschina.net/cxz001/blog/1607227
https://www.luyuqiang.com/and-operation-handle-many-one-relationship
>>> (new Datetime('2018-02-22T16:00:00.000Z'))->format('Y-m-d H:i:s')
=> "2018-02-22 16:00:00"
在开启一个事务没有执行commit方法或者rollBack方法,在脚本最后也不会执行commit方法,但是将会执行rollBack方法.https://www.luyuqiang.com/pdo-transaction
https://www.kkcoin.com/user/reg https://www.luyuqiang.com/vpn 搭建自己的VPN
preg_replace('/下载\$/','',$str);
$str = "Shanghai";
echo bin2hex($str) . "<br>";
echo pack("H*",bin2hex($str))
/**
*字符串转十六进制函数
*@pream string $str='abc';
*/
public function strToHex($str){
$hex="";
for($i=0;$i<strlen($str);$i++)
$hex.=dechex(ord($str[$i]));
$hex=strtoupper($hex);
return $hex;
}
/**
*十六进制转字符串函数
*@pream string $hex='616263';
*/
public function hexToStr($hex){
$str="";
for($i=0;$i<strlen($hex)-1;$i+=2)
$str.=chr(hexdec($hex[$i].$hex[$i+1]));
return $str;
}
过滤掉控制字符.函数如下:
function strip_control_characters($string){
return preg_replace('/[\x00-\x1F\x7F-\x9F]/u', '', $string);
}https://www.luyuqiang.com/xml-worth-to-mention
$arr = array('a-b-c'=>'abc');
$obj = (object)($arr);
//如何获取'a-b-c'字段的值?
echo $obj->a-b-c;//报错
echo $obj->'a-b-c';//报错
echo $obj->{'a-b-c'};//正常
MySQL中orderby和limit分页数据重复的问题
select * from table order by sequence desc,id asc limit 0,10 https://www.luyuqiang.com/mysql-orderby-limit-may-get-troblems
echo "\xE8\xA6\x81";
echo pack('H*','E8A681');
error_reporting(0);
function _rare_shutdown_catch_error(){
$_error=error_get_last();
if($_error && in_array($_error['type'],array(1,4,16,64,256,4096,E_ALL))){
echo '致命错误:'.$_error['message'].'</br>';
echo '文件:'.$_error['file'].'</br>';
echo '在第'.$_error['line'].'行</br>';
}
}https://zhuanlan.zhihu.com/p/33235721
register_shutdown_function("_rare_shutdown_catch_error");
api 接口测试 http://coolaf.com/tool/testing
$check = $redis->exists($key);
if($check){
$redis->incr($key);
$count = $redis->get($key);
if($count > 10){
exit('your have too many request');
}
}else{
$redis->incr($key);
//限制时间为60秒
$redis->expire($key,60);
}https://my.oschina.net/aibati2008/blog/692910
存在就更新,不存在就插入在并发情景下一个常见的BUG探讨
https://sanit1.github.io/2016/11/16/%E5%AD%98%E5%9C%A8%E5%B0%B1%E6%9B%B4%E6%96%B0%EF%BC%8C%E4%B8%8D%E5%AD%98%E5%9C%A8%E5%B0%B1%E6%8F%92%E5%85%A5%E5%9C%A8%E5%B9%B6%E5%8F%91%E6%83%85%E6%99%AF%E4%B8%8B%E4%B8%80%E4%B8%AA%E5%B8%B8%E8%A7%81%E7%9A%84BUG%E6%8E%A2%E8%AE%A8/
ab -c 3 -n 3 -p post.txt application/x-www-form-urlencoded http://xxx.xxx.xxx/xx app(‘redis’)->setnx(md5(请求的参数)); 再根据你的实际业务需求设置这个key的过期时间。只有在set成功的情况下再进入库(测试过,就算并发进来。对用一个key只可能set成功一次)。
```js
$ apidoc -i .
warn: Please create an apidoc.json configuration file.
info: Done.
vi apidoc.json
{}
$ apidoc -i .
warn: Please create an apidoc.json configuration file.
warn: parser plugin 'param' not found in block: 1
info: Done. https://sanit1.github.io/2016/10/24/API%E6%96%87%E6%A1%A3%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90/
$f = 0.58;
echo intval($f * 100); // 输出57
sprintf("%.2f",$f * 100); //输出58.00
while($i<10) {
$start = microtime(true);
$ret = ser($arr);
$end = microtime(true);
echo $end - $start;
echo '</br>';
$i++;
} http://kphcdr.com/blog/10 https:/kphcdr/ppphp |
https://developers.google.com/machine-learning/crash-course/ 谷歌推出的免费《机器学习速成课程》 rpm -qa |grep php //找出系统所有的包,找到对应的文件名 rpm -ql php70u-fpm-7.0.27-1.ius.centos7.x86_64 预约成功后入队列,json 结构 {'user_id':123,'webinar_id':123456789} 用一个有序集合来保存延迟任务,member保存任务内容,score保存(当前时间 + 延时时间)。 程序只要用有序集合的第一条任务的score和当前时间做比较,如果当前时间比score小,说明有序集合的所有任务还没到执行时间。 执行时根据用户 id 得到对应 openid 来发消息 |
32个网站搞定一切中外电子书籍及杂志 1.Library Genesis Free Book Spot是一个免费英文电子书大全网站,它提供有4485本免费电子书,分为96个分类,高达71.97GB。你可以通过分类搜索这些免费电子书,比如科学,工业,编辑,小说或其它电子书。并且没有注册要求,就可以免费下载电子书。 Free Computer Books是一个专门收集计算机,编辑,数学,演讲报告和教程等专业知识电子书的网站。它的网站分类结构非常细致,达到12层的分类系统,超过150个子分类。方便你的电子书搜索查找。 8.Globusz 9.Project Gutenberg 10.Online Computer Books 11.Book Yards 12.The Online Books Page 13.Baen Free Library 14.eBook Lobby 15.DailyLit 16.Wiki books 17.freebooks 4 doctors 二、中文书籍 2.书格 3.国家数字图书馆 4.国学导航 5.古诗文网 6.好读 三、中外杂志 这里说的电子书是指文学性质较强的书籍,而不是网上各种连载的小说。 1:鸠摩搜书 2:书伴 3:西林街 4:书格 网址: https://shuge.org 6:bartleby 7:FreeBookSpot |
❤ |
666 |
1 similar comment
666 |
北京市五险一金及税后工资计算器
能定时提醒的公众号
数据模拟神器
设计模式
函数链 不编写代码都能制造出功能的系统
神箭手云爬虫
战狼2[高清抢先版]
开源扫描器
领先的编程训练平台
在线作图
在线电影
印记中文
产品经理网址导航
周星驰
文件传输
来看看老黄历
不会百度
泷泽萝拉
github预览
看网站历史快照的网站
图片涂鸦
markdown 微信https:/dyc87112/online-markdown
程序员搜索
QQ 消息分析可视化
Tensorflow 初级教程
短地址服务 https://crz.im/
ppt online
生成各类虚拟数据
一个生成pdf文件的微服务
在线一键下载网页上的音频、视频文件https://videocyborg.com/
在线一键打包下载网页上的所有图片https://imagecyborg.com/
知乎TOP 500 赞的回答https://zhuanlan.zhihu.com/p/26779637
爬取张佳玮138w+知乎关注者:数据可视化https://zhuanlan.zhihu.com/p/28155565
页面截图https:/Runjuu/page2image
在线思维导图工具
女朋友的微博情绪监控https:/DIYgod/Text2Emotion
以 RSS 形式输出消极情绪的微博https:/DIYgod/Weibo2RSS
最容易听懂的PS零基础入门教程合集https://www.3wplan.com/uiiiuiii-com-photoshop-12121781/
使用 Sublime + PlantUML 高效地画图http://www.jianshu.com/p/e92a52770832
V 友博客墙: http://chuangzaoshi.com/friends
简单图床https://simimg.com/ https://jiantuku.com/
中国5级行政区域mysql库https:/kakuilan/china_area_mysql
PDF 去文字水印https:/hwding/pdf-unstamper
开源的人脸识别系统http://face.icybee.cn/ markdown2html https:/hanzichi/codedog
http://www.yanshuo.me/ 中文版的 reddit 社区
google hosts文件https:/racaljk/hosts
https://www.v2ex.com/t/382225#reply548 新做了个网页解密网站https://harrynull.tech/cipher/
聚合搜索工具https://so.mezw.com/
https://ip.sb/ 免费查询 IPv4、IPv6
Youtube下载链接获取https://www.findyoutube.net/
JSON processor.https://stedolan.github.io/jq/
PHP7扩展开发 系列教程https:/owenliang/php7-extension-explore
http://www.uupoop.com/ 在线 ps
床上控制床外电脑播放音乐 https:/hmgle/quietbox
tex 公式转 image https://tools.zengxs.com/
黑公司列表https:/shengxinjing/programmer-job-blacklist 主动离职一毛钱没有,被动离职公司有 N+1 的赔偿
《阿甘正传》全网资源搜索http://dianying.fm/movie/forrest-gump/
程序员模板简历 https:/geekcompany/ResumeSample
Sendanywhere https://send.firefox.com
https://gotools.org/net/http 在线阅读go代码工具
微信聊天机器人 https:/aiden0z/wx_robot_example
Python实现火车票爬虫工具https://www.shiyanlou.com/courses/623
新版代码已上传到Github:https:/protream/tickets
微博档案http://emule.weibodangan.com/
Linux基础http://linuxtools-rst.readthedocs.io/zh_CN/latest/base/index.html
MacOS版微信小助手https:/TKkk-iOSer/WeChatPlugin-MacOS
正则表达式https:/zeeshanu/learn-regex/blob/master/README-cn.md
全文搜索引擎 ElasticSearch 入门教程https:/jaywcjlove/handbook/blob/master/CentOS/Elasticsearch%E5%AE%89%E8%A3%85%E7%BB%B4%E6%8A%A4.md http://www.ruanyifeng.com/blog/2017/08/elasticsearch.html https:/baidu/Elasticsearch
PHP Coding Standards Fixerhttp://cs.sensiolabs.org/
模型生成妹子头像http://make.girls.moe/#/ https:/makegirlsmoe
MySQL 零碎https:/jiajunhuang/blog
https://cn.office-converter.com/
phpbot.org 编写PHP代码片段终极机器人
http://www.iloveimg.com/
Latex 在线数学编辑器 Mathcha.io
https:/prettydiff/prettydiff/ http://prettydiff.com/
http://xiuxiu.web.meitu.com/main.html 监控微博关键词 https://kb.civiw.com/home dizhen 、密码dizhen
了解下机器学习http://pan.baidu.com/share/init?shareid=108166332&uk=453355197 密码:rtd0
一个Elasticsearch的Web UI https:/appbaseio/dejavu
http://www.xilinjie.com/hao/ 收集网站
Deep Learning联合翻译声明https:/Yukong/Deeplearning.ai-Solutions
三十分钟完成一个“我们是谁”编辑器https://zhuanlan.zhihu.com/p/28576854
一个获取知乎用户主页信息的多线程Python爬虫程序。https://zhuanlan.zhihu.com/p/28589296
给深度学习入门者的Python快速教程 - 基础篇https://zhuanlan.zhihu.com/p/24162430
发现中国(webdog.cn),一个有诚意的历史地图网站
基于 PHP 的简繁体转换工具 gitee.com/flyhope/opencc4php
Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSONhttps:/sripathikrishnan/redis-rdb-tools/
360 度全景图库https://kuula.co/
https:/LJ147/Awesome-WeChat
https:/Justson/DingDingHelper
fanqiang http://fuck-the-wall.chxj.name https:/chxj1992/shadowsocks-manager-docker
定时提醒的公众号https:/polyrabbit/WeCron
聊天机器人资源合集https:/fendouai/Awesome-Chatbot
数据模拟神器 easy-mock https:/easy-mock/easy-mock
各大编程语言的职位统计信息https:/GuozhuHe/webspider
获取外网 IPhttps:/HFIProgramming/whatip
Ngrok 比较方便https:/Yaoshicn/make-ngrok
html 预览功能http://htmlpreview.github.io/?https:/twbs/bootstrap/blob/gh-pages/2.3.2/index.html
匿名分享某个收藏夹http://linkbuckets.com/
带 Ai 的智能在线图像压缩: https://Goimg.io
页面截图https:/Runjuu/page2image
英语学好之语法https:/TechMoron/EnglishGrammar http://zhibimo.com/books/xiaolai/everyone-can-use-english https:/byoungd/english-level-up-tips-for-Chinese
在线思维导图工具https://aonaotu.com/
微信第三方的客户端https:/trazyn/weweChat
人脸识别平台http://git.oschina.net/icybee/icyblog
mysql 库https:/kakuilan/china_area_mysql
PDF 去文字水印https:/hwding/pdf-unstamper
简单图床 https://simimg.com/ sm.ms https://jiantuku.com/
搞笑内容分享网站 http://www.gaoxiaotu.net/ https://lao4j.com/page/2/ http://www.1tu.me/
markdown2html https:/hanzichi/codedog
网盘http://www.yibensou.com/s/%E5%B9%BC%E5%A5%B3/1
QQ 机器人https:/pandolia/qqbot
Vue.js相关资源大合集https:/vuejs/awesome-vue
10分钟学会Pandashttps://bigquant.com/docs/learn_pandas_in_10_minutes.html?fm=sina&dt=0831
人工智能第一课https://mooc.study.163.com/smartSpec/detail/1001319001.htm/?utm_source=weibo.com&utm_medium=timeline&utm_campaign=deepLearning&utm_content=wnd20170831
Elasticsearch: 权威指南https://www.elastic.co/guide/cn/elasticsearch/guide/current/index.html
笨办法学 Linux 中文版https://wizardforcel.gitbooks.io/llthw/content/?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io
RESTful API 文档生成工具github.com/caixw/apidoc
webshell更新https:/tanjiti/webshellSample/blob/master/PHP/ransomware/AwesomeWare.php
apk逆向工程工具https:/iBotPeaches/Apktool
一个redis的Python客户端。https:/NoneGG/aredis
python计算文本相似度? 输入是两个文本文件,输出两个文本相似百分比 gensim
先知xss挑战赛的writeuphttps://mp.weixin.qq.com/s/d_UCJusUdWCRTo3Vutsk_A
ABBYY提供免费的在线OCR服务http://ocr.abbyy.cn/
读取音频文件元数据的项目https:/devsnd/tinytag pip install tinytag
帮大家看开源库的工具https://juejin.im/repos
正则表达式的基础教程https:/zeeshanu/learn-regex/blob/master/README-cn.md
基于LibLinear和结巴分词的短文本分类工具https:/2shou/TextGrocery
一个分布式的crontabhttp://t.cn/RKtsxA4
最好用的百度网盘搜索引擎http://www.wodepan.com/
一个实用的比价网站http://www.b1bj.com/
Restful Api 集成测试工具https:/brookshi/Hitchhiker/blob/master/README_cn.md?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io
avaScript 真值表https://thomas-yang.me/projects/oh-my-dear-js/
在线播放种子https:/webtorrent/webtorrent
强大的数据科学库:pandashttps:/hangsz/pandas-tutorial
关于web安全的资料收集https:/CHYbeta/Web-Security-Learning
The text was updated successfully, but these errors were encountered: