- Clone project to local:
git clone <project URL>
- Create project root on remote:
ssh <server> mkdir -p <remote project path>
- Create project root and environment on remote
- Copy
environment.yml
to remotecd <local project root> scp environment.yml <server>:<remote project path>
- Create environment on remote
- Copy
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
import json | |
import os | |
from pprint import pprint | |
KEEP_PATH = 'takeout-20200709T114934Z-001\\Takeout\\Keep' | |
NOTION_PATH = 'notion_export' | |
def main(): | |
if not os.path.isdir(NOTION_PATH): |
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
!!!YouTube!!! | |
!Latest YouTube banner | |
youtube.com#?#ytd-rich-section-renderer:-abp-contains(Latest) | |
!Suggested videos (is it needed when annotations are disabled?) | |
!www.youtube.com##DIV[class="ytp-ce-element ytp-ce-video ytp-ce-top-left-quad ytp-ce-size-1280 ytp-ce-element-show"] | |
!www.youtube.com##DIV[class="ytp-ce-element ytp-ce-video ytp-ce-bottom-left-quad ytp-ce-size-1280 ytp-ce-element-show"] | |
!!!Engadget!!! | |
www.engadget.com##DIV[class="vdb_player "] |
Setting up a remote interpreter on PyCharm is awfully unintuitive. I've pared it down to what I think is the minimal number of steps, and leaves the fewest number of deployment configurations and Python interpreters lying around. This is designed for my specific configuration (specifically PyTorch); adapt as needed.
- (Optional) Add virtual environment path to excluded files
- From Welcome Page, go to Configure > Settings > Build, Execution, Deployment > Deployment > Options
- Add virtualenv path. For example, if you always have the project's virtualenv in
.env
, add ";.env" to the "Exclude items by name" field
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
# Scroll left --> Ctrl+Shift+Tab | |
"xte 'keydown Control_L' 'keydown Shift_L' 'key Tab' 'keyup Shift_L' 'keyup Control_L'" | |
b:6 | |
# Scroll right --> Ctrl+Tab | |
"xte 'keydown Control_L' 'key Tab' 'keyup Control_L'" | |
b:7 | |
# Bottom side button --> Alt+Tab | |
"xte 'keydown Alt_L' 'key Tab' 'usleep 100000' 'keyup Alt_L'" |
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
/* | |
Copyright Alex Leone, David Nufer, David Truong, 2011-03-11. kathack.com | |
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0); | |
*/ | |
var BORDER_STYLE = "1px solid #bbb", | |
CSS_TRANSFORM = null, | |
CSS_TRANSFORM_ORIGIN = null, | |
POSSIBLE_TRANSFORM_PREFIXES = ['-webkit-', '-moz-', '-o-', '-ms-', ''], |