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
on local and remote machine: | |
go get github.com/pocke/lemonade (if you have Go installed, if not download lemonade binary from github) | |
make sure $GOPATH/bin is in your path on both machines | |
-- or move $GOPATH/bin/lemonade to a place already in your path like /usr/local/bin | |
on your local machine add a script like this: | |
cat ~/bin/remote |
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
sudo apt-get update | |
sudo apt-get install -y libevent-dev libncurses-dev make | |
cd /tmp | |
curl -LO https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz | |
tar xvzf tmux-2.7.tar.gz | |
cd tmux-2.7/ | |
./configure && make | |
sudo make install | |
cd .. | |
rm -rf ./tmux-2.7* |
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
#!/bin/bash | |
# Linux version | |
# Use this script to pipe in/out of the clipboard | |
# | |
# Usage: someapp | clip # Pipe someapp's output into clipboard | |
# clip | someapp # Pipe clipboard's content into someapp | |
# | |
if command -v xclip 1>/dev/null; then | |
if [[ -p /dev/stdin ]] ; then |
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
# /etc/security/limits.conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
=========================================================== | |
# /etc/sysctl.conf | |
# sysctl for maximum tuning |
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
import time | |
import socket | |
import optparse | |
import sys | |
import textwrap | |
import paramiko | |
from sftpserver.stub_sftp import StubServer, StubSFTPServer |