Skip to content

Instantly share code, notes, and snippets.


Chaitanya Gupta iCHAIT

View GitHub Profile
joyrexus /
Last active Jan 13, 2022
collapsible markdown

collapsible markdown?


yes, even hidden code blocks!

print("hello world!")
simonw /
Last active Jan 4, 2022
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using and

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
sudo rm -fr /opt/franz
sudo rm -fr /usr/share/applications/franz.desktop
# create installation dir
sudo mkdir -p /opt/franz
#install franz
leonardofed /
Last active Jan 21, 2022
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

brandonpittman /
Created Jun 2, 2016
Dracula colors for fish shell
set -x COMMENT 6272a4
set -x CYAN 8be9fd
set -x GREEN 50fa7b
set -x ORANGE ffb86c
set -x PINK ff79c6
set -x PURPLE bd93f9
set -x RED ff5555
set -x YELLOW f1fa8c
set -U fish_color_autosuggestion $COMMENT
View gsoc-2016-projects.csv
Project Title Student Display Name Organization Name Mentors
Key mapping GUI Tomasito665 Mixxx DJ Software RJ Ryan, Ferran Pujol Camins
YAPDNS system64 The Honeynet Project Pietro Delsante, Fedele Mantuano, Andrea De Pasquale
FFv1 P frame support sdolganov FFmpeg Reynaldo Verdejo, michaelni
coala: Integrating coala with the Eclipse IDE Sheikh Araf Python Software Foundation Harsh Dattani, Lasse Schuirmann (sils1297), AbdealiJKothari
User interfaces for Tracker Dilushi Sustainable Computing Research Group ( SCoRe ) Dinith Minura, Namal Jayasuriya, Rumesh
File Support izgzhen Mozilla Manishearth
KolibriOS. Development of TLS/SSL library DenisKarpenko KolibriOS Jeffrey A., Pathoswithin
IPFS friendly & distributed version of Amber skbly7 Berkman Center for Internet and Society Genève
Cache layer for jpf-nhandler Jayton Java Pathfinder Team franck, Nastaran, Cyrille Artho
dufferzafar / opengl_functions.rst
Last active Dec 18, 2015
OpenGl Functions Manpages. Taken from: Use Pandoc to convert to pdf: pandoc -V documentclass=report ~/opengl_functions.rst -o ~/opengl_functions.pdf
View opengl_functions.rst



glBegin, glEnd - delimit the vertices of a primitive or a group of like

Who uses the backend

The backend of What's Fresh is designed for employees of the Oregon Sea Grant. They're the ones who enter new vendors, new products, etc.


Unfortunately, I've not received too much information on the vendors. From what I understand, they're independent fishermen/sea food vendors that are registered in some way with Oregon Sea Grant. Sea Grant then would enter them into the backend, and be responsible for updating their information if/when it changes.

An original stretch goal of the application was to create a POST API that would allow the mobile app to update the data -- essentially, allow us to create vendor accounts for vendors who could then update their own information. This is Issue #48.

yoavniran /
Last active Jan 22, 2022
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.