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
| $ ./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
| 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
| 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
| --- | |
| 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
| 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
| package test; | |
| import javax.jms.Connection; | |
| import javax.jms.ConnectionFactory; | |
| import javax.jms.JMSException; | |
| import com.tibco.tibjms.TibjmsConnectionFactory; | |
| public class TibJmsPoke { | |
| public static void main(String[] args) throws JMSException { |
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
| // Code generated by protoc-gen-go. DO NOT EDIT. | |
| // source: gtfs-realtime.proto | |
| package main | |
| import ( | |
| fmt "fmt" | |
| proto "github.com/golang/protobuf/proto" | |
| math "math" | |
| ) |
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 ubuntu:18.04 | |
| ENV SASL_MECHANISMS="PLAIN" | |
| ENV SECURITY_PROTOCOL="SASL_SSL" | |
| RUN apt-get update && \ | |
| apt-get install -y python3 python3-pip curl vim git build-essential zlib1g-dev libssl-dev libsasl2-dev libzstd-dev libcurl4-openssl-dev liblz4-dev rapidjson-dev | |
| RUN git clone https://github.com/confluentinc/librdkafka.git && \ | |
| cd librdkafka && \ |
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 centos:centos8.2.2004 | |
| RUN yum update -y && \ | |
| yum group install -y "Development Tools" && \ | |
| yum install -y git cyrus-sasl-devel cmake libcurl-devel | |
| RUN git clone https://github.com/edenhill/kafkacat.git && \ | |
| cd kafkacat/ && \ | |
| ./bootstrap.sh && \ | |
| ./kafkacat -h |