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
aae | |
aah | |
aai | |
aaj | |
aan | |
aao | |
aap | |
aaq | |
aax | |
aay |
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
# build | |
docker build -t=image_name . | |
# start | |
docker run -d -p PORT:PORT image_name | |
# exec | |
docker exec -it container_name /bin/bash | |
# tag |
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
from sympy import * | |
from sympy import pdiv, prem | |
from sympy.abc import x | |
from random import random, choice, randint | |
from string import ascii_letters, digits | |
import sys | |
import os | |
import binascii | |
import threading | |
import Queue |
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
## Create table | |
id int(11) NOT NULL AUTO_INCREMENT | |
elements integer[4] | |
title TEXT CHARACTER SET utf8 NOT NULL | |
source VARCHAR(100) CHARACTER SET utf8 NOT NULL | |
doc_id INT REFERENCES documents ON DELETE CASCADE | |
review set('positive', 'negative', 'neutral') COMMENT '",".join(data) when query' |
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
# rsync | |
rsync -rzvh --exclude='*.git' --exclude='*.pyc' -e 'ssh -p PORT' SRC [USER@]HOST:/home/user/ | |
rsync -r ~/Music/iTunes/iTunes\ Media/Music ~/Documents/OneDrive/ | |
# Start mongo | |
mongod --config /usr/local/etc/mongod.conf --fork | |
# supervisord | |
supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
NewerOlder