- Create Kubernetus cluster
gcloud container clusters create --zone europe-west3-a <cluster_name>
-
Create namespace if necessary
k create namespace test
-
Persistent Volume resource:
kind: PersistentVolume
def create_page_video(_env, image_path): | |
""" | |
src doc: https://developers.facebook.com/docs/video-api/guides/publishing/ | |
``` | |
from dataclasses import dataclass | |
import requests | |
@dataclass | |
class Env: |
gke: `gcloud container clusters get-credentials locarta-private-0 --zone europe-west3-a --project collekt-1184` | |
aws: `` |
gcloud container clusters create --zone europe-west3-a <cluster_name>
Create namespace if necessary k create namespace test
Persistent Volume resource:
kind: PersistentVolume
config
%%configure -f
{
"jars": [
],
"name":"remotesparkmagic-vlad",
"numExecutors": 10,
"executorMemory": "1g",
"driverMemory": "3g",
sudo su - livy | |
#1 go to livy dir | |
cd /usr/local/lib/livy/conf | |
#2 make nontemplate configuration | |
cp livy.conf.template livy.conf | |
#3 | |
# In the config enable master and deployments |
import patsy as pt | |
def add_shifts_features(_df, col, shift=1): | |
dd = _df.copy() | |
future = dd[col].shift(-shift) | |
past = dd[col].shift(shift) | |
dd["%s_f%d" % (col, shift)] = future | |
dd["%s_p%d" % (col, shift)] = past | |
return dd | |
# Connect to Docker running your open vpn | |
docker exec -it <container_id> /bin/bash | |
export CERT_NAME="prod-somebody@somedomain" | |
cd /etc/openvpn/ | |
easyrsa revoke ${CERT_NAME} | |
#that command will generate pki/crl.pem file with updates | |
easyrsa gen-crl | |
cp -f pki/crl.pem ./ |
# Extract uid from json's conained in the file payload.json | |
# sudo apt-get install jshon | |
while read -r p; do echo $p | jshon -e uid; done < payload.json > uids.txt |
vars_files: | |
- "vault_vars/{{ inventory_dir | basename }}/docker_registry.yml" |