狼人杀面杀9~18人各种板子配置这里全都有了!

9人 3狼,3神(预言家,女巫,猎人),3普通村民 没有警徽,刀中女巫可以自救。 狼人屠边。 (不建议加警徽的原因是,有警徽流狼人基本没有空间, 9人配置稍高可以刀中女巫不能自救,狼人更强,对好人的考验更大。当然,你觉得神太强,预言家可以换成熊,或者猎人可以换成白痴。) 10人 3狼,3神(预……

阅读全文

Git保存用户名和密码

Git可以将用户名、密码和仓库链接保存在硬盘上,而不用每次git pull或git push的时候都输用户名和密码。 保存密码到硬盘一条命令就可以了 git config credential.helper store 当git pull或git push的时候输入一次用户名和密码就会被记录了。……

阅读全文

EasyWechat开发微信支付/小程序支付/H5支付/App支付代码实例

代码实例: $tradeType = "支付场景,APP/JSAPI"; $accountPayment = [ 'APP' => [ 'app_id' => 'app_id', 'mch_id' => 'mch_id', 'key' => 'XXXXXXXXXXXXXXXXXXXXXXX', 'cert_path' => app_path('resources/cert/apiclient_cert.pem'), 'key_path' => app_path('resources/cert/apiclient_key.pem'), 'notify_url' => route('weChatNotifyUrl'), ], 'JSAPI' => [ 'app_id' => 'app_id', 'mch_id' => 'mch_id', 'key' => 'XXXXXXXXXXXXXXXXXXXXXXX', 'cert_path' => app_path('resources/cert2/apiclient_cert.pem'), 'key_path' => app_path('resources/cert2/apiclient_key.pem'), 'notify_url' => route('weChatNotifyUrl'), ], ]; $app = Factory::payment($accountPayment[$tradeType]); $order_info = [ 'body' => $title, 'out_trade_no' => $order_number, 'total_fee' => $amount, 'trade_type' => $tradeType, // 交易类型 JSAPI | NATIVE |APP | WAP ]; $result = $app->order->unify($order_info); if ($tradeType == 'JSAPI') { // 微信内H5/小程序支付 $jssdk = $app->jssdk; $config = $jssdk->bridgeConfig($result['prepay_id'], false); } else {……

阅读全文

vim/vi卡死原因

使用vim时,如果你不小心按了Ctrl + s后,你会发现不能输入任何东西了,像死掉了一般,其实vim并没有死掉,这时vim只是停止向终端输出而已,要想退出这种状态,只需按Ctrl + q即可恢复正常。……

阅读全文

shell 判断文件夹或文件是否存在

文件夹不存在则创建 if [ ! -d "/data/" ];then mkdir /data else echo "文件夹已经存在" fi 文件存在则删除 if [ ! -f "/data/filename" ];then echo "文件不存在" else rm -rf /data/filename fi 判断文件夹是否存在 if [ -d "/data/" ];then echo "文件夹存在" else echo "文件夹不存在" fi 判断文件是否存在 if [ -d "/data/test" ];then echo "文……

阅读全文

golang 环境变量设置

cnbattle@coding:~$ vim .profile export GOROOT=/usr/local/go export GOBIN=$GOROOT/bin export GOPATH=$HOME/go-path export GOPATHBIN=$GOPATH/bin export PATH=$PATH:$GOBIN:$GOPATHBIN……

阅读全文

Linux下 ln 命令详解

这是linux中一个非常重要命令,请大家一定要熟悉。它的功能是为某一个文件或目录在另外一个位置建立一个同步的链接,类似Windows下的超级链接。 这个命令最常用的参数是-s,具体用法是: sudo ln -s 源文件 目标文件 举例: 当前目录是/local,而我经常要访问/usr/local/linu……

阅读全文

php7高效生成二维码:composer和荷兰PHP开发者的QrCode

QR Code By endroid This library helps you generate QR codes in a jiffy. Makes use of bacon/bacon-qr-code to generate the matrix and khanamiryan/qrcode-detector-decoder for validating generated QR codes. Further extended with Twig extensions, generation routes, a factory and a Symfony bundle for easy installation and configuration. Installation Use Composer to install the library. $ composer require endroid/qr-code Basic usage use Endroid\QrCode\QrCode; $qrCode = new QrCode('Life is too short to be generating QR codes'); header('Content-Type: '.$qrCode->getContentType()); echo $qrCode->writeString(); Advanced usage use Endroid\QrCode\ErrorCorrectionLevel; use Endroid\QrCode\LabelAlignment; use Endroid\QrCode\QrCode; use Endroid\QrCode\Response\QrCodeResponse; // Create a basic QR code $qrCode = new QrCode('Life is too short to be generating QR codes'); $qrCode->setSize(300); // Set advanced options $qrCode->setWriterByName('png'); $qrCode->setMargin(10); $qrCode->setEncoding('UTF-8'); $qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::HIGH); $qrCode->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]); $qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]); $qrCode->setLabel('Scan……

阅读全文

FreeBSD pkg 更换为国内ustc源

创建用户级 pkg 源目录 /usr/local/etc/pkg/repos 新建源文件 /usr/local/etc/pkg/repos/1.ustc.conf 在 1.ustc.conf 中添加以下内容: ustc: { url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/latest", mirror_type: "srv", signature_type: "none", fingerprints: "/usr/share/keys/pkg", enabled: yes } 禁用系统级 pkg 源(推荐) mv /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.back 然后运行 pkg update -f 更新索引以生效。……

阅读全文

最近文章

分类

标签

ADB CSS Chrome DNS Docker FreeBSD Git Go Golang K8S Laravel Linux Lumen MySQL Nginx PHP PowerISO RSS订阅 ThinkPHP ubuntu Windows acme.sh adminer amis android anyproxy argo-cd canal ceph codeigniter codex coredns crontab cryptomator dapr dbeaver eclipse electron etcd fastboot ffmpeg gin gitea goquery gorm gorse grafana grpc grpc-gateway harness helm html hugo jaeger java javaee javascript jetbrains jquery js k3s kubernetes let's encrypt library license server longhorn meilisearch nodejs oneinstack open-webui openchamber opencode phpmyadmin phpstorm pi podman pritunl prometheus recovery redis release reset resty rook rufus screen shell ssl supervisor traefik trarfik twrp typecho ubuntu ueditor unzip vagrant vim virtualbox vitess xmind zip zsh 七牛云 下载 产品 从零开始 代理 何时 分区 初体验 刷机 压缩 启动 启动盘 命令 命令大全 命令行 坑 增量订阅 墨刀 好不好 学习路线 安装 实例 密码 小程序 工具 常用命令 开发 开始 引导 微信 微信第三方 快捷键 思维导图 怡和 怡和物业 成立 成长之路 技能树 抖音 指向 授权 排错 推广 提升 搜索 效率 文件 新手 新用户 方案 昆明 昆明水库 最新活动 权限 水库 泛域名 流程图 消费组件 润城 激活 爬虫 版本更新 狼人杀 磨刀 程序 笔记本 管理 米粉卡 系统 终身会员 维修 编程 老用户 联通 自加 解压 解析 设计 设计规范 证书 详解 语法 跨域 软件 迁移 钓鱼 阿里云 面板

友情链接

其它