Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
guitarrapc / get_all_roles.sh
Last active September 9, 2020 21:54
List all Kubernetes Resources that can define on Role/ClusterRole.
#!/bin/bash
_list=($(kubectl get --raw / |grep "^ \"/api"|sed 's/[",]//g'));
for _api in ${_list[@]}; do
_aruyo=$(kubectl get --raw ${_api} | jq .resources);
if [ "x${_aruyo}" != "xnull" ]; then
echo;
echo "# ${_api}";
kubectl get --raw ${_api} | jq -r ".resources[].name";
fi;
done
@kosukeobata
kosukeobata / biz_handson.md
Last active April 8, 2017 07:42
【プログラミング初心者向け】Railsを使って90分で0からアプリを作ってみるハンズオン の当日資料です。

環境構築

コマンドラインツールのインストール

xcode-select --install

brew

  • brewをインストールする
"use strict";
console.log("AWS Lambda SES Forwarder - domain forward // modified by @iseebi, Rev.2 // Original: @arithmetric, Version 2.3.0 ");
// Configure the S3 bucket and key prefix for stored raw emails, and the
// mapping of email addresses to forward from and to.
//
// Expected keys/values:
// - fromEmail: Forwarded emails will come from this verified address
// - emailBucket: S3 bucket name where SES stores emails.
@scova0731
scova0731 / scala-learning-resource.md
Created February 27, 2015 04:02
Scala 学習リソース (2015/2版)

定番、および比較的最近の学習リソースを集めてみました (2015/2)。

リファレンス

記事等

@yuyalush
yuyalush / Docker Demo Read me
Created December 16, 2014 01:57
Dockderのデモをするときの手順です。参考までに。
<事前準備>
事前にIaaSにてUbuntu14.04か14.10入りのサーバを作成(CoreOSでも可です。)
2つのベンダーでサーバを作りましょう。
FWやポートフォワードについてはSSHとHTTP用に外部から アクセスできるようにしておきます。
ポータビリティを確認するため、クラウドAからクラウドBへの接続に 必要となる秘密鍵を事前にサーバに入れておきましょう
apt-get updateとapt-get upgradeでOSを更新
apt-get install docker.io で稼働環境の準備はおしまいです。
<デモ手順>
#!/usr/bin/env ruby
require 'aws-sdk'
require 'optparse'
require 'yaml'
require 'json'
begin
require 'aws/profile_parser'
rescue LoadError; end
@mochizuki-masao
mochizuki-masao / count.rb
Last active September 8, 2016 17:50
S3_count_storage_size
#!/usr/bin/env ruby
require 'aws-sdk'
require 'optparse'
begin
require 'aws/profile_parser'
rescue LoadError; end
def conv_unit size

By Saad Mousliki

御存知の通り、JavaScriptは数あるプログラミング言語のうちのひとつであり、モバイルのハイブリッドアプリ(PhoneGapやAppceleratorといった)や、サーバーサイド(NodeJSやWakanda)等の様々な所で実装されているWebの言語です。 また、Webブラウザにalertを出すところから、ロボットを動かす(nodebotやnodruinoを使って)ところまで様々なシーンで使われる言語となりました。 JavaScriptをマスターし、パフォーマンスの良いコードを生み出す開発者は市場で最も求められています。

{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "VPC knowhow template",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type": "String",
"MinLength": "1",
"MaxLength": "64",
"AllowedPattern": "[-_ a-zA-Z0-9]*",