- Command palette (Ctrl-shift-p)
- Select interpreter
- Select terminal shell
- Go to symbol (Ctrl-t)
- Find references (Shift-F12)
- Go to definition (F12)
- Go back (alt-left)
- View documentation
- Hide sidebar (Ctrl-b)
- Zen mode (Ctrl-k,z)
View ipy_hide_input
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
#! /usr/bin/env python | |
""" | |
The MIT License (MIT) | |
Copyright (c) 2013 Hannes Bretschneider | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to |
View howto autoreload
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
%load_ext autoreload | |
%autoreload 2 | |
# https://ipython.org/ipython-doc/3/config/extensions/autoreload.html |
View howto checkout remote branch
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
git fetch origin | |
git checkout -b target_branch origin/target_branch |
View howto add github remote
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
git remote add upstream https://github.com/some_user/their_repo.git |
View howto remove git file keep local
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
git rm --cached -r file_to_remove_and_keep_local.py |
View howto reload module py3
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
from importlib import reload | |
reload(some_module) |
View howto untar all tar files
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
!for a in `ls -1 *.tar`; do tar xf $a; done |
View howto move many files
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
!find source_folder -name '*.jpg' -exec mv {} target_folder \; | |
# Solve "mv: Argument list too long" error when using "mv *.jpg" |
View howto stop delete all docker
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
# Stop all running containers | |
docker stop $(docker ps -aq) | |
# Remove all containers | |
docker rm $(docker ps -aq) | |
# Remove all images | |
docker rmi $(docker images -q) |
View visual_studio_code_cheatsheet.md
OlderNewer