Archive for the 'Unix' Category



Ssh “Write failed: Broken pipe”

I started to get this error “Write failed: Broken pipe” when I was leaving the terminal alone. Since plumbers are still expensive, despite the crisis, I decided to fix the pipe by myself. Very easy, just add the following line to /etc/ssh/sshd_config: ClientAliveInterval 60 This will send a “keep-alive” packet from the server to the […]

Self executing jar files

I personally always felt bad about the fact that we have to provide a shell script which runs the executable jar file. It would be nice if we could provide a self contained executable in a single file, right? I just discovered a trick which works on unix, but it can possibly be adapted on […]

Being a Unix user (Linux/OSX) I need sometime to run some Windows utility in a Virtual Machine. But I don’t want to break the virtual machine, installing and uninstalling things, or accidentally, or by the wast hordes of viruses and malwares that infestate Windows. So, here I found how to do it: How to discard […]

SSH Bash Completion

Today I was having a look on how the git-completition is implemented. If you have not enabled the completition for git, I think you should really read my article on how to do it. So I found this two links, that explain the basics on how to implement bash completion for simple commands: An introduction […]

Are you habit to have some configuration files packaged inside the jar of your application? If so, you can still have a look at those configuration files in the running environment using the unzip Unix utility. $ unzip -p /opt/myapp/lib/my-app.jar log4j.properties log4j.rootLogger=INFO,stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Threshold=INFO log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{dd-MMM hh:mm} [%-5p] %m%n The -p option uncompress and prints […]




About

You are currently browsing the NewInstance weblog archives for the 'Unix' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Calendar

March 2017
M T W T F S S
« Nov    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening