- Ctrl(Cmd)+Shift+R: Search symbol in project
- Ctrl(Cmd)+R: Search symbol in current file
- Ctrl(Cmd)+P: Search file
- Ctrl(Cmd)+Shift+P: Display list of commands
- Ctrl(Cmd)+K, Ctrl(Cmd)+Shift+Up: Split Pane and sends to right pane
- Ctrl(Cmd)+/: Toggle comment
- Ctrl(Cmd)+Shift+Space: Select all in current scope
- Ctrl+G: Go to line
- Ctrl(Cmd)+F: Search in current file
- Ctrl(Cmd)+Shift+F: Search & replace (in folders)
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 file in */ ; do | |
if [[ -d "$file" && ! -L "$file" ]]; then | |
echo "$file is a directory, launching git commands."; | |
cd $file && git checkout master && git reset HEAD --hard && git pull --rebase --prune; | |
cd ..; | |
fi; | |
done |
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 branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new 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
#! /usr/bin/env python2 | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import BaseHTTPServer | |
class CORSRequestHandler (SimpleHTTPRequestHandler): | |
def end_headers (self): | |
self.send_header('Access-Control-Allow-Origin', '*') | |
SimpleHTTPRequestHandler.end_headers(self) | |
if __name__ == '__main__': |
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
# All images | |
docker rm `docker ps -aq` | |
docker rmi `docker images -q` | |
# Only <none>/<none> | |
docker rmi `docker images | grep '^<none>' | awk '{print $3}'` |
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 rebase -i --root $tip | |
git commit --amend --author "Ketouem <ketouem@gmail.com>" | |
git rebase --continue |
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
"settings": | |
{ | |
"python_interpreter": "<path to python interpreter>", | |
"test_command": "<path to python interpreter> -m nose --nocapture" | |
} |
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
# OSX brew install moreutils | |
# Ubuntu apt-get install moreutils | |
<command> | ts '[%Y-%m-%d %H:%M:%S]' |
- Install Package Control
- Useful packages:
- Anaconda (Python IDE)
- Color Highlighter (preview color from the code)
- Git
- GitGutter
- INI (INI syntax highlighting)
- Markdown Extended (enhanced md syntax highlighting)
- Markdown Preview (handles markdown base spec & GitHub's flavor)
- requirementstxt (syntax highlighting for pip requirements file)
OlderNewer