Bash Logo

Shell Learning Notes Comment

Shell Comment Start with # # this is a line of comment Simply write more with # start # Author: Aimer Neige # Email: aimer.neige@aimerneige.com # Date: 2022-04-29 Other way: :<<EOF Author: Aimer Neige Email: aimer.neige@aimerneige.com Date: 2022-04-29 EOF :<<' Author: Aimer Neige Email: aimer.neige@aimerneige.com Date: 2022-04-29 ' :<<! Author: Aimer Neige Email: aimer.neige@aimerneige.com Date: 2022-04-29 ! Refer Link https://www.runoob.com/linux/linux-shell-variable.html

May 1, 2022 路 Aimer Neige
Bash Logo

Shell Learning Notes Parameters

Pass Parameters When you are running a shell script and you want to pass some parameters into the script, you can get the parameters by $n. The n represents a number, the 1 is meant for the first parameters you pass to the script, the 2 is the second parameters you pass to the script, and so on. Note that the 0 is the script fine name. Example: #!/usr/bin/bash echo "Parameters Example:" echo "The Script File Name: \"$0\"" echo "The First Parameters: \"$1\"" echo "The Second Parameters: \"$2\"" echo "The Third Parameters: \"$3\"" echo "The Forth Parameters: \"$4\"" Run this script:...

May 1, 2022 路 Aimer Neige
Bash Logo

Shell Learning Notes Variable

Shell Variable Define Variable You are not allowed to add $ when defining a variable, while in php, you need it. For example: your_name="Aimer Neige" Like other programming languages, you need to follow these rules: You can only use letters, numbers, and underscores, and the first character can not be numbers. You are not allowed to add space, use underscores _ replace. You are not allowed to use special characters. You can not use any keywords used by bash....

April 30, 2022 路 Aimer Neige
Spring Swagger

Enable Swagger on Spring Boot Gradle Projects

Adding Swagger to Spring Boot Getting the Swagger Spring dependency Enabling Swagger in your code Configuring Swagger Adding details as annotations to APIs Getting the Swagger Spring dependency Edit build.gradle plugins { id 'org.springframework.boot' version '2.5.2' ... } ... dependencies { implementation "io.springfox:springfox-boot-starter:3.0.0" ... } Enabling Swagger in your code Add @EnableSwagger2 to SpringBootApplication Configuring Swagger Create SwaggerConfig class. package com.aimerneige.example.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox....

December 30, 2021 路 Aimer Neige
WiFi Logo

Auto Start Wifi Hotspot on Gnome

Edit and save file nmcli-hotspot.desktop on path /home/aimerneige/.config/autostart [Desktop Entry] Name=nmcli-hotspot Comment=Open HotSport With nmcli Exec=nmcli connection up Hotspot Terminal=true Type=Application

November 7, 2021 路 Aimer Neige
WiFi Logo

Vala Env Setup

vala env setup When it鈥檚 talking to Linux development, there are many ways to go. But I love elementary and want to build some awesome apps with vala. So this article is about how to set up your vala develop environment on elementary os. In the future, there will more articles about vala and Linux development. System Info When I write this artice (2021-7-31), elementary os 6 is still in develop, so I install it in gnome boxes....

October 23, 2021 路 Aimer Neige
hugo-logo

Hello Hugo

Before Start It鈥檚 been a long time since I wrote a blog post last time. That鈥檚 because I often reinstall my system on computer, and every time I install and configure the blog of hexo on my computer is a troublesome thing. But recently, I discovered hugo, a simple and easy-to-use blog system, which can keep me away from hexo, which is slow and troublesome to configure and install. It has a great experience to use and I happened to change a blog theme, so I decided to use hugo to build my new blog....

August 17, 2021 路 Aimer Neige

Dark Mode on Android

In this example, I am using Material Design. But you can also use the Theme.AppCompat.DayNight. This is a simple way to adapt a dark mode, if you wants more, check for GitHub or Internet. Change the style First you should use the DayNight style by Google. <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> If you want to let things easily, that鈥檚 enough. But you can also provide more adaptation. Adapt colors Make a new folder at project/app/src/main/res/values-night then make a new resource file colors....

September 5, 2020 路 Aimer Neige

MinGW Install For Windows

Click here to download the MinGW setup file. Run the mingw-get-setup.exe. Click Install. Click Continue. Waite for install. After install done, click Continue. Select what you wants to install and right click it, click Mark For Installation. Click Installation on the left top. Click Apply Changes. Click Apply. Just wait for install. (May need proxy) After that, the mingw has been installed successfully. You can uninstall this install program. Set the system env settings and enjoy it!...

August 19, 2020 路 Aimer Neige

Android Develop Data Save

Change Package Name Quickly Sometimes, we may need to change the package name of our Android Project. Maybe the package is not suitable or we get a better package name. But that鈥檚 doesn鈥檛 matter, we just need to change it. So, how we can change a package name? Here are the solution. Open your Android Project at Android Studio. Go to the Androidmanifest.xml. Find your package name. For example com.aimerneige.test.example. Click the part you want to change, like test....

August 18, 2020 路 Aimer Neige