Skip to content

Instantly share code, notes, and snippets.

View making's full-sized avatar

Toshiaki Maki making

View GitHub Profile
@laidbackware
laidbackware / tanzu.md
Last active August 30, 2023 12:35
Tanzu CLI install one liner

Tanzu CLI Install One liner

Pre-reqs

  • Export your customerconnect.vmware.com credentials as VCC_USER and VCC_PASS
  • (optional) Specify the Tanzu CLI version with TANZU_VERSION, defaults to latest.
  • (optional) Specify Tanzu CLI directory with $TANZU_DIR. Defaults to $HOME/tanzu.

Upgrade/Downgrade

This one-liner can be used to upgrade and downgrade the Tanzu CLI. The only consideration is that during downgrades you will need to remove the contents of the $HOME/.config/tanzu directory, as the CLI will not handle downgrading of the content.

# Download and verify file
# Args: $DOWNLOAD_URI, $REFRESH_TOKEN, $SHA256
FROM ubuntu:bionic AS retrieve
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*
@jmelchio
jmelchio / Instructions.txt
Last active February 10, 2019 17:29
Quick start configuration for Spinnaker with CloudFoundry support on k8s
*** Disclaimer: Config and instructions supplied 'as is'. No suitability for use implied and by using these instructions
users assume responsibility for any outcomes of the use of these configuration files and instructions ***
Acknowledgements:
* kube-spinnaker-demo.yml has been derived from quickstart instructions and samples from the spinnaker.io site.
* service.yml, storage.yml and elasticsearch.yml have been copied (with minor modifications) from the elasticsearch instructions from the spinnaker.io site. (https://www.spinnaker.io/guides/user/tagging/)
Quick instructions for getting an environment up and running with support for k8s, CloudFoundry and entity tagging. Setup is
based on the quickstart file provided on the spinnaker.io website.
Familiarity with Kubernetes is assumed. This was tested out on GKE.

ブロックチェーン勉強会2

  • Thursday, May 26
  • AltCoin といわれるものから、その合意プロトコル的なものについていくつか紹介
  • TL;DR いっぱいありすぎてわかんねえ!

ブロックチェーンとは

ある事実なり履歴を改竄できない形で複製して保持する技術の総称

@shinji62
shinji62 / gist:b38080b07ccfd190c9af
Last active March 14, 2016 07:47
start-stop.sh
#!/bin/bash
# Set for 1.5.x Jobs
export BUNDLE_GEMFILE=/home/tempest-web/tempest/web/bosh.Gemfile
if [ "$1" == "shut" ] || [ "$1" == "start" ];
then
echo "Running PCF $1 Process..."
else
echo "Only shut or start are valid args!"
exit 1
@shinji62
shinji62 / deploy.sh
Created February 11, 2016 09:44
Simple deployment script java App
cf login -a https://api.$CF_SYSTEM_DOMAIN -u $CF_USER -p $CF_USER_PASS -o $CF_ORG -s $CF_SPACE --skip-ssl-validation
VERSION_TODO_APP=$VERSION_TEST
CF_APPS_DOMAIN=$CF_SYSTEM_DOMAIN
DEPLOYED_VERSION_CMD=$(CF_COLOR=false cf apps | grep "${FINAL_ROUTE_SUBDOMAIN}.${CF_APP_DOMAIN}" | grep started | awk '{print $1}')
DEPLOYED_VERSION=$(echo "${DEPLOYED_VERSION_CMD}")
ROUTE_VERSION=$(echo "${VERSION_TODO_APP}" | cut -d"." -f1-3 | tr '.' '-')
echo "Deployed Version: $DEPLOYED_VERSION"
echo "Route Version: $ROUTE_VERSION"
@inokappa
inokappa / gist:5d83b6c094810902b48a
Last active July 11, 2018 16:38
涙の自腹課金検証シリーズ第一弾:RabbitMQ クラスタ HA モード 3 パターンを速攻試す

涙の自腹課金検証シリーズ第一弾:RabbitMQ クラスタ HA モード 3 パターンを速攻試す


検証環境

  • Amazon Linux
  • t1.micro

を利用。以下の通り、クラスタ 3 台構成。

@matope
matope / NoSQLデータモデリング技法.markdown
Created April 16, 2012 03:35
NoSQLデータモデリング技法

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う