Shortcuts | Description |
---|---|
Ctrl + A | Move to the beginning of the line |
Ctrl + E | Move to the end of the line |
Alt + B | Move to the previous word |
Alt + F | Move to the next word |
Ctrl + B | Go left (back) one character |
Ctrl + F | Go right (forward) one character |
Ctrl + D | Erase the current character |
Ctrl + U | Erase to the beginning of the line |
gcc -g -o hello hello.c
- -g
flag adds debugging information to the executable
gdb ./a.out
- Attach debugger to the program
(gdb) help
(gdb) help <section>
(gdb) run or r // Run Program
(gdb) run arg1 arg2 .. // Command line arguments of the program
(gdb) list or l// list specified function or filw
gcc -o hello hello.c
- Create executable with name hello
gcc -c hello.c
- Preprocess and compile only
gcc hello.o -lm
- tells the compiler(ie. gcc) to link the executable file with the given library (math.h here)
gcc -x c hello.txt
- -x
option asks for source language
gcc -std=89 hello.c
- -std
option is for specifying standard
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# A simple Client Program for making requests using socket | |
import socket | |
s = socket.socket() | |
# The socket listens to a specific port | |
port = 12345 | |
# Connect to the server |
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
magudi-master/.gitignore | |
magudi-master/Readme.md | |
magudi-master/Vagrantfile | |
magudi-master/pillar/ | |
magudi-master/pillar/junction.sls | |
magudi-master/pillar/pycon.sls | |
magudi-master/pillar/pycon_mail.sls | |
magudi-master/pillar/pythonexpress.sls | |
magudi-master/pillar/pythonexpress_mail.sls | |
magudi-master/pillar/top.sls |
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
sudo -i | |
dnf install librsvg2 librsvg2-tools | |
dnf install gcc gcc-c++ libXrandr gtk2 libXtst libart_lgpl | |
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libgcj-4.4.7-18.el6.x86_64.rpm | |
wget https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-1.el6.x86_64.rpm | |
rpm -ivh --nodeps libgcj-4.4.7-11.el6.x86_64.rpm | |
rpm -i pdftk-2.02-1.el6.x86_64.rpm | |
exit |
NewerOlder