Welcome to new things

[Technical] [Electronic work] [Gadget] [Game] memo writing

Entries from 2018-12-01 to 1 month

Understanding JavaScript async/await a little better

I have been using JavaScript's async/await for some reason with a vague understanding, and when it didn't work, I would use Promise. However, recently I have been seeing async/await being used more and more often, so I started to think tha…

How to allow access to S3 files across AWS accounts

There are times when you want to retrieve S3 files from one account to another. In such cases, it is quicker to create a dedicated user who can download the S3 file, but this can also be done by granting access to the destination S3 to the…

Set up a lightweight GUI environment (Chrome, Japanese input display, remote desktop) on Ubuntu in the cloud

I summarized the setup of GUI environment on Linux (Ubuntu) in the cloud to enable minimum GUI work (Chrome & Japanese input display & remote desktop) even on a machine with low specs. Background Recently, with the increasing use of web se…

How to use service accounts across projects in Google Cloud Platform

Google Cloud Platform (GCP) has two types of accounts: user accounts and service accounts. A user account is a Google account, familiarly known as Gmail, that can belong to multiple arbitrary projects. A service account, on the other hand,…

Talk about Azure Functions starting up too slowly the first time.

There is a service called Azure Functions, which is like an Azure version of AWS Lambda. I wanted to operate Azure from MS Flow, and since MS Flow has a connector for Azure Functions, I tried to write a Function to operate Azure with Azure…

How to use Google Authentication instead of Basic Authentication just by setting up a web server

Basic authentication is an easy way to restrict access to a site. Basic authentication is convenient, but it is problematic because the browser does not remember the ID and password and you have to enter them each time, or anyone can acces…

How to delete all unnamed images at once in Docker

When working with Docker, you may find yourself with a lot of unnamed images like the one below. The images are Official Description, and you can delete all of them at once as follows. $ docker rmi $(docker images -f "dangling=true" -q) Re…

How to make a USB-connected PC volume control button with Arduino

Using an Arduino, I made a USB-connected volume control button that can turn up, turn down, or mute the volume of a PC. There are many different types of Arduino, but we will use the Arduino Micro, which has a microcontroller called ATmega…

How to get directory listing in AWS S3 in JSON

In the following directory structure, how to get a list of directories directly under a bucket or "dir_A1/dir_B1" in JSON. s3://bucket_1/ dir_A1/ dir_B1/ dir_C1/ dir_C2/ dir_C3/ dir_A2/ dir_A3/ When directly under the bucket $ aws s3api li…

The story of how I stopped using Docker on my Raspberry Pi.

It is fine to use Docker on the Raspberry Pi by itself, but it is not so easy to use Docker on the Raspberry Pi as a mini-server. impetus The server, which performs periodic crawls, was running on a desktop PC. Since we planned to prepare …

How to write programs from PC to ESP8266

This is a memo note on how to write a program to the ESP8266 from a PC. explanation This is a memo note for myself, but I will give a brief explanation. ESP8266 is a microcontroller with WiFi communication function. Create a program on the…

Try to create a pseudo-API that can access Office365 without coding.

Office365 provides an API called Microsoft Graph API that allows you to access Office365. However, it is a bit time-consuming, as you need to acquire the token yourself and learn how to use the API. So, we will show you how to use Office36…

TypeScript Recommendation

When I write JavaScript programs, I use TypeScript. Originally, I had written JavaScript directly, but the React component I wanted to use was written in TypeScript, so I tried writing it in TypeScript to see how it worked. I ended up not …