Boto doesn't handle gov cloud S3 urls correctly
Open file like: sudo nano -iw /home/zulip/deployments/{date}/zulip-py3-venv/lib/python3.6/site-packages/boto/s3/connection.py
Edit Lines:
| # Django Ninja authentication using django-allauth headless sessions | |
| from ninja.security.session import SessionAuth | |
| from allauth.headless import app_settings | |
| from allauth.headless.internal.authkit import purge_request_user_cache | |
| class AllAuthHeadless(SessionAuth): | |
| def authenticate(self, request, key=None): | |
| strategy = app_settings.TOKEN_STRATEGY |
| #!/bin/bash | |
| user=`id -nu $1` | |
| export HOME=`eval echo ~$user` | |
| ln -s /app/.bash_history $HOME/.bash_history | |
| ln -s /app/.python_history $HOME/.python_history |
| import datetime | |
| # pip install requests PyJWT cryptography | |
| import jwt | |
| import requests | |
| # https://developer.apple.com/account/resources/identifiers/list/serviceId | |
| WEATHERKIT_SERVICE_ID = "" # Create service like (use same ending): com.example.weatherkit-client | |
| # https://developer.apple.com/account/ - click Membership in nav to get Team ID |
| function downloadGDriveFile (file) { | |
| if (file.downloadUrl) { | |
| var accessToken = gapi.auth.getToken().access_token; | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open('GET', file.downloadUrl); | |
| xhr.setRequestHeader('Authorization', 'Bearer ' + accessToken); | |
| xhr.onload = function() { | |
| var content = xhr.responseText; | |
| do_something_with_file_content(file.title, content); | |
| }; |
| source /usr/share/autojump/autojump.bash | |
| PS1='\W\$ ' | |
| eval $(thefuck --alias) | |
| export GOROOT=$HOME/go | |
| export GOPATH=$HOME/go/packages | |
| export GPG_TTY=$(tty) | |
| export EDITOR=/bin/nano | |
| export PATH=$PATH:/home/paulmbailey/bin:/usr/local/go/bin:$GOROOT/bin:./node_modules/.bin |
| #!/usr/bin/env python | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.log | |
| import tornado.web | |
| import tornado.wsgi | |
| import tornado.websocket | |
| class MyWebSocket(tornado.websocket.WebSocketHandler): |
| Django==1.3.1 | |
| django-celery==2.3.3 | |
| django-kombu==0.9.4 |
I hereby claim:
To claim this, I am signing this object:
| set -g mouse on |