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 requests | |
import json | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
def GetWeightKG(string): | |
weight = "" | |
for i in range(0,len(string)): | |
if(string[i] == "("): | |
x = 1 |
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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
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
// CROSSHAIR | |
cl_crosshair_drawoutline "1" | |
cl_crosshair_dynamic_maxdist_splitratio "0" | |
cl_crosshair_dynamic_splitalpha_innermod "1" | |
cl_crosshair_dynamic_splitalpha_outermod "0.300000" | |
cl_crosshair_dynamic_splitdist "6" | |
cl_crosshair_friendly_warning "1" | |
cl_crosshair_outlinethickness "1" | |
cl_crosshair_sniper_show_normal_inaccuracy "0" | |
cl_crosshair_sniper_width "1" |
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
// Got these commands from https://forums.aws.amazon.com/thread.jspa?threadID=100339 | |
// Run them in your browser's console | |
// #1 Setup your shortcuts manually | |
// #2 Find which icons you have saved now | |
javascript:alert(JSON.parse(decodeURIComponent(document.cookie.replace(/(?:(?:^|.*;\s*)noflush_awscnm\s*\=\s*([^;]*).*$)|^.*$/, "$1"))).sc.join(","));void(0); | |
// #3 Run this to restore your shortcuts, replacing PREVIOUS_OUTPUT from the command below from the console output |
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
#!/usr/bin/env sh | |
export CLOUD_PROVIDER="aws" | |
# | |
# VARIABLES - AWS | |
# | |
export AWS_AVAILABLE_ZONES_MASTER="us-east-1c" | |
export AWS_AVAILABLE_ZONES_WORKER="us-east-1a,us-east-1b,us-east-1c" | |
export AWS_EC2_FAMILY_MASTER="t2.medium" |
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
# | |
# ZSH | |
# | |
ZSH="/root/.oh-my-zsh" | |
ZSH_THEME="blinks" | |
CASE_SENSITIVE="true" | |
ENABLE_CORRECTION="true" | |
DISABLE_UNTRACKED_FILES_DIRTY="true" |
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
#!/usr/bin/env bash | |
# Simple GKE Cluster creation | |
# Complete reference on https://cloud.google.com/sdk/gcloud/reference/container/clusters/create | |
# VARIABLES | |
CREATOR_NAME="tioxy" | |
CLUSTER_NAME="tioxy-cicd" | |
CLUSTER_ADDONS="NetworkPolicy,HorizontalPodAutoscaling,HttpLoadBalancing" | |
CLUSTER_VERSION="1.13.7-gke.24" |
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
# Parameters | |
${parameters["givenName"]} | |
# Jenkins Triggers - Properties file | |
# Image | |
${trigger["properties"]["key"]["nested-key"]} | |
# Helm Chart | |
gs://tioxyorg-helm-charts/ping-k8s-1.0.0.tgz |
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
# Configuring Velero for a Kubernetes cluster hosted in AWS | |
# For in depth details, check https://heptio.github.io/velero/master/aws-config.html | |
export VELERO_FOLDER=/opt/velero | |
export BUCKET_NAME=k8s-cluster-velero # Use a different name | |
export CLOUD_REGION=us-east-1 | |
# Create an S3 bucket to store Object backups | |
aws s3api create-bucket \ |
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
# Configuring Velero for a Kubernetes cluster hosted in GCP | |
# For in depth details, check https://heptio.github.io/velero/master/gcp-config.html | |
export VELERO_FOLDER=/opt/velero | |
export BUCKET_NAME=k8s-cluster-velero # Use a different name | |
export PROJECT_ID=$(gcloud config get-value project) | |
# Create a GS bucket to store Object backups | |
gsutil mb gs://$BUCKET_NAME/ |
OlderNewer