Last active
November 4, 2015 12:04
-
-
Save giuseppebarba/10149571 to your computer and use it in GitHub Desktop.
Usefull tips.
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
Usefull tips. | |
------------------------------------------------- | |
Linux System using tar and netcat | |
On the receiving end do: | |
# netcat -l 7000 | tar x | |
And on the sending end do: | |
# tar cf - * | netcat otherhost 7000 | |
--------------------------------------------------- | |
CNTLM for ssh connection through proxy | |
http://cntlm.sourceforge.net/ | |
Download and install the program. | |
Configure the INI file to your desired proxy settings and make sure that the line in which the listen address, does not start with #. | |
Start the CNTLM software. | |
Edit your ssh_config file ProxyCommand /bin/corkscrew.exe 127.0.0.1 3128 %h %p. Where corkscrew is the program used and 127.0.0.1 is the listen address configured in CNTLM and 3128 is the port on which CNTLM listens of the address. | |
--------------------------------------------------- | |
export PS1='\[\033[01;30m\]\t `if [ $? = 0 ]; then echo "\[\033[01;32m\]ツ"; else echo "\[\033[01;31m\]✗"; fi` \[\033[00;32m\]\u\[\033[00;37m\]:\[\033[36m\]$(__git_ps1 "(%s)\[\033[01m\]")\[\033[00;36m\]\w\[\033[00m\]>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment