Skip to content

Instantly share code, notes, and snippets.

@SeanJM
SeanJM / .babelrc
Last active January 14, 2020 03:03
TypeScript, VueJS and JSX webpack configuration
{
"presets": [],
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs"]
}
@simonw
simonw / recover_source_code.md
Last active September 28, 2024 08:10
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 https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@jonasryberg
jonasryberg / Linsris_med_rokt_paprika_och_fankal.md
Last active October 16, 2024 08:25
Jag köpte en tryckkokare. Nu samlar jag på mig bra vegetariska recept att laga till i den.

Linser och ris med smak av rökt paprika och fänkål

Det här receptet ger en rejäl laddning av linser och ris som passar bra att servera till tofu, ha i en wrap eller kanske bara till stekta grönsaker. Ursprungsreceptet hittade jag här.

Ingredienser

  • 400 gram gröna linser
  • 350 gram basmatiris (vitt)
  • 1 liter grönsaksbuljong