I hereby claim:
- I am rberrelleza on github.
- I am rberrelleza (https://keybase.io/rberrelleza) on keybase.
- I have a public key whose fingerprint is 526A 22E3 E3D3 A322 73FD BDA9 3B16 AAED 6189 E49E
To claim this, I am signing this object:
| perl -MMIME::Base64 -ne 'print decode_base64($_)' < YOUR_FILE.eml |
| #!/bin/bash | |
| set -e | |
| # Keypairs | |
| echo "Finding Key Pairs..." | |
| KEY_PAIRS_JSON=`aws ec2 describe-key-pairs --filters 'Name=key-name,Values=packer*'` | |
| KEY_PAIRS=`echo "${KEY_PAIRS_JSON}" | grep 'KeyName' |sed -e 's/.*"KeyName": "//' -e 's/",* *$//'` | |
| # Security Groups |
| import base64 | |
| import requests | |
| import urllib | |
| apikey=urllib.unquote("YOUR_KEY") | |
| apisecret=urllib.unquote("YOUR_API_SECRET") | |
| bearer_creds="{}:{}".format(apikey, apisecret) | |
| base64encoded_creds = base64.b64encode(bearer_creds) | |
| twitter_api_url="https://api.twitter.com/oauth2/token" |
I hereby claim:
To claim this, I am signing this object:
| import argparse | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def getChildValue(val): | |
| try: | |
| return float(val) | |
| except: | |
| return val |
| git --global config.ap '!message=$(git log -1 --pretty=%B) && git commit -m "$message" --amend' |
| #!/bin/bash | |
| output=$(aws ec2 run-instances --image-id $1 --instance-type m3.large --key-name YOUR_KEY --security-group-ids YOUR_SG --subnet-id YOUR_SUBNET --associate-public-ip-address --block-device-mapping '[{"DeviceName": "/dev/sda1","Ebs":{"VolumeSize":60}}]') | |
| instance=$(echo $output | grep -o '\"InstanceId\": "i-........\"' | grep -o i-........ ) | |
| tag=$(whoami)-$(date +"%Y-%m-%d_%H-%M-%S") | |
| sleep 5 | |
| aws ec2 create-tags --resources $instance --tags Key=Name,Value=$tag | |
| echo $instance% |
kubectl config use-context gke_development-123_europe-west4-c_europe --namespace=ramiro)cnd version: go get github.com/okteto/cndkubectl get --export deployment "$YOUR_DEPLOYMENT" -oyaml > deployment.ymlcnd.yml file:swap:
deployment:
file: deployment.yml
container: api
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: local-path-storage | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: local-path-provisioner-service-account | |
| namespace: local-path-storage |