Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Short of learning how to actually configure OSX, here's a hacky way to use | |
| # GNU manpages for programs that are GNU ones, and fallback to OSX manpages otherwise | |
| alias man='_() { echo $@; man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $@ 1>/dev/null 2>&1; if [ "$?" -eq 0 ]; then man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $@; else man $@; fi }; _' |
| # see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
| # core | |
| brew install coreutils | |
| # key commands | |
| brew install binutils | |
| brew install diffutils | |
| brew install ed --default-names | |
| brew install findutils --with-default-names |
| \documentclass[10pt,landscape]{article} | |
| \usepackage{ctex} | |
| \usepackage{multicol} | |
| \usepackage{calc} | |
| \usepackage[landscape]{geometry} | |
| \usepackage{color,graphicx,overpic} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[bitstream-charter]{mathdesign} | |
| \usepackage[utf8]{inputenc} |
| # Connect to a WPA2 Enterprise network with wpa_supplicant with this .conf file. | |
| # I used this to connect to my university's wireless network on Arch linux. | |
| # Here's the command I used: | |
| # | |
| # wpa_supplicant -i wlan0 -c ./wpa_supplicant.conf | |
| # | |
| network={ | |
| ssid="YOUR_SSID" | |
| scan_ssid=1 |