How to connect to a remote Windows machine to execute commands using python?

You can connect one computer to another computer in a network by using these two methods: Use WMI library. Netuse method. WMI Here is the example to connect using wmi module: ip = ‘192.168.1.13’ username=”username” password = ‘password’ from socket import * try: print(“Establishing connection to %s” %ip) connection = wmi.WMI(ip, user=username, password=password) print(“Connection established”) … Read more

How to run a jupyter notebook through a remote server on local machine?

There’s quite a good tutorial here Essentially you just run the notebook on the remote in no browser mode. jupyter notebook –no-browser –port=8080 Then setup up an ssh tunnel from the local machine: ssh -L 8080:localhost:8080 <REMOTE_USER>@<REMOTE_HOST> Then in your local browser go to: http://localhost:8080/ EDIT: Running on a specific port is not necessary. The … Read more

git clone from local to remote

To answer your first question, yes, you can. Suppose the remote directory is ssh://user@host/home/user/repo. This must be a git repository, create that with git init –bare or scp your local repo.git (can be created with git clone) directory to remote. Then do: git remote add origin ssh://user@host/home/user/repo git push –all origin This will push all … Read more

How do we set remote in Typeahead.js?

Typeahead.js version 0.10.0 now uses a separate component called a suggestion engine for providing the suggestion data. The suggestion engine which ships with Typeahead.js is called Bloodhound. Hence you cannot “define remote without having to define a dataset function”. An example of this working with a remote data source (I’m querying the TheMovieDb API, try … Read more

How to open remote files in sublime text 3

On server Install rsub: wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate chmod a+x /usr/local/bin/rsub On local Install rsub Sublime3 package: On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub and install it Open command line and connect to remote server: ssh -R 52698:localhost:52698 server_user@server_address after connect to server … Read more