Skip to content

Instantly share code, notes, and snippets.

View watilde's full-sized avatar
👋
Hi

Daijiro Wachi watilde

👋
Hi
View GitHub Profile
import UAParser from 'ua-parser-js';
import { Analytics, AWSKinesisProvider } from 'aws-amplify';
import awsconfig from './aws-exports';
Analytics.configure({
AWSKinesis: {
region: awsconfig.aws_project_region,
bufferSize: 1000,
flushSize: 100,
flushInterval: 5000,
import * as StackTrace from 'stacktrace-js';
import UAParser from 'ua-parser-js';
import { Analytics, AWSKinesisProvider } from 'aws-amplify';
import awsconfig from './aws-exports';
Analytics.configure({
AWSKinesis: {
region: awsconfig.aws_project_region,
bufferSize: 1000,
flushSize: 100,

Describe the bug Building page shows duplicated tabs in Japanese and English at the same time, and the labels in English do not work.

To Reproduce Steps to reproduce the behavior:

  1. Go to Amplify console
  2. Select Japanese from footer
  3. See duplicated tabs and English tabs do not work

Expected behavior

Title

Ask users if it's ok to stop the service when disconnecting

Description

Is your feature request related to a problem? Please describe.

Disconnecting branches stopped a service I'm working on which was not expected. I was expecting the service will be kept hosting as is.

Describe the solution you'd like

meant

$ nyc --reporter=lcov --reporter=text npm run test

> meant@1.0.2 test /Users/daijirow/Developments/watilde/meant
> standard && tap test.js

test.js ............................................... 4/4 2s
total ................................................. 4/4
make -C out BUILDTYPE=Release V=0
touch 5d93f6fffd8517460d7d45f107df505cb5f99018.intermediate
LD_LIBRARY_PATH=/home/daijiro/Developments/nodejs/node/out/Release/lib.host:/home/daijiro/Developments/nodejs/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/daijiro/Developments/nodejs/node/out/Release/obj/gen/src/node/inspector/protocol; python tools/inspector_protocol/code_generator.py --jinja_dir tools/inspector_protocol --output_base "/home/daijiro/Developments/nodejs/node/out/Release/obj/gen/src/" --config src/inspector/node_protocol_config.json
touch 4616ff230b1ee50cd835a6fbe18a7c3ac19cc841.intermediate
LD_LIBRARY_PATH=/home/daijiro/Developments/nodejs/node/out/Release/lib.host:/home/daijiro/Developments/nodejs/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /home/daijiro/Developments/nodejs/node/out/Release/obj/gen/torque-output-root/torque-generated /home/daijiro/Developments/nodejs/node/out/Release/
// Refs: https://github.com/hiroppy/node-metrics
const fetch = require('node-fetch');
(async () => {
const url = 'https://nodejs.org/metrics/summaries/total.csv'
const csv = await fetch(url).then((res) => res.text());
let total = 0;
csv.split('\n').map(a => a.split(',')).slice(1, -1).forEach((item) => {
total += Number(item[1])
});
net stop wuauserv
rename C:\Windows\SoftwareDistribution SoftwareDistribution.back
net start wuauserv
net stop wuauserv
rename C:\Windows10Upgrade Windows10Upgrade.back
net start wuauserv
net stop wuauserv
rm /s /q C:\Windows10Upgrade.back
@watilde
watilde / hi.sh
Last active January 22, 2020 12:07
grep -rl -e Daijiro -e watilde $(dirname $(dirname $(which npm))/$(readlink $(which npm)))/../../
process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});