Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| require "json" | |
| require "pp" | |
| state = false | |
| references_raw, content = *(`elinks -dump /tmp/dump4`.lines.partition { |line| state = true if line == "References\n" ; state } ) | |
| content_began, delayed_link = false, nil | |
| references = references_raw.inject({}) do |hsh, line| | |
| if line =~ /Visible links$/ | |
| content_began = true | |
| next hsh |
| #!/bin/bash | |
| # Author: Mike Herwig | |
| # Description: Script for downloading all images posted on a soup (soup.io) | |
| #where to download from | |
| HOST="neingeist.soup.io" | |
| #this is the regex for matching the images, you might want to update it when soup.io changes their urls | |
| REGEX="http://asset-[a-z0-9]{1}\.(soupcdn\.com|soup\.io)/asset/[0-9]{4}/[0-9]{4}_[a-z0-9]{4}(_[0-9]{2,3})?\.(jpeg|jpg|png|gif)" |
| $ tmux attach | |
| protocol version mismatch (client 7, server 6) | |
| $ pgrep tmux | |
| 3429 | |
| $ /proc/3429/exe attach |