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
const aws4 = require('aws4') | |
const fetch = require('node-fetch') | |
const host = process.env.ELASTICSEARCH_ENDPOINT | |
module.exports.default = async function handler(event, context) { | |
const indexName = 'example' | |
const options = aws4.sign({ | |
host, |
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 React, { useEffect, useState } from "react"; | |
import { makeStyles } from "@material-ui/core/styles"; | |
import Table from "@material-ui/core/Table"; | |
import TableBody from "@material-ui/core/TableBody"; | |
import TableCell from "@material-ui/core/TableCell"; | |
import TableContainer from "@material-ui/core/TableContainer"; | |
import TableHead from "@material-ui/core/TableHead"; | |
import TableRow from "@material-ui/core/TableRow"; | |
import Paper from "@material-ui/core/Paper"; |
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
SERVICE_NAME=$1 | |
PROJECT=myproject | |
oc delete bc $SERVICE_NAME -n $PROJECT | |
oc delete dc $SERVICE_NAME -n $PROJECT | |
oc delete svc $SERVICE_NAME -n $PROJECT | |
oc delete route $SERVICE_NAME -n $PROJECT |
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
from fs.sshfs import SSHFS | |
host = '192.168.1.10' | |
remote_path = '/home/jovyan/dev/test-fs-sshfs/requirements.txt' | |
remote_fs = SSHFS( | |
host, user='david', passwd='test', pkey=None, timeout=10, port=22, | |
keepalive=10, compress=False, config_path='~/.ssh/config' | |
) |
NewerOlder