This file contains hidden or 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
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; | |
| ; Opinion Lexicon: Negative | |
| ; | |
| ; This file contains a list of NEGATIVE opinion words (or sentiment words). | |
| ; | |
| ; This file and the papers can all be downloaded from | |
| ; http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html | |
| ; | |
| ; If you use this list, please cite one of the following two papers: |
This file contains hidden or 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
| # ~/.ssh/config | |
| Host jump | |
| HostName <hostname> | |
| User <username> | |
| IdentityFile ~/.ssh/id_rsa | |
| Host <hostname> | |
| HostName <hostname> | |
| User <username> |
This file contains hidden or 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
| # kill all processes that match this command | |
| pkill -u user -f "gunicorn myapp.app.main:app" | |
| # kill sentence-transformers processes SIGKILL | |
| pkill -9 -u user -f "myapp/venv/bin/python3 -c from multiprocessing" | |
| # manual kill parent and child processes | |
| # see uvicorn multiprocessing bug https://github.com/encode/uvicorn/issues/852 | |
| PARENT_PID=$(pgrep -u user -f "uvicorn myapp.app.main:app --port=1234") |
This file contains hidden or 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
| # -v, --verbose | |
| # -a, --archive want recursion and preserve almost everything | |
| # -P same as --partial --progress | |
| # -z, --compress compress file data during the transfer | |
| rsync -vaPz file.txt user@server:~/user | |
| rsync -vaPz dir user@server:~/user |
This file contains hidden or 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
| cat input/squad20/dev-v2.0.json | jq '.data[].paragraphs[].qas[] | select(.id=="5ad24ce8d7d075001a428c0e")' -C | less -r | |
| cat input/squad20/dev-v2.0.json | jq ".data[].title" -C | less -r | |
| cat input/squad20/dev-v2.0.json | jq ".data[].paragraphs[].qas[].id" -C | less -r | |
| cat input/squad20/dev-v2.0.json | jq ".data[].paragraphs[].qas[].id" -C | grep -ni 'needle' | |
This file contains hidden or 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
| index = df[df["title"].str.len() == 0].index | |
| df.drop(index=index, inplace=True) | |
| index = df[df["is_disamb"] == 1].index | |
| df.drop(index=index, inplace=True) |
This file contains hidden or 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 logging | |
| from logging.config import fileConfig | |
| LOG_INI = CONF[ENVIRONMENT]["LOG_INI"] | |
| LOG_DIR = CONF[ENVIRONMENT]["LOG_DIR"] | |
| def get_logger(name: str = None): | |
| logging.config.fileConfig(LOG_INI, defaults={"logdir": LOG_DIR}) |
This file contains hidden or 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
| 2xu | |
| 3com | |
| 3d younique | |
| 3m | |
| 3m scotchlite | |
| 4head | |
| 5 star | |
| 55 soul | |
| 81 customs | |
| 81stgeneration |

