Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ananya Maiti ananyo2012

🎯
Focusing
View GitHub Profile
@ananyo2012
ananyo2012 / Bash-Shortcuts.md
Last active Sep 9, 2019
Useful Vim and Bash Commands
View Bash-Shortcuts.md
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
@ananyo2012
ananyo2012 / gdb.md
Last active Jul 4, 2019
gdb introduction
View gdb.md

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
@ananyo2012
ananyo2012 / gcc.md
Last active Jul 6, 2019
gcc commands
View gcc.md

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

@ananyo2012
ananyo2012 / Chapter-2-Introduction-to-Makefiles.md
Last active Aug 19, 2019
Notes from GNU make documentation
View Chapter-2-Introduction-to-Makefiles.md

An Introduction to Makefiles

What a Rule looks like

target … : prerequisites …
        recipe
        …
        …
@ananyo2012
ananyo2012 / python-requests.ipynb
Last active Aug 4, 2018
Making HTTP requests using python requests module
View python-requests.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ananyo2012
ananyo2012 / http-requests.ipynb
Last active Aug 4, 2018
Making HTTP Requests in python
View http-requests.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ananyo2012
ananyo2012 / client.py
Last active Aug 19, 2018
Simple Socket Programming
View client.py
# 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
View log.txt
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
@ananyo2012
ananyo2012 / install_badgeyay_rpm.sh
Last active Oct 4, 2017
Install dependencies for Badgeyay in Fedora/CentOS
View install_badgeyay_rpm.sh
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
View 9-9-2017-minutes.md

PyConf Hyderabad 2017

Minutes of Meeting - 9th Sept, 2017

Venue

  • Meetup room confirmed - Room No 301, 2nd Floor, Vindhya A3 Block
  • Check with T-Hub for Workshop Venue
  • Pending : IIIT Hyderabad venue confirmation