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
""" | |
Copyright [2009-present] EMBL-European Bioinformatics Institute | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and |
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
# <configuration-directory>/playbooks/roles/start-helm/tasks/main.yml | |
--- | |
- name: start helm | |
command: helm init --stable-repo-url https://charts.helm.sh/stable | |
- name: "get tiller-deploy pod name" | |
shell: > | |
kubectl get pods --namespace=kube-system | | |
grep tiller-deploy- | |
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
#!/bin/bash | |
# S3 server | |
server="" | |
# set the path based on the first argument | |
path=$1 | |
# remove the last slash from the directory, if necessary | |
if [[ "$path" =~ '/'$ ]]; then |
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
import csv | |
import os | |
from mezzanine.blog.models import BlogPost | |
path = "/path/to/csv/file" | |
os.chdir(path) | |
with open('result.csv') as csvfile: |