I'll begin with some of the bare minimum and absolutely amazing things ssh port forwarding is capable of, and see if I can convert this to a proper blog post later.
1. Local port forwarding
ssh -L8081:example.com:80 email@example.com
Meaning: Opens a SSH connection to myserver.com, and forward all requests to my port 8081 to port 80 (default http port) of example.com via myserver. Thus, if example.com is blocked on my PC, but it can be accessed by some other PC which I have ssh access to, then I can use this command to gain access to the...
GOOGLE SUMMER OF CODE WITH GENTOO
I am excited to say that I've been accepted for this year's summer of code under Gentoo Organisation. This section of the blog will be dedicated to documenting anything and everything I learn that is interesting or remotely related to my project.
My proposal for the project can be found here. The abstract for the same has been given below.
Gentoo is an operating system with extreme focus on configurability and performance. To provide fully customizable experience, without interfering with the stability of the system, Gentoo has a concept of masked packages. These masked packages (or versions) are...
EASY SHARING OF SSH KEYS
This tip may be obvious to many people, but I feel this worth mentioning. A lot of us have SSH keys set up for github. I found out today, from a friend (github/sakshamsharma) that you can actually share your public keys with others by giving them your github username. For example,
curl https://github.com/pallavagarwal07.keys >> ~/.ssh/authorized_keys
would give me ssh/scp access to your PC.
LINUX COMMANDS EVERY USER SHOULD MASTER
When it comes to linux, there are some commands that you can't live without and then there are some you shouldn't live without. I mean sure, you can live your life without ever using
find but you'd never believe how much productive knowing a few more terminal commands can make you.
Here is a list of the commands we are going to take a look at:
The command that started it all: man
I really hope you know this one. But in case you don't, well today is your lucky day....
CONFIGURATION MANAGEMENT IN LINUX
You can't yourself a linux enthusiast if you've never run into the problem of sorting out your configuration files. All of your precious files like
.Xdefaults are some of the ones that can take a lot of pain to customize from the ground up.
Like most people, I started out by always backing up my important config files. But the list soon got so huge that I started having trouble remebering which files to back up, and to do it after every change.
So, obviously, I moved on to the next obvious option, symlinks! I...
INTRODUCTION TO CIMULATOR
Cimulator is a tool that can help you see you program in action. That means no more mysterious floating point exceptions, no more hidden runtime errors. With Cimulator, you can actually see your program run step by step and debug the errors as they occur.
You can change the speed of the Simulation using the slider on the top left hand side, or even pause the simulation altogether using the Pause button on the top right of the screen. The reset button, just next to the Pause button can be used to stop a running simulation, and reset everything. When...
SHARED SSH SESSIONS WITH TMUX - BEST OF TERMINAL
Since the title isn't very descriptive, let us look at what we are trying to achieve. Click the image below to view the animation I recorded. The two terminals are made to mirror each other, i.e. anything I type on one terminal will appear on the second one, and vice versa.
This won't make much sense, or seem of any use, until you realize that the two terminals need not be on the same computer. That is, me and my friend from across the country could do this...
WINDOWS 10: A LINUX USER'S PERSPECTIVE
For the TL;DR people, here is the verdict. Microsoft has tried (For the first time, it seems) very hard to actually make the OS more hospitable for both technical and the non-technical community. Features like PackageManagement and switchable desktops (Linux Workspace equivalent) actually have made Windows 10 a huge improvement over its predecessor.
So, like everyone else, in the past two days, my facebook feed was filled with posts about Windows 10. As a linux user, I tried for quite some time to ignore the posts, but then finally decided to upgrade my preinstalled Windows to 10.
The article is...
USING SSH FROM WINDOWS 10 WITHOUT PUTTY
With the recent upgrade to Windows 10, Microsoft fixed many of the things that I despised in Windows 8. I don't usually use Windows if I can avoid it, but unfortunately, some of my work requires me to use it anyway. For those times, one of the basic needs for me is an SSH client. A LOT of the time I'm programming directly on a SSHed server machine.
Till a few days ago, this meant that I had to use PuTTY everytime I had to use SSH from Windows. If you have ever used PuTTY, you'd know that it isn't...
CYTHON: BOOST PYTHON CODE PERFORMANCE
This tip is for those people who have been working on large python projects and the fact that python is a slow language as compared to statically compiled languages has finally caught up with them. This tip is about Cython, what it is and where can you use it for maximum effect.
What is Cython?
From the docs themselves,
Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex).
The Cython language is a superset of the Python language that additionally supports calling C functions and declaring...