### Initialize Gatsby Project Source: https://context7_llms Command to initialize a new Gatsby project. It guides the user through setup questions like site name, folder, language, CMS, styling, and additional features, then installs necessary packages and configures plugins. ```bash % npm init gatsby ``` ```text Need to install the following packages: create-gatsby@3. 11. 0 Ok to proceed? (y) y create-gatsby version 3. 11. 0 Welcome to Gatsby! This command will generate a new Gatsby site for you in /Users/yuki. matsukura/ghq/github. com/matsubo/www. teraren. com with the setup you select. Let's answer some questions: What would you like to call your site? ✔ · Teraren Corporate Site What would you like to name the folder where your site will be created? ✔ www. teraren. com/ teraren-corporate-site ✔ Will you be using JavaScript or TypeScript? · JavaScript ✔ Will you be using a CMS? · No (or I'll add it later) ✔ Would you like to install a styling system? · Tailwind CSS ✔ Would you like to install additional features with other plugins? · Add the Google gtag script for e. g. Google Analytics · Add responsive images · Add an automatic sitemap · Generate a manifest file · Add Markdown and MDX support Thanks! Here's what we'll now do: 🛠 Create a new Gatsby site in the folder teraren-corporate-site 🎨 Get you set up to use Tailwind CSS for styling your site 🔌 Install gatsby-plugin-google-gtag, gatsby-plugin-image, gatsby-plugin-sitemap, gatsby-plugin-manifest, gatsby-plugin-mdx ✔ Shall we do this? (Y/n) · Yes ✔ Created site from template ✔ Installed Gatsby ✔ Installed plugins ✔ Created site in teraren-corporate-site 🔌 Setting-up plugins... info Adding gatsby-plugin-postcss info Adding gatsby-plugin-google-gtag info Adding gatsby-plugin-image info Adding gatsby-plugin-sitemap info Adding gatsby-plugin-manifest info Adding gatsby-plugin-mdx info Adding gatsby-plugin-sharp info Adding gatsby-transformer-sharp info Adding gatsby-source-filesystem info Adding gatsby-source-filesystem info Installed gatsby-plugin-postcss in gatsby-config success Adding gatsby-plugin-postcss to gatsby-config - 0. 215s info Installed gatsby-plugin-google-gtag in gatsby-config success Adding gatsby-plugin-google-gtag to gatsby-config - 0. 210s info Installed gatsby-plugin-image in gatsby-config success Adding gatsby-plugin-image to gatsby-config - 0. 215s info Installed gatsby-plugin-sitemap in gatsby-config success Adding gatsby-plugin-sitemap to gatsby-config - 0. 220s info Installed gatsby-plugin-manifest in gatsby-config success Adding gatsby-plugin-manifest to gatsby-config - 0. 256s info Installed gatsby-plugin-mdx in gatsby-config success Adding gatsby-plugin-mdx to gatsby-config - 0. 260s info Installed gatsby-plugin-sharp in gatsby-config success Adding gatsby-plugin-sharp to gatsby-config - 0. 262s info Installed gatsby-transformer-sharp in gatsby-config success Adding gatsby-transformer-sharp to gatsby-config - 0. 266s info Installed gatsby-source-filesystem in gatsby-config success Adding gatsby-source-filesystem (images) to gatsby-config - 0. 278s info Installed gatsby-source-filesystem in gatsby-config success Adding gatsby-source-filesystem (pages) to gatsby-config - 0. 281s 🎨 Adding necessary styling files... 🎉 Your new Gatsby site Teraren Corporate Site has been successfully created at /Users/yuki. matsukura/ghq/github. com/matsubo/www. teraren. com/teraren-corporate-site. Start by going to the directory with cd teraren-corporate-site See all commands at https://www. gatsbyjs. com/docs/reference/gatsby-cli/ ``` -------------------------------- ### Install Fastfetch on Ubuntu Source: https://blog.teraren.com/2024/06/23/neofetch-fastfetch/ Instructions to add the PPA repository and install the fastfetch package using apt on Ubuntu systems. ```bash sudo add-apt-repository ppa:zhangsongcui3371/fastfetch ``` ```bash sudo apt update ``` ```bash sudo apt install fastfetch ``` -------------------------------- ### Install/Upgrade MySQL Server and Client Source: https://blog.teraren.com/2023/08/29/ubuntu-mysql-8-1/ This command initiates the installation or upgrade of MySQL server and client packages on Ubuntu. It handles dependency resolution, package removal (older versions), and installation of new versions. The output shows the packages being installed, removed, and upgraded, along with download progress. ```bash sudo apt install mysql-client mysql-server matsu@dell ~> sudo apt install mysql-client mysql-server [62/674] Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libcgi-fast-perl libcgi-pm-perl libclone-perl libencode-locale-perl libevent-pthreads-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libprotobuf-lite23 libtimedate-perl liburi-perl Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: mysql-common mysql-community-client mysql-community-client-core mysql-community-client-plugins mysql-community-server mysql-community-server-core The following packages will be REMOVED: mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0 The following NEW packages will be installed: mysql-client mysql-community-client mysql-community-client-core mysql-community-client-plugins mysql-community-server mysql-community-server-core The following packages will be upgraded: mysql-common mysql-server 2 upgraded, 6 newly installed, 4 to remove and 0 not upgraded. Need to get 31.0 MB of archives. After this operation, 33.0 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-server amd64 8.1.0-1ubuntu22.04 [66.5 kB] Get:2 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-common amd64 8.1.0-1ubuntu22.04 [67.8 kB] Get:3 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-community-client-plugins amd64 8.1.0-1ubuntu22.04 [1428 kB] Get:4 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-community-client-core amd64 8.1.0-1ubuntu22.04 [2087 kB] Get:5 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-community-client amd64 8.1.0-1ubuntu22.04 [2407 kB] Get:6 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-client amd64 8.1.0-1ubuntu22.04 [66.5 kB] Get:7 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-community-server-core amd64 8.1.0-1ubuntu22.04 [24.8 MB] Get:8 http://repo.mysql.com/apt/ubuntu jammy/mysql-innovation amd64 mysql-community-server amd64 8.1.0-1ubuntu22.04 [78.2 kB] Fetched 31.0 MB in 7s (4296 kB/s) Preconfiguring packages ... (Reading database ... 169877 files and directories currently installed.) Preparing to unpack .../mysql-server_8.1.0-1ubuntu22.04_amd64.deb ... Unpacking mysql-server (8.1.0-1ubuntu22.04) over (8.0.34-0ubuntu0.22.04.1) ... (Reading database ... 169880 files and directories currently installed.) Removing mysql-server-8.0 (8.0.34-0ubuntu0.22.04.1) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Removing mysql-client-8.0 (8.0.34-0ubuntu0.22.04.1) ... Removing mysql-client-core-8.0 (8.0.34-0ubuntu0.22.04.1) ... Removing mysql-server-core-8.0 (8.0.34-0ubuntu0.22.04.1) ... (Reading database ... 169679 files and directories currently installed.) Preparing to unpack .../0-mysql-common_8.1.0-1ubuntu22.04_amd64.deb ... Unpacking mysql-common (8.1.0-1ubuntu22.04) over (5.8+1.0.8) ... Selecting previously unselected package mysql-community-client-plugins. Preparing to unpack .../1-mysql-community-client-plugins_8.1.0-1ubuntu22.04_amd64.deb ... Unpacking mysql-community-client-plugins (8.1.0-1ubuntu22.04) ... Selecting previously unselected package mysql-community-client-core. ``` -------------------------------- ### Install apcupsd Package Source: https://blog.teraren.com/2021/04/14/ups/ Shows the typical output during the installation of the apcupsd package, including dependency resolution and package unpacking. ```bash The following additional packages will be installed: apcupsd-doc Suggested packages: apcupsd-cgi The following NEW packages will be installed: apcupsd apcupsd-doc 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 532 kB of archives. After this operation, 1,743 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ftp.riken.jp/Linux/ubuntu focal/universe amd64 apcupsd-doc all 3.14.14-3build1 [328 kB] Get:2 http://ftp.riken.jp/Linux/ubuntu focal/universe amd64 apcupsd amd64 3.14.14-3build1 [204 kB] Fetched 532 kB in 3s (212 kB/s) Selecting previously unselected package apcupsd-doc. (Reading database ... 256476 files and directories currently installed.) Preparing to unpack .../apcupsd-doc_3.14.14-3build1_all.deb ... Unpacking apcupsd-doc (3.14.14-3build1) ... Selecting previously unselected package apcupsd. Preparing to unpack .../apcupsd_3.14.14-3build1_amd64.deb ... Unpacking apcupsd (3.14.14-3build1) ... Setting up apcupsd (3.14.14-3build1) ... Created symlink /etc/systemd/system/multi-user.target.wants/apcupsd.service -> /lib/systemd/system/apcupsd.service. Setting up apcupsd-doc (3.14.14-3build1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for systemd (245.4-4ubuntu3.6) ... ``` -------------------------------- ### System Information Tools: neofetch and fastfetch Source: https://blog.teraren.com/2024/08/02/%e7%9f%ad%e7%b8%aeurl%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86%e3%81%ae%e3%82%92%e6%ad%a2%e3%82%81%e3%82%8b%ef%bc%81/ Compares and contrasts `neofetch` and `fastfetch`, two command-line tools used to display system information in a visually appealing way. `fastfetch` is presented as a successor or alternative to `neofetch`. ```Shell # To install fastfetch (example for Debian/Ubuntu): sudo apt update sudo apt install fastfetch # To run fastfetch: fastfetch ``` -------------------------------- ### Tapo Camera Ceiling Installation Source: https://context7_llms Details the process and rationale for installing a Tapo camera on a ceiling for room monitoring, replacing a previous crib setup. It covers the physical installation and power setup. ```APIDOC Tapo_Camera_Ceiling_Mount: URL: https://blog.teraren.com/2025/07/16/tapo%e3%82%92%e5%a4%a9%e4%ba%95%e3%81%ab%e8%a8%ad%e7%bd%ae%e3%81%97%e3%81%a6%e9%83%a8%e5%b1%8b%e3%81%94%e3%81%a8%e7%9b%a3%e8%a6%96/ Published: 2025-07-16 Modified: 2025-07-16 Categories: Parenting hacks Tags: tapo, 天井, 子守り Problem: - Increased child's range of motion requires monitoring multiple rooms. - Previous tripod/shelf setups were unstable, prone to angle changes, and obstructive. - Cameras couldn't capture babies close to them. Solution: - Mount camera on the ceiling. - Drill hole in plasterboard. - Tap into existing 100V power line for air conditioner. - Create an outlet in the ceiling space. - Connect Tapo AC adapter to the new outlet. Outcome: - Eliminates blind spots. - Provides a stable and unobtrusive monitoring solution. ``` -------------------------------- ### Get Holiday List for 2023 Source: https://context7_llms Fetches the list of holidays for the year 2023 from the API. This example demonstrates using curl to retrieve the holiday data. ```shell curl -s https://seireki.teraren.com/holiday/2023.json | jq ``` -------------------------------- ### tmux and tmux-powerline Configuration Source: https://blog.teraren.com/2022/06/07/popular-story-article/ Guide on setting up tmux and tmux-powerline for a stylish terminal experience. Focuses on achieving a visually appealing status line, with instructions for installation and configuration. ```APIDOC Article: Title: tmuxとtmux-powerlineの設定でかっこよくする URL: https://blog.teraren.com/2013/02/10/moteru-tmux-powerline/ Author: Unknown Date: 2013.02.10 Summary: "とりあえず、こちらをご覧ください。一番下の行に注目!解像度は2560x1440の全画面で表示これは、tmuxとtmux-powerlineを使って実現しています。以下に、導入方法を書きます。0. (強く推奨)powerline用のフォントを..." Tags: tmux, tmux-powerline, Terminal, Configuration, Productivity ``` -------------------------------- ### Attempt Tableau Server & Tabcmd RPM Upgrade (Error) Source: https://context7_llms This example demonstrates an attempt to install both Tableau Server and tabcmd RPM packages simultaneously using `sudo yum install *rpm`. It captures the output, including the dependency resolution and the resulting file conflict error, specifically noting issues with `tabcmd` files. ```shell % sudo yum install *rpm Failed to set locale, defaulting to C Loaded plugins: etckeeper, extras_suggestions, langpacks, priorities, update-motd Examining tableau-server-2023-1-2. x86_64. rpm: tableau-server-20231. 23. 0511. 1508-20231-23. 0511. 1508. x86_64 Marking tableau-server-2023-1-2. x86_64. rpm to be installed Examining tableau-tabcmd-2023-1-2. noarch. rpm: tableau-tabcmd-20231. 23. 0511. 1508-20231-23. 0511. 1508. noarch Marking tableau-tabcmd-2023-1-2. noarch. rpm to be installed Resolving Dependencies --> Running transaction check ---> Package tableau-server-20231. 23. 0511. 1508. x86_64 0:20231-23. 0511. 1508 will be installed ---> Package tableau-tabcmd-20231. 23. 0511. 1508. noarch 0:20231-23. 0511. 1508 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================================================================================================================ Installing: tableau-server-20231. 23. 0511. 1508 x86_64 20231-23. 0511. 1508 /tableau-server-2023-1-2. x86_64 4. 6 G tableau-tabcmd-20231. 23. 0511. 1508 noarch 20231-23. 0511. 1508 /tableau-tabcmd-2023-1-2. noarch 19 M Transaction Summary ============================================================================================================================================================================================================================================================================================================ Install 2 Packages Total size: 4. 6 G Installed size: 4. 6 G Is this ok : y Downloading packages: Running transaction check Running transaction test Transaction check error: file /opt/tableau/tabcmd/NOTICES. txt from install of tableau-tabcmd-20231. 23. 0511. 1508-20231-23. 0511. 1508. noarch conflicts with file from package tableau-tabcmd-20221. 22. 0823. 1450-20221-22. 0823. 1450. noarch file /opt/tableau/tabcmd/bin/tabcmd from install of tableau-tabcmd-20231. 23. 0511. 1508-20231-23. 0511. 1508. noarch conflicts with file from package tableau-tabcmd-20221. 22. 0823. 1450-20221-22. 0823. 1450. noarch Error Summary ------------- ``` -------------------------------- ### Backup MySQL Instance with mysqlsh Source: https://blog.teraren.com/2023/08/29/ubuntu-mysql-8-1/ This example shows how to initiate a full instance backup using the `util.dumpInstance` command within the mysqlsh client. It highlights the speed advantage over traditional mysqldump. ```bash matsu@dell ~> mysqlsh --user=root -p MySQL Shell 8.1.1 ... (session setup) MySQL localhost:33060+ ssl JS > util.dumpInstance("/home/matsu/20230828") ``` -------------------------------- ### Get Age for a Person Born in 1950 Source: https://context7_llms Calculates the age of a person born in 1950 by querying the API. This example shows how to extract the 'age' field from the JSON response using jq. ```shell curl -s https://seireki.teraren.com/seireki/1950.json | jq '. age' ``` -------------------------------- ### System Information Tools: neofetch and fastfetch Source: https://blog.teraren.com/2022/02/10/google-domains-custom-domain-gmail/ Compares and contrasts `neofetch` and `fastfetch`, two command-line tools used to display system information in a visually appealing way. `fastfetch` is presented as a successor or alternative to `neofetch`. ```Shell # To install fastfetch (example for Debian/Ubuntu): sudo apt update sudo apt install fastfetch # To run fastfetch: fastfetch ``` -------------------------------- ### Jetpack Remote Comment Watcher (Incomplete) Source: https://blog.teraren.com/2025/02/23/xiaomi-14t-pro/ An incomplete JavaScript snippet intended to watch for remote comments, likely related to Jetpack's comment functionality. It starts by getting an iframe element by ID. ```javascript (function () { const iframe = document.getElementById( 'jetpack_remote_comment' ); const watchReply = function() { // Check addComment._Jetpack_moveForm to make su } })(); ``` -------------------------------- ### Initialize Gatsby Project Source: https://blog.teraren.com/2024/01/24/post-15683/ This command initiates the creation of a new Gatsby project. It prompts the user for site name, folder name, language preference (JavaScript/TypeScript), CMS usage, styling system, and additional plugins. The process installs necessary dependencies and sets up the project structure. ```Shell % npm init gatsby Need to install the following packages: [email protected] Ok to proceed? (y) y create-gatsby version 3.11.0 Welcome to Gatsby! This command will generate a new Gatsby site for you in /Users/yuki.matsukura/ghq/github.com/matsubo/www.teraren.com with the setup you select. Let's answer some questions: What would you like to call your site? ✔ · Teraren Corporate Site What would you like to name the folder where your site will be created? ✔ www.teraren.com/ teraren-corporate-site ✔ Will you be using JavaScript or TypeScript? · JavaScript ✔ Will you be using a CMS? · No (or I'll add it later) ✔ Would you like to install a styling system? · Tailwind CSS ✔ Would you like to install additional features with other plugins? · Add the Google gtag script for e.g. Google Analytics · Add responsive images · Add an automatic sitemap · Generate a manifest file · Add Markdown and MDX support Thanks! Here's what we'll now do: 🛠 Create a new Gatsby site in the folder teraren-corporate-site 🎨 Get you set up to use Tailwind CSS for styling your site 🔌 Install gatsby-plugin-google-gtag, gatsby-plugin-image, gatsby-plugin-sitemap, gatsby-plugin-manifest, gatsby-plugin-mdx ✔ Shall we do this? (Y/n) · Yes ✔ Created site from template ✔ Installed Gatsby ✔ Installed plugins ✔ Created site in teraren-corporate-site 🔌 Setting-up plugins... info Adding gatsby-plugin-postcss info Adding gatsby-plugin-google-gtag info Adding gatsby-plugin-image info Adding gatsby-plugin-sitemap info Adding gatsby-plugin-manifest info Adding gatsby-plugin-mdx info Adding gatsby-plugin-sharp info Adding gatsby-transformer-sharp info Adding gatsby-source-filesystem info Adding gatsby-source-filesystem info Installed gatsby-plugin-postcss in gatsby-config success Adding gatsby-plugin-postcss to gatsby-config - 0.215s info Installed gatsby-plugin-google-gtag in gatsby-config success Adding gatsby-plugin-google-gtag to gatsby-config - 0.210s info Installed gatsby-plugin-image in gatsby-config success Adding gatsby-plugin-image to gatsby-config - 0.215s info Installed gatsby-plugin-sitemap in gatsby-config success Adding gatsby-plugin-sitemap to gatsby-config - 0.220s info Installed gatsby-plugin-manifest in gatsby-config success Adding gatsby-plugin-manifest to gatsby-config - 0.256s info Installed gatsby-plugin-mdx in gatsby-config success Adding gatsby-plugin-mdx to gatsby-config - 0.260s info Installed gatsby-plugin-sharp in gatsby-config success Adding gatsby-plugin-sharp to gatsby-config - 0.262s info Installed gatsby-transformer-sharp in gatsby-config success Adding gatsby-transformer-sharp to gatsby-config - 0.266s info Installed gatsby-source-filesystem in gatsby-config success Adding gatsby-source-filesystem (images) to gatsby-config - 0.278s info Installed gatsby-source-filesystem in gatsby-config success Adding gatsby-source-filesystem (pages) to gatsby-config - 0.281s 🎨 Adding necessary styling files... 🎉 Your new Gatsby site Teraren Corporate Site has been successfully created at /Users/yuki.matsukura/ghq/github.com/matsubo/www.teraren.com/teraren-corporate-site. Start by going to the directory with cd teraren-corporate-site Start the local development server with npm run develop See all commands at https://www.gatsbyjs.com/docs/reference/gatsby-cli/ ``` -------------------------------- ### Start Minecraft Bedrock Server Source: https://blog.teraren.com/2023/02/06/post-14986/ Command to launch the Minecraft Bedrock server. It sets the library path and executes the server binary. Press Ctrl+C to stop the server. ```bash LD_LIBRARY_PATH=. ./bedrock_server ``` -------------------------------- ### Rails 7 Project Setup with Docker Source: https://context7_llms Commands to set up a new Ruby on Rails 7 project using Docker, including installing gems and generating the new Rails application. This process leverages Docker Compose for environment management. ```Shell docker compose run --rm app bundle install ``` ```Shell docker compose run --rm app bundle exec rails new . -C sqlite3 ``` -------------------------------- ### Start Gatsby Development Server Source: https://blog.teraren.com/2024/01/24/post-15683/ This command starts the local development server for a Gatsby project. It compiles Gatsby files, loads configuration and plugins, and makes the site accessible at a local URL (typically http://localhost:8000/). It also provides access to GraphiQL for exploring the site's data and schema. ```Shell npm run develop > [email protected] develop > gatsby develop success compile gatsby files - 0.270s success load gatsby config - 0.022s success load plugins - 0.511s success onPreInit - 0.008s success initialize cache - 0.076s success copy gatsby files - 0.413s success Compiling Gatsby Functions - 0.856s success onPreBootstrap - 0.901s success createSchemaCustomization - 0.012s success Checking for changed pages - 0.001s success source and transform nodes - 0.091s success building schema - 0.107s success createPages - 0.006s success createPagesStatefully - 0.073s info Total nodes: 47, SitePage nodes: 4 (use --verbose for breakdown) success Checking for changed pages - 0.000s success write out redirect data - 0.006s success Build manifest and related icons - 0.097s success onPostBootstrap - 0.100s info bootstrap finished - 4.405s success onPreExtractQueries - 0.001s success extract queries from components - 0.806s success write out requires - 0.006s ⠀ You can now view teraren-corporate-site in the browser. ⠀ http://localhost:8000/ ⠀ View GraphiQL, an in-browser IDE, to explore your site's data and schema ⠀ http://localhost:8000/__graphql ⠀ Note that the development build is not optimized. ``` -------------------------------- ### Get 2023 Information (Wareki, Eto, Age) Source: https://context7_llms Retrieves information for the year 2023, including the Japanese era name, zodiac sign, and age calculation. This example demonstrates fetching data from the API using curl and parsing the JSON output with jq. ```shell curl -s https://seireki.teraren.com/seireki/2023.json | jq "{ \"seireki\": \"2023年\", \"wareki\": \"令和5年\", \"eto\": \"卯\", \"age\": 0, \"url\": \"https://seireki.teraren.com/seireki/2023.json\" }" ``` -------------------------------- ### Download and Install MySQL APT Configuration Source: https://blog.teraren.com/2023/08/29/ubuntu-mysql-8-1/ These bash commands demonstrate downloading the MySQL APT configuration package and installing it using dpkg. This step is crucial for selecting the desired MySQL release stream (LTS or Innovation). ```bash % wget https://dev.mysql.com/get/mysql-apt-config_0.8.26-1_all.deb % sudo dpkg -i mysql-apt-config_0.8.26-1_all.deb ```