- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
| function Get-NeedsArgvQuote { | |
| <# | |
| .DESCRIPTION Fix up our argument string for the insane CommandLineToArgvW rules | |
| .LINK https://docs.microsoft.com/en-us/archive/blogs/twistylittlepassagesallalike/everyone-quotes-command-line-arguments-the-wrong-way | |
| #> | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Position=0,Mandatory=1)][AllowEmptyString()][string]$arg | |
| ) | |
| if ([System.String]::IsNullOrEmpty($arg)) { |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
Ubuntu 19.10에서 Visual Studio Code 사용 중 한영 전환키를 누르고 한글을 입력하려 했더니,
한글 입력이 안되고 영어만 계속 입력되는 현상을 발견했다. 그래서 인터넷을 검색해 봤더니
snap 형식의 Visual Studio Code를 설치한 경우에, Ubuntu의 입력기인 IBus와 충돌해서 일어나는
현상이라고 한다. 그런데 .deb 형식의 Visual Studio Code를 설치한 경우에는 그런 문제가
없다는 사실을 알게 되어, 설치해 봤더니 한글 입력이 정상적으로 이루어지는 것을
확인했다. 그래서 같은 문제를 겪는 사람들을 위해 이 해결법을 공유하고자 한다.
먼저 이미 설치되어 있는 snap 형식의 Visual Studio Code를 제거한다.
| Steps for installing the Android Emulator from EC2 console: | |
| ----------------------------------------------------------- | |
| sudo apt install default-jdk | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d android-sdk | |
| sudo mv android-sdk /opt/ | |
| export ANDROID_SDK_ROOT=/opt/android-sdk | |
| echo "export ANDROID_SDK_ROOT=/opt/android-sdk" >> ~/.bashrc | |
| echo "export PATH=$PATH:$ANDROID_SDK_ROOT/tools" >> ~/.bashrc | |
| re-login |
This cheat sheet came into life when I started working on a tutorial of setting up one way tls and two way tls, which can be found here: GitHub - Mutual TLS SSL
Generate a Java keystore and key pair
keytool -genkeypair -keyalg RSA -keysize 2048 -keystore keystore.jks -alias server -validity 3650
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.shIn 2019 I moved various web-apps I have created to a VPS (hosted by OVH).
I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.
Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.
All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.
| package org.example | |
| import com.zaxxer.hikari.HikariConfig | |
| import com.zaxxer.hikari.HikariDataSource | |
| import io.ktor.application.call | |
| import io.ktor.http.HttpStatusCode | |
| import io.ktor.request.receive | |
| import io.ktor.response.respond | |
| import io.ktor.routing.Route | |
| import io.ktor.routing.get |