/cmd 函数入口
--/app_1
--/app_2
--/crontab
/bootstrap 项目依赖启动,统一管理,不分散init
/configs 项目配置文件
/docs rpc规定文件、项目介绍文档
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $originFile = file_get_contents('./20211026111907.png'); //等待加密文件 | |
| $key = substr(openssl_digest(openssl_digest('password', 'sha1', true), 'sha1', true), 0, 16);// password 为密钥 | |
| $enData = openssl_encrypt($originFile, 'DES-ECB', $key, OPENSSL_RAW_DATA); //需要 openssl 支持 | |
| $deData = openssl_decrypt($enData, 'DES-ECB', $key, OPENSSL_RAW_DATA); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package idcardocr | |
| import ( | |
| "bytes" | |
| "crypto/cipher" | |
| "crypto/des" | |
| ) | |
| // 3DES加密 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class SensitiveController extends Controller | |
| { | |
| private $dict; | |
| public function __construct($words) { | |
| $this->dict = array(); | |
| // 构建敏感词树 | |
| foreach ($words as $_word) { | |
| $uWord = $this->unicodeSplit($_word); |
yum -y install easy-rsa
mkdir /etc/openvpn
mkdir /etc/openvpn/easy-rsa
拷贝easy-rsa的文件到/etc/openvpn下
cp -r /usr/share/easy-rsa/3.0.6 /etc/openvpn/easy-rsa
- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy,direct | |
| export PATH=/usr/local/opt/openssl/bin:$PATH | |
| export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles | |
| export PATH=/usr/local/opt/mysql@5.6/bin:$PATH | |
| export GOPATH=/usr/local/var/go | |
| alias ll='ls -alF' | |
| export PATH=/usr/local/sbin:/usr/local/bin:$PATH | |
| export PATH="/usr/local/opt/php@7.2/bin:$PATH" | |
| export PATH="/usr/local/opt/php@7.2/sbin:$PATH" | |
| export PATH="/usr/local/var/go/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function off(){ | |
| unset http_proxy | |
| unset https_proxy | |
| echo -e "*** off ***" | |
| } | |
| function on(){ | |
| export http_proxy="http://127.0.0.1:1087" | |
| export https_proxy=$http_proxy | |
| echo -e "*** on ***" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import datetime | |
| import os | |
| import time | |
| import RPi.GPIO as GPIO | |
| # GPIO14 08号引脚 | |
| GPIO_OUT = 14 | |
| # 日志位置 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder