Alliot’s blog

Elegantly handle Git multi-account and proxy issues

Original link: https://www.iots.vip/post/elegant-solution-git-multiple-accounts-proxy-issues.html At work, it is often easy to encounter scenarios where one computer uses multiple Git accounts. For example, the account company account is for work, and the account personal is for personal use. Since Git itself does not have a multi-account mechanism, we cannot distinguish which warehouse uses which account under the […]

Elegantly handle Git multi-account and proxy issues Read More »

Building Jenkins Continuous Integration System in AWS ECS Based on Terraform

Original link: https://www.iots.vip/post/terraform-aws-ecs-jenkins.html Our old Jenkins cluster was running on AWS EC2. Recently, due to a large number of new jobs and a large number of parallel construction tasks, the cluster resources were tight, and more slaves had to be added to deal with it. In order to reduce costs while achieving better resource elasticity,

Building Jenkins Continuous Integration System in AWS ECS Based on Terraform Read More »

filezilla-server create users in batches

Original link: https://www.iots.vip/post/batch-create-filezilla-server-ftp-user.html There is a strange requirement. It is necessary to create a large number of ftp users for FileZilla-server, configure random passwords for them, specify a separate home directory and user group, and so on. This article is reprinted from: https://www.iots.vip/post/batch-create-filezilla-server-ftp-user.html This site is for inclusion only, and the copyright belongs to the

filezilla-server create users in batches Read More »

iterm2 automatically enters the TOTP verification code of the bastion machine

Original link: https://www.iots.vip/post/iterm2-jumpserver-totp-autocomplete.html The bastion machine is forced to enable MFA two-factor authentication, and every time you need to open the APP to enter the verification code, which is very inconvenient for people who log in frequently, so use expect and oath-toolkit to complete the automatic login. (Friendly reminder: The bastion machine here is only

iterm2 automatically enters the TOTP verification code of the bastion machine Read More »

logrotate service error: read-only filesystem

Original link: https://www.iots.vip/post/logrotate-service-read-only-filesystem.html A server is configured with logrotate to cut tomcat logs. It is normal to execute logrotate /etc/logrotate.conf manually, but the status of logrotate.service triggered by systemd timer is failure, and you can see the error by manually executing systemctl status logrotate.service Message: logrotate[2870734]: error: error opening /usr/local/tomcat/logs/catalina.out: Read-only file system This article

logrotate service error: read-only filesystem Read More »

hexo uses the Artalk commenting system

Original link: https://www.iots.vip/post/hexo-artalk-comment.html When I visited GitHub a few days ago, I found a commenting system Artalk that meets the requirements of obsessive-compulsive disorder. It has complete functions and supports self-hosting in the background. It coincides with the change of LeanCloud policy. I am going to quit it and switch to Artalk, after all, the

hexo uses the Artalk commenting system Read More »

Using a proxy for ssh connections based on netcat

Original link: https://www.iots.vip/post/ssh-over-proxy-by-nc.html Sometimes, we need to forward our ssh connection through a proxy, For example, you want to connect your cloud server through socks5 proxy. When you try to specify a proxy by executing export all_proxy=socks5://127.0.0.1:123 command through terminal, you will find that it does not take effect for ssh connection. Fortunately, netcat can

Using a proxy for ssh connections based on netcat Read More »

Automate your Terraform Pull Requests with Atlantis

Original link: https://www.iots.vip/post/atlantis-terraform-pull-request-automation.html Atlantis is a Terraform Pull Request process automation tool. This article will walk you through building Atlantis and experimenting with its collaboration mode. This article is reprinted from: https://www.iots.vip/post/atlantis-terraform-pull-request-automation.html This site is for inclusion only, and the copyright belongs to the original author.

Automate your Terraform Pull Requests with Atlantis Read More »

asdf manages multiple versions of Terraform

Original link: https://www.iots.vip/post/asdf-multi-version-terraform.html asdf-vm is a CLI tool for managing multi-version operating environments, similar to multi- nodejs version management tools n . Compared with other types of tools, asdf-vm supports many languages ​​and development tools in the form of plug-ins, supports global configuration, and at the same time It also supports managing tool versions by

asdf manages multiple versions of Terraform Read More »

Export existing resources on AWS using Terraformer

Original link: https://www.iots.vip/post/terraformer-import-aws-resource.html As we all know, Terraform can only orchestrate resources created through it, so how to manage resources that are not orchestrated by Terraform on the live network in batches? Tools like Terraformer are here to do just that. Terraformer is a command-line tool for exporting existing infrastructure to generate Terraform files (.tf

Export existing resources on AWS using Terraformer Read More »

A First Look at Terraform: Creating an s3 Bucket

Original link: https://www.iots.vip/post/terraform-create-aws-s3-bucket.html Recently, I started to do IaC (Infrastructure as Code) related work. During this period, I will use Terraform a lot, so there will be some notes related to it. This article is a small test using Terraform to create an AWS S3 bucket to experience Terraform. This article is reprinted from: https://www.iots.vip/post/terraform-create-aws-s3-bucket.html

A First Look at Terraform: Creating an s3 Bucket Read More »