Welcome to new things

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

Linux

Using Return Values in Shell Script Functions

I was using shell scripts and the scripts were getting long and hard to read, so I tried to summarize them with functions. However, the return values of shell script functions are different from those of functions in other programming lang…

How to encode and decode URLs with shell scripts

This is a memo on how to encode and decode URLs with shell scripts. You can find many ways to do this by searching. https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command At first, we tried using nkf for both enc…

The story of how I moved to WSL2 because Puppeteer stopped working at WSL1.

I have been using WSL1 and was thinking of using WSL2 sometime in the future when it becomes more stable, but now I have moved to WSL2 out of necessity. I'm going to write about the transition from WSL1 to WSL2 and the related Docker and X…

jq usage memo

Shell scripts use the jq command to retrieve data from JSON. I often forget how to use it, so here is a memo for my own use. Basic Basic operation "takes input from standard input, filters it, and outputs it to standard output." . represen…

Command memo for downloading a small file with SVN

I have a project that uses SVN and I may download the latest files from there. This is a minimal SVN command memo to be used when you just want a specified file, and you want to retrieve such a little file. svn installation sudo apt-get in…

AWS CLI configuration notes

It's been a while since I installed the AWS CLI. I see that it is now at version 2. Once you set it up, you don't have a chance to touch it and forget about it, so here is a memo on how to set it up for yourself. Basic Structure Set profil…

How to automatically change environment variables for each directory in Linux

The Docker Compose project name is the name of the directory where the docker-compose.yaml file is located. However, there are many cases where you may want to give a directory a different name. In such cases, you can specify the project n…

How to split logs into tabs for each container in Docker Compose

When I want to link multiple containers together, I use Docker Compose. When you run Docker Compose, you will see the logs for each container, but you will see the logs for all containers on one screen. I want to follow the log for each co…

I can no longer type underbar in Linux.

PS I received an update notification for Chrome, and when I updated it, hoping for the best, it was cured so that I could type in the underscore! We will keep the original article. Below is the original article. I use Linux (Ubuntu) and Wi…

How to use LDAP & note how to install on Ubuntu 18

I wanted to create and manage users for local use in the project and set up an LDAP server. Since this was my first time touching LDAP, I wrote down a rough explanation of LDAP, its usage, and the procedure for installing LDAP on Ubuntu 18…

I'm going to try to make the Linux shell switch in tabs like Chrome.

When I usually work with Linux, I have multiple terminals up and running. I'm not particularly inconvenienced by that, but I was looking into the possibility of launching multiple shells in a single CUI terminal and switching between them …

Enabling the Raspberry Pi to be used only with a PC without mouse, keyboard, and monitor.

When I saw the news of the Raspberry Pi4 announcement, I pulled out my Raspberry Pi and touched it for the first time in a while. I had touched the Raspberry Pi a little before, but gradually stopped using it because I was too lazy to move…

Using peco/fzf has made the selection process in the Linux shell dramatically easier.

I was looking for some kind of tool to help me select clusters for Kubernetes, and I saw a tool called peco. https://qiita.com/sonots/items/f82912367693d717ff06 PECO is an independent tool that has nothing to do with Kubernetes, but when I…

Using OneDrive with Ubuntu

I have been touching OneDrive for a while now. I tried to use OneDrive on Ubuntu as well, but OneDrive does not have a Linux client. I did some research and found an article about a free OneDrive client for Linux, so I gave it a try. qiita…

Fix WSL's Windows folder colors that are hard to see.

WSL (Windows Subsystem for Linux) files and folders are closed within WSL and cannot be accessed from outside WSL, such as Explorer. So I use a symbolic link to refer to a Windows folder as a location that can be accessed from both WSL and…

Building a Node.js environment in WSL with nvm

As with Building a Python environment, this is a note from when I re-installed the Node.js environment on a new version of WSL's Ubuntu. Since the version of Node.js used varies depending on when the JavaScript application was created, Nod…

How to backup Jenkins

We changed the server on which Jenkins is running, so we backed up Jenkins and reflected it on the new server. Just a note in case I need to backup Jenkins again. summary Jenkins is well designed, and all you have to do is copy the entire …

Build Python3+Jupyter Notebook environment with pyenv on WSL

Since the version of Ubuntu in WSL (Windows Subsystem for Linux) was getting old at 16, we installed a new Ubuntu with version 18. I also re-set up Python3 + Jupyter Notebook accordingly, but I ran into a few snags along the way, so here a…

Does that mean that the strange cursor display of Emacs in WSL (Windows Subsystem for Linux) will be fixed if I wait a little longer?

2019/05/22 Update The news is that the Windows 10 May 2019 Update (build 1903) has been released. I updated it right away, and it fixed the weird Emacs display in WSL! It was worth the wait. But maybe I should have waited a little longer..…

Memo on how to use Graph::Easy to draw diagrams with only text

When I try to draw diagrams in PowerPoint, I have a hard time deciding on the layout, size, etc., and I have a tendency to not be able to draw quickly. I thought that it would be better to have a rigidly restricted system, so I considered …

How to execute commands in parallel in shell scripts

Batch processing of data recorded in each file is sometimes performed by shell scripts. If there were a large number of files, it could be very time consuming to process them sequentially, waiting for one file to finish before processing t…

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…