pyenv virtualenv 3.6.2 3.6.2-ProjectNameHere
pyenv local 3.6.2-ProjectNameHere
echo ".python-version" >> .gitignorepipenv --python 3.6.2
pipenv shell
| # ByeBye Cloudapp | |
| ## Dumping | |
| https://github.com/cloudapp/api/blob/master/view-item.md | |
| ## Monitoring | |
| https://github.com/cloudapp/api/blob/master/stream-items.md |
pyenv virtualenv 3.6.2 3.6.2-ProjectNameHere
pyenv local 3.6.2-ProjectNameHere
echo ".python-version" >> .gitignorepipenv --python 3.6.2
pipenv shell
| abus granit |
| #!/bin/bash | |
| import -window $(xwininfo | grep -Po 'Window id: .*? ' | grep -Po '0x.* ') screenshot.jpg |
| export GTK_IM_MODULE=fcitx | |
| export QT_IM_MODULE=fcitx | |
| export XMODIFIERS=@im=fcitx | |
| export DefaultIMModule=fcitx | |
| exec lxsession -s Lubuntu -e LXDE |
| auto-key-locate keyserver | |
| keyserver hkps://hkps.pool.sks-keyservers.net | |
| keyserver-options no-honor-keyserver-url | |
| keyserver-options ca-cert-file=/etc/sks-keyservers.netCA.pem | |
| keyserver-options no-honor-keyserver-url | |
| keyserver-options debug | |
| keyserver-options verbose | |
| personal-cipher-preferences AES256 AES192 AES CAST5 | |
| personal-digest-preferences SHA512 SHA384 SHA256 SHA224 |
| cat << "-----END PGP SIGNATURE-----" > /dev/null | |
| -----BEGIN PGP SIGNATURE----- | |
| ... | |
| -----END PGP SIGNATURE----- |
| {"lastUpload":"2017-08-10T11:51:57.295Z","extensionVersion":"v2.8.2"} |
| #!/bin/bash | |
| machine=$(python -c "import uuid;print(uuid.uuid4())") | |
| # NEEDED: AmazonEC2FullAccess, AmazonEC2SpotFleetRole | |
| AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id) | |
| AWS_DEFAULT_REGION=$(aws configure get region) | |
| AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key) | |
| VPC=$(aws ec2 describe-vpcs | jq -r '.Vpcs[0].VpcId') |
| import sys | |
| def func_name(_): | |
| return sys._getframe(1).f_code.co_name | |
| def line_number(_): | |
| return str(sys._getframe(1).f_lineno) | |
| def file_name(_): | |
| return sys._getframe(1).f_code.co_filename |