start new:
tmux
start new with session name:
tmux new -s myname
Vim commands helpsheet | |
Contents | |
My .vimrc commands | |
Basics | |
Movement | |
Search and replacement | |
Buffers and Windows | |
Buffers | |
Windows |
/** | |
* Utility method to convert a byte array to a hexadecimal string. | |
* | |
* @param bytes Bytes to convert | |
* @return String, containing hexadecimal representation. | |
*/ | |
public static String ByteArrayToHexString(byte[] bytes) { | |
final char[] hexArray = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; | |
char[] hexChars = new char[bytes.length * 2]; // Each byte has two hex characters (nibbles) | |
int v; |
Vim is an advanced CLI based text editor. Many key combinations used in Vim are easily associated with a memorable phrase. One effective way to use Vim is to associate phrases with Operators, Text Objects and Motions. Then compose a phrase for what you want to do. Start with an Operator followed by a Text Object or Motion. Prefix an Operator, Command or Motion with a number/count to extend it.
Common aliases for the scoop package manager
# Install app
scoop alias add i 'scoop install $args[0]' 'Install app'
scoop alias add add 'scoop install $args[0]' 'Install app'
# Uninstall app
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall an app'
scoop alias add remove 'scoop uninstall $args[0]' 'Uninstall an app'
#!/bin/bash | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |