pip install zappa
Update the values as needed.
# Managed by Ansible, do not edit this file directly | |
# Source this file to run `globus-connect-server` commands as the client | |
export GLOBUS_SDK_ENVIRONMENT={{ globus_sdk_environment }} | |
export GCS_CLI_CLIENT_ID={{ gcs_cli_client_id }} | |
export GCS_CLI_CLIENT_SECRET={{ gcs_cli_client_secret }} | |
export GCS_CLI_ENDPOINT_ID=$(jq -r .client_id /home/ubuntu/deployment-key.json) |
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
# First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
git clone git://server.com/my-repo1.git | |
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
git filter-branch --subdirectory-filter your_dir -- -- all | |
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
# We first create a spreadsheet with the ZenHub Pipeline and GitHub Project Column mapping | |
# Then, we moved all the issues manually into an "Unsorted" column in our GitHub Project | |
# Read through each of the issues that is in the Unsorted column and move them to the correct column | |
# if it's in the spreadsheet. | |
# To run: | |
# pip install python-dotenv ghzh-clients | |
import csv | |
import os |
# Save this to a file called traefik-redirect.yml | |
# docker stack deploy --compose-file traefik_redirect.yml traefik_redirect | |
version: "3.7" | |
networks: | |
traefik-public: | |
external: true | |
name: traefik-public | |
services: | |
# This is spun up as a "dummy" service. We redirect to another location. | |
staging: |
--- | |
platform: linux | |
image_resource: | |
type: registry-image | |
source: | |
password: ((ce-dockerhub-token)) | |
repository: alpine/git | |
username: ((ce-dockerhub-id)) | |
inputs: | |
- name: source-code |
export PUBSWEET_SECRET='asecretsecretnotreally' | |
export POSTGRES_USER='dev' | |
export POSTGRES_PASSWORD='secretpassword' | |
export POSTGRES_HOST='0.0.0.0' | |
export POSTGRES_DB='editoria_dev' | |
export POSTGRES_PORT='5432' | |
export SERVER_PORT='3000' | |
export INK_ENDPOINT='http://167.99.161.30:3000/' | |
export INK_USERNAME='[email protected]' | |
export INK_PASSWORD='abc12345' |
#306998,#FFD43B,#FFD43B,#7F7F7F,#5A9FD4,#F4F4F4,#FFE873,#FFD43B |
import csv | |
import os | |
import sys | |
from datetime import datetime | |
from selenium import webdriver | |
HERE = os.path.abspath(os.path.dirname(__file__)) |
import csv | |
import os | |
import urllib | |
from datetime import datetime | |
# pip install requests | |
import requests | |
HERE = os.path.abspath(os.path.dirname(__file__)) |