(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:
| #!/bin/sh | |
| #################################### | |
| # Output file for HTML5 video # | |
| # Requirements: # | |
| # - handbrakecli # | |
| # - ffmpeg # | |
| # - ffmpeg2theora # | |
| # # | |
| # usage: # |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| <?php | |
| /** | |
| * | |
| * Distributed under the GNU Lesser General Public License (LGPL v3) | |
| * (http://www.gnu.org/licenses/lgpl.html) | |
| * This program is distributed in the hope that it will be useful - | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| * |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
A ZSH theme for those who like the robbyrussell theme, but want the familiar $ and would like their prompt on a separate line from the typing space. For example, if you use git and have large branch names you could have path$ git:(this-is-a-very-very-very-very-very-long-branch-name) which eats up most of a small terminal window.
NOTE: Though this theme looks okay with most fonts, you will need to install a Powerline-patched font for this theme to render correctly.
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 8000| ; | |
| ; hello.asm | |
| ; | |
| ; A "Hello, World!" which illustrates an Atari 2600 programming | |
| ; introduction talk (slides at http://slideshare.net/chesterbr). | |
| ; | |
| ; This is free software (see license below). Build it with DASM | |
| ; (http://dasm-dillon.sourceforge.net/), by running: | |
| ; | |
| ; dasm hello.asm -ohello.bin -f3 |