just use GHC for OSX https://ghcformacosx.github.io
the rest of these directions are preserved for historical purposes
xcode-select --install ; brew tap homebrew/versions ; brew tap homebrew/dupes \
| #!/usr/bin/env bash | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02 | |
| # | |
| # _______________| noise : ambient Brown noise generator (cf. white noise). | |
| # | |
| # Usage: noise [minutes=59] [band-pass freq center=1786] [wave] | |
| # ^minutes can be any positive integer. | |
| # Command "noise 1" will display peak-level meter. | |
| # | |
| # Dependencies: play (from sox package) |
| /************************************/ | |
| 基本命令 | |
| C-x C-f 打开/新建文件 | |
| C-x C-s 保存当前缓冲区 | |
| C-x C-w 当前缓冲区另存为 | |
| C-x C-v 关闭当前Buffer并打开新文件 | |
| C-x i 光标处插入文件 | |
| C-x b 切换Buffer | |
| C-x C-b 显示Buffer列表 | |
| C-x k 关闭当前Buffer |
| D [0-9] | |
| L [a-zA-Z_] | |
| H [a-fA-F0-9] | |
| E ([Ee][+-]?{D}+) | |
| P ([Pp][+-]?{D}+) | |
| FS (f|F|l|L) | |
| IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U)) | |
| %{ | |
| #include <stdio.h> |
| http://blog.csdn.net/jiangbo_hit/article/details/6952151 | |
| $ hdiutil convert -format UDRW -o /path/to/generate/img/file /path/to/your/iso/file #将iso转换为img.dmg文件 | |
| $ diskutil list #查看USB的盘符 | |
| $ diskutil unmountDisk /dev/diskN #卸载USB磁盘 | |
| $ sudo dd if=ubuntu.img.dmg of=/dev/diskN bs=1m #将镜像写入USB | |
| $ diskutil eject /dev/diskN #弹出USB |
| @implementation XCDUUID | |
| + (void) load | |
| { | |
| // query runtime if NSUUID class already exists, if so => done | |
| if (objc_getClass("NSUUID")) | |
| { | |
| return; | |
| } | |
| # install dependencies | |
| sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm | |
| # clone cpuminer | |
| git clone https://github.com/pooler/cpuminer.git | |
| # compile | |
| cd cpuminer | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" |
| # Example usage | |
| # $ python dft.py | gnuplot | |
| # 9 | |
| # 0 0 | |
| # 1 1 | |
| # 2 2 | |
| # 0 2 | |
| # 1 1 | |
| # -1 1 | |
| # 0 2 |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| import re | |
| ntfs_pattern = re.compile(r'File System Personality: NTFS') | |
| ntfs_device_node = re.compile(r'.*Device Node:.*') | |
| device_dict = {} |
just use GHC for OSX https://ghcformacosx.github.io
the rest of these directions are preserved for historical purposes
xcode-select --install ; brew tap homebrew/versions ; brew tap homebrew/dupes \
| 1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个 | |
| 例如: | |
| location /{ | |
| [matches] | |
| } | |
| location /test{ | |
| [matches] | |
| } | |
| 2 精确匹配 | |
| location = /{ |