ubuntu
12.04
14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
import java.util.concurrent.atomic.AtomicLong; | |
import rx.Observable.OnSubscribe; | |
import rx.*; | |
import rx.internal.operators.BackpressureUtils; | |
public final class RxRange implements OnSubscribe<Integer> { | |
final int start; | |
final int count; | |
public RxRange(int start, int count) { |
#!/bin/bash -l | |
# Save this file in /usr/local/bin and chmod a+x for easy access | |
# Execute gohere to switch $GOPATH to current directory | |
# Type exit to switch back | |
# Example usage: | |
# $ echo $GOPATH | |
# |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
ubuntu
12.04
14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
import com.jcraft.jsch.JSch | |
import com.jcraft.jsch.Session | |
import com.jcraft.jsch.UserInfo | |
import com.jcraft.jsch.Channel | |
import com.jcraft.jsch.ChannelExec | |
def sshHost = '10.1.2.132' | |
def sshUser = 'root' | |
def sshPass = '******' | |
def sshPort = 22 |