motion | description |
---|---|
h | Count characters left |
l | Count characters right |
^ | To the first character of the line |
$ | To the last character of the line |
f<char> | To the counth character occurrence to the right. F<char> to the counth character occurrence to the left |
t<char> | To 1 character just before the counth character occurrence to the right |
named session
tmux new -s <name>
add -d to run in the background
command PREFIX
ctrl-b
detach
PREFIX d
This file contains 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
# | |
# RoverExecutor.py | |
# Rover | |
# | |
# Created by Ricky Nelson on 7/16/10. | |
# | |
from Foundation import * | |
from AppKit import * | |
import subprocess |
Create a dvd or flash drive: http://wiki.smartos.org/display/DOC/Download+SmartOS
Boot the image on the hardware of your choice
It will ask you the following:
- ip or dhcp
- it will enumerate the disks it finds and ask you to type in the ones you want SmartOS to manage, type in the ones you want
- root password
This file contains 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
{ | |
"brand": "joyent", | |
"zfs_io_priority": 30, | |
"quota": 20, | |
"image_uuid": "dac2ad6e-2aa5-11e3-885f-8fd408fc6a82", | |
"max_physical_memory": 4096, | |
"alias": "<name>", | |
"hostname": "<name>", | |
"dns_domain": "<domain>", | |
"resolvers": ["<ip>"], |
This file contains 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
#cloud-config | |
coreos: | |
etcd2: | |
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3 | |
# specify the initial size of your cluster with ?size=X | |
discovery: https://discovery.etcd.io/<token> | |
# multi-region and multi-cloud deployments need to use $public_ipv4 | |
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001 | |
initial-advertise-peer-urls: http://$private_ipv4:2380 |
This file contains 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
var $promise = $.ajax(options); | |
$promise | |
.then(function(data){ | |
// data will be from the ajax call | |
return data; | |
}) | |
.then(function(data){ | |
// data will be the data you return from the previous call | |
return 'foo'; |
This file contains 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
# | |
# Oracle Java 9 Dockerfile | |
# | |
# https://github.com/cogniteev/docker-oracle-java | |
# https://github.com/cogniteev/docker-oracle-java/tree/master/oracle-java9 | |
# | |
# Pull base image. | |
FROM ubuntu:16.04 |
This file contains 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
const DATA = { | |
'rooms': [ | |
{ | |
'name': 'sim', | |
'spawn': { | |
'name': 'SpawnSim', | |
'position': { | |
'x': 7, |