I deployed to PythonAnywhere
It worked it worked I had no care
I used the lovely API
It told the truth it did not lie
But then I found I need DELETE
Then my script would be replete
Then surely I could redeploy
And my world is filled with joy
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
| swagger: "2.0" | |
| tags: | |
| - users | |
| parameters: | |
| - in: path | |
| name: username | |
| type: string | |
| required: true | |
| responses: | |
| 200: |
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
| --- | |
| Get a single conversation from id. | |
| The state field in conversation payload may take one of the following status | |
| - **normalState** : Default state for conversation | |
| - **waitForFirstMessage** : Message count equals 0 | |
| - **waitingForPermission** : Message count equals 1 and current user created conversation |
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 celery import Task | |
| from celery.task import task | |
| from my_app.models import FailedTask | |
| from django.db import models | |
| @task(base=LogErrorsTask) | |
| def some task(): | |
| return result | |
| class LogErrorsTask(Task): |
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
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'org.gretty:gretty:2.1.0' | |
| } | |
| } |
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
| $ ./gradlew --console=verbose clean assemble | |
| > Task :clean | |
| > Task :compileJava | |
| > Task :processResources | |
| > Task :classes |
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
| $ ./gradlew --console=verbose clean build | |
| > Task :clean | |
| > Task :compileJava | |
| > Task :processResources | |
| > Task :classes |
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
| $ ./gradlew --console=verbose clean assemble check | |
| > Task :clean | |
| > Task :compileJava | |
| > Task :processResources | |
| > Task :classes |
- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
| #!/usr/bin/env bash | |
| # OpenSSL requires the port number. | |
| SERVER=$1 | |
| DELAY=1 | |
| ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g') | |
| echo Obtaining cipher list from $(openssl version). | |
| for cipher in ${ciphers[@]} |