See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
1. Ctrl + Shift + N => New terminal window | |
This shortcut can be used to open a new terminal window. For this to work, you should already be on the terminal window. | |
2. Ctrl + Shift + T => New terminal tab | |
If you use above combination, you can open terminal tab on same window. | |
3. Ctrl + C or Ctrl + Z => Kill the current process | |
If you are running any application through the terminal, you can kill it by using the above combination. | |
4. Ctrl + R => Reverse search |
/* http://l3net.wordpress.com/2012/12/09/a-simple-telnet-client/ */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <termios.h> | |
#include <fcntl.h> | |
/* --- Usage --- */ | |
g++ server.c -o server | |
g++ client.c -o client | |
./server | |
./client 127.0.0.1 | |
/* --- server.c --- */ | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
{ | |
"editor.bracketPairColorization.enabled": true, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorSmoothCaretAnimation": true, | |
"editor.cursorStyle": "block", | |
"editor.fontFamily": "'Fira Code Retina', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 14, | |
"editor.formatOnSave": false, | |
"editor.guides.bracketPairs": "active", |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+shift+/", | |
"command": "openInTerminal" | |
}, | |
{ | |
"key": "ctrl+shift+'", | |
"command": "workbench.action.terminal.kill" | |
}, |
Netcat is like a swiss army knife for geeks. It can be used for just about anything involving TCP or UDP. One of its most practical uses is to transfer files. Non *nix people usually don't have SSH setup, and it is much faster to transfer stuff with netcat then setup SSH. netcat is just a single executable, and works across all platforms (Windows,Mac OS X, Linux).
On the receiving (destination) terminal, run:
nc -l -p 1234 > out.file
This is a note from this book. I'm using Ubuntu 16.04 for this.
sudo apt-get install autoconf automake bison bzip2 cmake flex g++ gawk gcc gettext git gperf help2man libncurses5-dev libstdc++6 libtool libtool-bin make patch python3-dev rsync texinfo unzip wget xz-utils u-boot-tools
git clone https://github.com/crosstool-ng/crosstool-ng.git
cd crosstool-ng
$ tree -d
+ MyDirectory/
| |
| + Folder_01/
| |
| + Folder_02/
| |
| + Folder_03/
|