Getting Started Stable Diffusion with LoRA models
1. About Stable Diffusion
This is written on March 2021.
I set up Windows for the 1st time since several years ago and there was a lot of difference between recent version and the version I used. This page collects information for something it would have been helpful for setting up windows for me.
Windows Insider Program provides users to access applications from their dev, beta, or preview releases. This is helpful to use some applications before it becomes stable releases, like WSL, and many documents on the Internet is also written for these pre-stable versions.
Once you joined, you wanna make sure turnning on automatic updates for OS version. See this page to turn it on.
WSL is to run Linux on a windows as a native Windows application, unlike running a virtual machine or dual boot. It’s really helpful for developers to develop their applications on Windows like running apt or git. You can find some Linux distributions on Microsoft Store.
As a default, copy and paste isn’t enabled, but you can easily do it on Properties > Options > Edit Options > User Ctrl+Shirt+C/V as Copy/Paste. See this article for more details.
The default font might not support showing your languages. In that case, updating a font might solve your issue. You can update it by Properties > Font > Font.
Device Manager > Network adapters > Hyper-V Virtual Ethernet Adapter > Properties > Advanced
. See this comment on GitHub issue for more details.winget is a CLI to install and manage applications, just like HomeBrew on Mac, apt or yum on Linux. You need to install App Installer to use this tool, and also need to join Windows Insider Program to install it.
You can enable a night light under Settings > System > Display to reduce blue light and also can set a schedule.
You can enable Dark mode under Settings > Personalization > Colors. See this article for more details.
Unfortunately, there is no built-in feature to switch a light and dark mode automatically. In order to enable Dark mode only during sunset, you need to set up something. The way I did was using a Task Scheduler to enable Dark mode automatically at night and disable it on the morning, by following this article.
You can use Google Japanese Input to use Japanese in your computer.
In order to change the shortcut key to Ctrl+space
to switch an input method, go to Propertites
of Google Japanese Input Settings, click Customize
of Keymap style under General tab, and update Key column to Ctrl Space
on each command of Activate/Deactivate IMEI
of every mode.
See this post, written in Japanese, for more details.
There is a disadvantage for this configuration, like Ctrl-k works twice on Emacs on WSL unexpectedly. So I may disable this in the future.
First of all, in order to customize short cut keys on Windows, AutoHotKey might be useful. Then you might wanna use a few shortcut keys of Emacs on most of applications such as moving cursors by Ctrl-f, but you do not need full Emacs customization like Ctrl-x and doing something else, like Mac. In this case, gtk-emacs-theme-like, tiny AutoHotKey configuration, can be used to do it.
Also, you can also set this configuration on every boot.
At first, you have to run shell:startup
after you type Win+R
and you can see a folder on your explorer.
Then right click and select “Paste shortcut” in the folder.
Now the script run every time you start your computer.
See this FAQ for more details.
1. About Stable Diffusion
Basic commands
Template package
This article was written by just following Kelsey Hightower’s Kubernetes Hardway document to understand Kubernetes internal architecture.
There are a few documents to manage billing data in BigQuery Attribution of committed use discount fees and credits How to export to BigQuery Structur...
Operations
Architecture
Following videos are helpful to understand the overview of Elasticsearch more.
In this post, some variables defined in Grafana are used for Prometheus metrics, including $__rate_interval: This article describes the benefit of this va...
Follow this document mainly.
There are an awesome article about the options to use the Google Secret Manager and their pros and cons. In this article, use Secrets Store CSI Driver by fol...
To figure out which kubernetes objects are how much resource, a vertical pod autoscaler might be useful. It has a feature to either automatically update valu...
This document is written by following this document.
Basically, follow this document
There is a good video to describe a algorithms of TiDB:
TiDB data is split into multiple nodes and they’re called the name as a region.
Install go install cuelang.org/go/cmd/cue@latest
This document just follows a quick tutorial for kubebuilder and learn its behavior.
There are multiple documents about innodb locks on MySQL 5.7: InnoDB locking Locks Set by Different SQL Statements in InnoDB Using InnoDB Transaction ...
I used to use Windows 11, but for some reasons, the OS stopped working and I needed to clean-install it from Windows 10 from windows recovery environment.
See another post also to set up a TiDB on minikube.
Overview
Follow an official article for this document when the version of Kubernetes was 1.26 and set up VMs on GCP.
SSH configuration
SSH configuration
The official document: Docker image and initial configuration
There are fewer lock contentions to worry about, replication is a lot happier, production impact of outages become smaller, backups and restores run faster, ...
Getting Started Use minikube by following this document
In this article, explain how to backup MySQL database using Percona Xtrabackup. There are two binaries, innobackupex and xtrabackup. innobackupex is a wrappe...
Set up TypeScript Next.js with Material UI
Basic configuration
Orchestrator is a tool for MySQL HA and replication management.
Consul is developed by Hashicorp to provide a few features like a service discovery.
This configuration is for the version 5.7 and it’s minimum configuration in the official document.
gh-ost
I set up Ubuntu for the 1st time since several years ago.
Apache Cassandra
Getting started
jq is used to parse JSON result, format and output on the cli.
MySQL connections
This is written on March 2021.
I mostly followed this article to update a WSL version, except that I didn’t enable Hyper-V until then and got an error Please enable the Virtual Machine Pla...
There are many web sites to compare static site generator, but they miss some explanations that require to me. For some people, these features are important ...
PHPBench framework
Command list
The deployment is many use cases and in this page, they’re not described. For the details for those use cases or the concept of deployment, see official page.
Configurations
This document is written for MySQL 5.7, so these contents may be not correct for other versions.
This document is written for MySQL 5.7, so these contents may be not correct for other versions. In this page, performance_schema is mainly discussed.
Configurations
There are some cases that we wanna fetch all records that are matching with a certain condition from an other gRPC server. In these cases, there are at least...
Written in March, 2020.
Functions
The configuration to enable comments is described in the official page.
Getting Started See Official tutorial for detail steps.
Configuration The detail for gitconfig is written in official page.
Written in March 2020.
This page explains how to enable searching non-posts pages for Minimal mistakes by Lunr.js for someone who does not know jekyll at all. Lunr.js is the defaul...
This document is described based on MySQL 5.6.
Performance
MySQL Tuner tool This is a tool to review a configuration for MySQL server.
Collect recent error logs If the logs are outputted by zap, error messages are aggregated by checking level = error. This log does not work very well if the ...
The Cloud endpoint is actually the NGINX proxy which offers the following features on GCP. Authentication and validation Logging and monitoring in GCP
http package in golang supports HTTP/2 protocols. It’s automatically configured.
Basic concepts There are some basic components for terraform.
Troubleshootings
gogo/protobuf is the library to store some extensions from golang/protobuf in this repository. There are some useful packages that golang/protobuf does not p...
Target upstream services Cloud CDN can have only GCP load balancer as the upstream services. And GCP load balancer can configure one of followings for backen...
Some JavaScript library depends on Google Closure. If you need to understand the behavior of such a library, you have to know closure. The official document ...