| Action | Shortcut |
|---|---|
| Scroll line up | ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS) |
| Scroll line down | ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS) |
| Scroll page up | ctrl+shift+page_up (also ⌘+⇞ on macOS) |
| Scroll page down | ctrl+shift+page_down (also ⌘+⇟ on macOS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Set your bash prompt according to the branch/status of the current git repository. | |
| # Relies on git output being in English. | |
| # Set an alias with | |
| # $ echo "alias git='LANGUAGE=en_US.UTF-8 git'" >> ~/.bash_profile | |
| # | |
| # Forked from https://gist.github.com/philcryer/5066010 | |
| # | |
| RED="\[\033[0;31m\]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:george-edison55/cmake-3.x | |
| sudo apt-get update | |
| sudo apt-get purge cmake cmake-data | |
| sudo apt-get -y install build-essential cmake | |
| curl -sSLO http://www.mirrorservice.org/sites/ftp.apache.org/orc/orc-1.4.1/orc-1.4.1.tar.gz | |
| tar -zxf orc-1.4.1.tar.gz | |
| cd orc-1.4.1 | |
| mkdir build | |
| cd build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # adding and committing | |
| git add -A # stages All | |
| git add . # stages new and modified, without deleted | |
| git add -u # stages modified and deleted, without new | |
| git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed. | |
| git commit --amend --no-edit # Do so without having to edit the commit message. | |
| # remotes - pushing, pulling, and tracking | |
| git fetch # gets remote objects and refs. Needed if new branches were added on the remote. | |
| git remote -v # Lists all remotes (verbose) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # chkconfig: 35 99 01 | |
| # description: java application | |
| # | |
| if [ -z "$JRE_HOME" ]; then | |
| JRE_HOME="$JAVA_HOME" | |
| fi | |
| if [ -z "$JRE_HOME" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| KOIVI HTML Form to FDF Parser for PHP (C) 2004 Justin Koivisto | |
| Version 1.2 | |
| Last Modified: 2011/12/02 | |
| This library is free software; you can redistribute it and/or modify it | |
| under the terms of the GNU Lesser General Public License as published by | |
| the Free Software Foundation; either version 2.1 of the License, or (at | |
| your option) any later version. |
Occurred with Centos 6.4 installations.
After specifying a private IP address in Vagrant file, command vagrant up crashed with this error
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown eth1 2> /dev/null