(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # *-* coding: UTF-8 *-* | |
| import hashlib | |
| import requests | |
| from urllib.parse import urlencode, unquote_plus | |
| def ksort(d): | |
| return [(k, d[k]) for k in sorted(d.keys())] |
| $x('//div[@class="video_holder"]/a/@href').forEach(function(x){console.log('youtube-dl '+x.value);}) |
| var script=document.createElement('script'); | |
| script.src='http://underscorejs.org/underscore-min.js'; | |
| var head=document.getElementsByTagName('head')[0]; | |
| head.appendChild(script); | |
| _.map($("li.list_item a"), function(a){return a.href;}) |
| var script=document.createElement('script'); | |
| script.src='http://underscorejs.org/underscore-min.js'; | |
| var head=document.getElementsByTagName('head')[0]; | |
| head.appendChild(script); | |