註:Formula 就是套件名稱,你在官方文件或 help 上會經常看到 FORMULA... 這個英文字彙,在 Homebrew 中,它即是套件名稱。
- 查看有哪些指令可以使用
% brew help- 查詢有無 MongoDB 的套件
% brew search mongodb| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <style> | |
| video { | |
| border: 1px solid #ccc; | |
| display: block; | |
| margin: 0 0 20px 0; |
| yum install -y sqlite-devel libicu-dev icu-dev libicu-devel | |
| wget https://www.php.net/distributions/php-7.4.1.tar.bz2 | |
| tar -xvf php-7.4.1.tar.bz2 | |
| ./buildconf -force | |
| ./configure --prefix=/usr/local/php741 --with-config-file-path=/usr/local/php741/etc --with-fpm-user=nginx --with-fpm-group=nginx --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-zlib --enable-mysqlnd --enable-fpm --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-intl --enable-ftp --enable-pcntl --enable-sockets --enable-fileinfo --enable-opcache --enable-gd --enable-soap --enable-exif --enable-calendar --enable-sysvsem --enable-sysvmsg --enable-sysvshm --enable-session --enable-gd-jis-conv --with-curl --with-xmlrpc --with-gettext --with-sodium --with-iconv --with-bz2 --with-kerberos --with-libdir=lib64 --with-pdo-sqlite --with-pear --with-xsl --with-openssl --with-mhash --enable-static --enable-sysvshm | |
| make clean | |
| make -j4 | |
| sudo make install | |
| sudo |
| package main | |
| import ( | |
| "math/rand" | |
| ) | |
| // Random 根据区间产生随机数 | |
| func Random(min, max int) int { | |
| rand.Seed(time.Now().Unix()) | |
| return rand.Intn(max-min) + min |
| # 替换软件源 | |
| sudo sed -i 's|//archive.raspberrypi.org|//mirrors.ustc.edu.cn/archive.raspberrypi.org|g' /etc/apt/sources.list.d/raspi.list | |
| sudo sed -i 's#://raspbian.raspberrypi.org#s://mirrors.tuna.tsinghua.edu.cn/raspbian#g' /etc/apt/sources.list | |
| # 更新源,软件,系统 | |
| sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade | |
| # 设置系统基本配置 | |
| sudo raspi-config |
| #!/bin/bash | |
| # openvino installer for raspberry pi. This allows you to test the Intel Neural Compute Stick v2 | |
| # based on https://software.intel.com/en-us/articles/OpenVINO-Install-RaspberryPI | |
| # curl -fsSL "https://gist.githubusercontent.com/dingdayu/d80b1c2112366dc5f8fbb325d49704ae/raw/0095c0b385ec05925b95b3b8b6e1333a8585260f/Install_openvino.sh" | /bin/bash | |
| echo "Updating system software..." | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| sudo apt-get install -y build-essential cmake pkg-config wget lsb-release apt-utils libusb-1.0.0 | |
| echo "Downloading OpenVINO SDK..." |
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| type Set map[int]bool | |
| // 新建集合对象 |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |
註:Formula 就是套件名稱,你在官方文件或 help 上會經常看到 FORMULA... 這個英文字彙,在 Homebrew 中,它即是套件名稱。
% brew help% brew search mongodb| - https://gist.github.com/Akagi201/10839084 | |
| http://blog.csdn.net/bcbobo21cn/article/details/51569360 | |
| http://blog.csdn.net/wangyinlon/article/details/54743383 | |
| http://blog.csdn.net/u012819339/article/details/50374252 | |
| http://blog.csdn.net/mingzznet/article/details/46910437 | |
| http://blog.csdn.net/qinggebuyao/article/details/7814499 | |
| http://www.cnblogs.com/Heart-J/p/4580849.html | |
| web协议 | |
| http://blog.csdn.net/hello_world_zhou/article/details/54782980 |
| $fileArr = ['isVip', 'cover']; | |
| $temp = []; | |
| // 过滤方案一 | |
| foreach ($fileArr as $item) { | |
| if(array_key_exists($item, $movie)) { | |
| $temp[$item] = $movie[$item]; | |
| } | |
| } | |
| // 过滤方案二 |