This file contains 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
$ docker run -d -p 3000:3000 --name metabase metabase/metabase | |
xxxxxxyyyyyyyxxaserjaser <- コンテナID | |
$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
xxxxxxyyyyy metabase/metabase "/app/run_metabase.sh" 3 seconds ago Up 2 seconds 0.0.0.0:3000->3000/tcp metabase |
This file contains 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
#!/bin/bash | |
# 変数セット | |
DOC_APIB_FILE=PwmDocs.apib | |
DOC_HTML_FILE=PwmDocs.html | |
NOW_DTTM=`date "+%Y%m%d%H%M%S"` | |
LOG_FILE="${NOW_DTTM}_apib2html.log" | |
echo "[`date \"+%Y-%m-%d %H:%M:%S\"`] 処理開始" | tee -a logs/$LOG_FILE |
This file contains 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
package main | |
import ( | |
"net/http" | |
"github.com/labstack/echo" | |
"github.com/labstack/echo/middleware" | |
"github.com/sasaken555/ponz_goecho_server/routes" | |
) | |
func main() { |
This file contains 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
#!/bin/bash | |
echo ">>> Deploy Started..." | |
echo ">>> LogIn to IBM Cloud...." | |
ibmcloud --version | |
ibmcloud login --apikey $API_KEY -a api.ng.bluemix.net -o "$ORG" -s "$SPACE" | |
ibmcloud fn property get --auth # *IMPORTANT* Create/Update .wskprops file. | |
echo ">>> Install Serverless packages globally..." | |
npm install -g serverless serverless-openwhisk |
This file contains 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
package net.ponzmild.aws | |
import com.amazonaws.services.simplesystemsmanagement.model.{GetParameterRequest} | |
import com.amazonaws.services.simplesystemsmanagement.{AWSSimpleSystemsManagement, AWSSimpleSystemsManagementClientBuilder} | |
import scala.util.{Failure, Success, Try} | |
/** | |
* Find value from AWS SSM ParameterStore | |
*/ |
This file contains 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 { IBaseController } from "./IBaseController"; | |
import { CreateScriptCtrlRequest } from "./CreateScriptCtrlRequest"; | |
import { | |
CreateScriptCtrlResponse, | |
CreateScriptResponseCtrlDetail | |
} from "./CreateScriptCtrlResponse"; | |
import { ICreateScriptUseCase } from "../usecase/UseCaseInterface"; | |
import { CreateScriptRequest } from "../usecase/CreateScriptRequest"; | |
import { injectable, inject } from "inversify"; | |
import { TYPE } from "../common/Types"; |
This file contains 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
#!/bin/bash | |
CLUSTER_NAME=$1 | |
echo ">>> Delete Cluster starged..." | |
gcloud container clusters delete $CLUSTER_NAME | |
echo ">>> All delete process are finished!!" |
This file contains 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
const NATS = require("nats"); | |
const nc = new NATS({ url: "nats://localhost:4222", json: true }); | |
nc.on("connect", c => console.log("connected!")); | |
nc.on("error", err => console.log(err.message)); | |
// time.* というSubjectを購読 | |
nc.subscribe("time.*", msg => { | |
console.log(msg); | |
nc.close(); |
This file contains 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 {Injectable} from '@angular/core'; | |
import AppID from 'ibmcloud-appid-js'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class AuthService { | |
private appId; | |
private accessToken: string; |
This file contains 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
<button | |
mat-raised-button | |
disabled="{{!isAuthenticated}}" | |
(click)="getUserInfo()" | |
> | |
<mat-icon>account_circle</mat-icon> Profile | |
</button> | |
<button | |
mat-raised-button | |
color="primary" |
OlderNewer