I am CrazyCodes,生命不息,编码不止。
GitHub : CrazyCodes
CSDN : CrazyCodes
掘金 : GraceDevelopment
不止于技术的微信公众号 : phpznb
与我一起传递技术正能量!
没有足够的数据
北方 关注了用户 · 4月2日
I am CrazyCodes,生命不息,编码不止。
GitHub : CrazyCodes
CSDN : CrazyCodes
掘金 : GraceDevelopment
不止于技术的微信公众号 : phpznb
与我一起传递技术正能量!
I am CrazyCodes,生命不息,编码不止。GitHub : CrazyCodesCSDN : CrazyCodes掘金 : GraceDevelopment 不止于技术的微信公众号 : phpznb与我一起传递技术正能量!
关注 4745
北方 发布了文章 · 3月18日
今天逛 github 发现一个问题,就是 chrome 浏览器自带的翻译会翻译代码块,就像下面这样:
安装完插件之后是这样:
舒服了奥。
链接:https://pan.baidu.com/s/14480sqFh7XCoTR2XMEm9hg 提取码:8wki
今天逛 github 发现一个问题,就是 chrome 浏览器自带的翻译会翻译代码块,就像下面这样:安装完插件之后是这样:舒服了奥。链接:[链接] 提取码:8wki
赞 0 收藏 0 评论 0
北方 发布了文章 · 3月17日
https://www.telerik.com/support/whats-new/fiddler-everywhere/release-history
进入这个地址下载1.5.1版本的finder everywhere
1.设置
创建https证书,并使mac系统信任
2.查看mac当前网络的ip地址
3.手机安装证书
手机打开wifi设置,编辑当前网络,设置如下:
打开浏览器,输入ip+端口,比如 172.16.1.19:8866,会显示如下页面:
点击FiddlerRoot certificate下载证书并点击证书进行安装和信任。
现在的微信做了限制,无法抓取小程序的包,这对开发极其不便,而virtualxposed可以类似docker一样提供一个虚拟的环境,在这个环境里是可以抓小程序的包的。所以需要安装它。
1.https://vxposed.com/ 将安装包发送到手机并安装。
2.打开软件并配置
点击上图中的6个点图标,就会进入设置页面,点击添加应用,选中微信,点击屏幕下方的安装,稍等片刻,微信就安装成功了,返回上图的页面,向上滑动,打开微信。登录后,就可以正常抓包了。
[链接]进入这个地址下载1.5.1版本的finder everywhere1.设置创建https证书,并使mac系统信任2.查看mac当前网络的ip地址3.手机安装证书手机打开wifi设置,编辑当前网络,设置如下:打开浏览器,输入ip+端口,比如 172.16.1.19:8866,会显示如下页面:点击FiddlerRoot ...
赞 0 收藏 0 评论 0
北方 发布了文章 · 3月15日
访问https://registry.hub.docker.c... lnmp镜像地址
打开终端
docker pull 2233466866/lnmp
docker run -it --privileged --name=lnmp -p 20016:80 -p 3306:3306 -v ~/www:/www -v ~/lnmp-data/env/mysqlData:/data/mysql -v ~/lnmp-data/env/nginx.conf:/usr/local/nginx/conf/nginx.conf 2233466866/lnmp
说明:
我的一个项目 目录是~/www/laravel,所以nginx.conf配置文件的内容如下:
user www;
worker_processes auto;
worker_cpu_affinity auto;
pid logs/nginx.pid;
events {
worker_connections 102400;
}
http {
charset utf-8;
server_tokens off;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
include mime.types;
default_type application/octet-stream;
client_max_body_size 20M;
sendfile on;
keepalive_timeout 20;
gzip on;
gzip_vary on;
gzip_comp_level 1;
gzip_types text/css application/javascript application/json image/png image/webp image/apng image/jpeg image/x-icon;
error_log /www/z_error.log;
access_log /www/z_$host.log main;
server {
listen 80;
server_name www.test.com;
root /www/laravel/public;
index index.html index.htm index.php
autoindex on;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.php {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
进入docker中
docker exec -it 容器id /bin/bash
cat /var/log/mysqld.log|grep 'A temporary password'
就会出现密码,用密码连接到mysql中,
alter user user() identified by "ur93Y*Qt,?hN";
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'ur93Y*Qt,?hN' WITH GRANT OPTION;
FLUSH PRIVILEGES;
这样就可以在本地用客户端连接到docker容器中的mysql了。
打开chrome,输入localhost:20016,应该可以看到内容了。
查看原文下载镜像包访问[链接] lnmp镜像地址打开终端 {代码...} 启动docker相关配置 {代码...} 说明:~/www 是工作目录~/lnmp-data/env/mysqlData 是数据库目录~/lnmp-data/env/nginx.conf 是nginx是配置文件20016是本地端口我的一个项目 目录是~/www/laravel,所以nginx.con...
赞 0 收藏 0 评论 0
北方 发布了文章 · 1月21日
赞 0 收藏 0 评论 0
北方 发布了文章 · 2020-08-04
$(document).ready(function () {
$('#formid').validate({ // initialize the plugin
rules: {
'test[]': {
required: true,
maxlength: 2
}
},
messages: {
'test[]': {
required: "You must check at least 1 box",
maxlength: "Check no more than {0} boxes"
}
}
});
});
查看原文{代码...}
赞 0 收藏 0 评论 0
北方 发布了文章 · 2020-06-30
git仓库地址:https://github.com/MasakiOvO/weibo-create-new-post
使用 selenium 写成的 自动发微博脚本
需要在国内服务器上运行脚本
pip install -r requirements.txt
cp config/user.config.example config/user.config
修改config/user.config内的参数
python index.py
在config/message.txt 默认设置的是一些土味情话。
我设置的是每天8点发一条微博
00 08 * * * python3 /www/weibo-auto-new-post/index.py
git仓库地址:[链接] weibo-create-new-post 使用 selenium 写成的 自动发微博脚本 安装依赖 需要在国内服务器上运行脚本 pip install -r requirements.txt 配置 {代码...} 修改config/user.config内的参数 启动脚本 {代码...} 微博内容设置 在config/message.txt 默...
赞 0 收藏 0 评论 0
北方 发布了文章 · 2020-06-10
手机和电脑必须在同一个局域网内。
1.需要知道自己电脑的ip ,可以通过ifconfig查看,端口号要知道,可以在mamp软件中查看服务的端口。
2.修改mamp的配置,把Name换成ip地址
3.修改wordpress的网站地址
4.到此,不出意外的话,就可以通过 http://ip:端口,如果配置了https。访问路径为https://ip:端口
手机和电脑必须在同一个局域网内。1.需要知道自己电脑的ip ,可以通过ifconfig查看,端口号要知道,可以在mamp软件中查看服务的端口。2.修改mamp的配置,把Name换成ip地址3.修改wordpress的网站地址
赞 0 收藏 0 评论 0
北方 发布了文章 · 2020-06-05
$option = [
'pages_text' => null,
'current_text' => null,
'page_text' => null,
'first_text' => null,
'last_text' => null,
'prev_text' => null,
'next_text' => null,
'dotleft_text' => null,
'dotright_text' => null,
'num_pages' => null,
'num_larger_page_numbers' => null,
'larger_page_numbers_multiple' => null,
'always_show' => 0,
'use_pagenavi_css' => 0,
'style' => 1,
];
?>
<div>
<?php
// ページ送り
if( function_exists('wp_pagenavi'))
$option['next_text'] = null;
$option['prev_text'] = '上一页';
wp_pagenavi(array('query' => $wp_query,'options' => $option) );
?>
</div>
查看原文{代码...}
赞 0 收藏 0 评论 0
查看全部 个人动态 →
(゚∀゚ )
暂时没有
(゚∀゚ )
暂时没有
注册于 2017-01-31
个人主页被 1.3k 人浏览
推荐关注