A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| public String scanString() { | |
| int start = s.length() - 1; | |
| int end = s.length() - 1; | |
| int maxLengthFound = s.length(); // Initial maximum length | |
| System.out.println("end: " + end); | |
| for (int i = 0; i < s.length(); i++) { | |
| System.out.println("Checking substring: " + s.substring(0, i + 1) + ", valid: " + isValid()); | |
I hereby claim:
To claim this, I am signing this object:
| # Template | |
| TEST_TEMPLATE_RAW = """@test "{description} [{shell}]" {{ | |
| run ./{script_name} {shell} --debug --no-exec | |
| {assert_type} {partial} {regexflag} "{expected}" | |
| }} | |
| # Codebit | |
| # test is dumped in by pyyaml | |
| print TEST_TEMPLATE_RAW.format(**test) |
Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-caskIf you get the error "already installed", follow the instructions to unlink it, then install again:
| #!/bin/bash | |
| set -e | |
| CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/ "$1" stdout -l eng | xml esc) | |
| hex=$((cat <<EOF | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> |
| # load dynamic modules | |
| load_module /etc/nginx/modules/ngx_http_geoip_module.so; | |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { worker_connections 1024; } | |
| http { |
| # source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
| #/bin/sh | |
| # stop service | |
| systemctl stop pvestatd.service | |
| systemctl stop pvedaemon.service | |
| systemctl stop pve-cluster.service | |
| systemctl stop corosync | |
| systemctl stop pve-cluster | |
| killall pmxcfs |