go run . > output.png
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' | |
) |
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
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
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
const fs = require('fs') | |
const cloudformationSchema = require('@serverless/utils/cloudformation-schema') | |
const esbuild = require('esbuild') | |
const yaml = require('js-yaml') | |
const rimraf = require('rimraf') | |
const SERVERLESS_YML_PATH = './serverless.yml' | |
const OUT_DIR = './dist' | |
// ref: https://esbuild.github.io/api/#simple-options |
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
wget https://mirror.alpix.eu/endeavouros/repo/endeavouros/x86_64/endeavouros-keyring-<VERSION>-any.pkg.tar.xz | |
sudo pacman -U endeavouros-keyring-<VERSION>-any.pkg.tar.xz |
I hereby claim:
- I am dbrrt on github.
- I am dbrrt (https://keybase.io/dbrrt) on keybase.
- I have a public key ASBVPUG-CDs4y49m2HcrX-4iG96JXjPdUYLYrH_GK0k1Qwo
To claim this, I am signing this object:
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
https://github.com/microsoft/WSL/issues/5401 | |
- "The user has not been granted the requested logon type at this computer" | |
Type `gpupdate /force` in a shell. | |
Then reboot. | |
The error shouldn't appear anymore. | |
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 type { VercelRequest, VercelResponse } from "@vercel/node"; | |
export const vercelWrapper = | |
(handler_: Function) => async (req: VercelRequest, res: VercelResponse) => { | |
const { statusCode, body } = await handler_(req); | |
res.status(statusCode).json(JSON.parse(body)); | |
}; |
OlderNewer