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
docker pull constrict0r/catalyst | |
docker run -v /home/username/Documents/jupyter:/projects -v ~/.catalyst:/root/.catalyst -p 8888:8888/tcp --name catalyst -ti constrict0r/catalyst | |
# Run on another shell. | |
docker exec -it catalyst catalyst ingest-exchange -x bitfinex -i btc_usd | |
docker exec -it catalyst catalyst ingest-exchange -x bitfinex -i btc_usd -f minute | |
docker exec -it catalyst catalyst run -f /projects/bull_conservative.py -x bitfinex --start 2019-1-5 --end 2019-1-6 -c usd --capital-base 10000 -o /projects/bull_conservative.pickle |
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
wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.203-1_amd64.deb | |
sudo dpkg -i logmein-hamachi_2.1.0.203-1_amd64.deb | |
sudo hamachi login | |
sudo hamachi join <network-name> | |
sudo hamachi list |
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
dd if=/dev/zero of=/dev/sda bs=4096 |
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
sudo badblocks -v /dev/sda10 > badsectors.txt | |
sudo e2fsck -l badsectors.txt /dev/sda10 |
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
ansible-vault encrypt_string 1234 --ask-vault-pass |
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
# Using requests. | |
import request | |
request = requests.get(value) | |
if request.status_code == 200: | |
return True | |
return False | |
# Using httplib2. | |
import httplib2 |
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
# Ansible. | |
*.retry | |
# Binaries. | |
*.jpg | |
# Buffers. | |
*~ | |
# Coverage. |
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
# Add. | |
git subtree add --prefix docs/source/parts [email protected]:constrict0r/parts.git master --squash | |
# Update. | |
git subtree pull --prefix docs/source/parts [email protected]:constrict0r/parts.git master --squash | |
# Remove. | |
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -rf docs/source/parts' --prune-empty -f HEAD |
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
cd my_project/docs/source | |
pandoc -s -o ../build/singlerst/README.rst title.rst ingredients.rst index_plain.rst |
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
# Add. | |
git submodule add -b branch_name https://github.com/constrict0r/submodulename optional_directory_rename | |
# Get. | |
git submodule update --init --recursive | |
git submodule update --recursive | |
# Remove. | |
git rm submodulename | |
rm -rf .git/modules/submodulename |