Happy anniversary… job anniversary

In about a week, it’s going to be six years that I work in the current project. Somehow I thought it would only be five years this april and it’s six. Wow, time really does fly. I actually forgot that yes, it is already six years. Holy moly. How do I feel about it? I don’t know. Kinda sad, if you ask me. It is the same thing as if you’d forget how old you were, and then suddenly remembered.

Still, we have built something that is used by a lot of people, and (hopefully) will be used by more. And I think that I have grown, as a professional. It is still a long way to go, though.

And I have to go.

Can’t stop now, can I?

And now, a simple trick for getting large files from the internal servers. (scp is a bugger when it is about the download speed!) So, if  the server has python installed, just go into the directory where your file is and type:

sudo python -m SimpleHTTPServer # python 2
sudo python -m http.server # python 3

What does it do? Well, it runs a simple HTTP server from the current directory, so now you are serving the directory content over the web and can get it with a simple

wget http://yourserver.name:8000/yourfile.txt

8000 being a default port. But perhaps port 8000 is already used on the server and you want to change it; nothing easier. This would be port 80 instead:

sudo python -m SimpleHTTPServer 80 # python 2
sudo python -m http.server 80 # python 3

That’s it! With wget, the speed will be much better than with scp, and that is a fact.

Just don’t forget to stop that server when you have downloaded what you need. =)

python

Advertisements

About Maryna Cherniavska

I have productively spent 10+ years in IT industry, designing, developing, building and deploying desktop and web applications, designing database structures and otherwise proving that females have a place among software developers. And this is a good place.
This entry was posted in Success and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s