Skip to content

Instantly share code, notes, and snippets.

@CasperCL
CasperCL / Pyramid.Dockerfile
Last active October 14, 2020 17:51
Docker for Pyramid
FROM python:3.6-alpine
RUN pip install gunicorn
COPY . /app
WORKDIR /app
RUN python setup.py develop
VOLUME ['/conf']
@joseluisq
joseluisq / stash_dropped.md
Last active June 21, 2024 07:36
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.

@IdanBanani
IdanBanani / notes.py
Created May 28, 2020 20:06
some notes i've found
# -*- coding: utf-8 -*-
# To list this file sections: $ grep '^"" ' notes.py
"""""""""""""
"" Why Python ?
"""""""""""""
- extremely readable (cf. zen of Python + [this 2013 study](http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/))
- simple & fast to write
- very popular (taught in many universities)
- has an extremely active development community