๐๏ธ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.bgizdov.util; | |
| import io.quarkus.runtime.configuration.ConfigUtils; | |
| import java.util.List; | |
| import java.util.Objects; | |
| /** Utility class for getting Quarkus active profiles. */ | |
| public class QuarkusProfileUtil { | |
| public static final String DEV = "dev"; | |
| public static final String PROD = "prod"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Here is my solution which is using unofficial node builds from https://nodejs.org/en/download | |
| 1. Create Dockerfile, with desired alpine, node and npm versions | |
| In the example: | |
| - alpine v3.17.2 | |
| - nodejs v18.16.0 | |
| - npm v9.6.6 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin bash | |
| # DEFINE THE BLOATWARE APPLICATIONS WHICH | |
| # ARE SAFE TO BE REMOVED | |
| declare -a bloatware=( | |
| # Google Bloatware | |
| "com.google.android.apps.docs" # Google Docs | |
| # "com.google.android.apps.maps" # Google Maps | |
| # "com.google.android.apps.photos" # Google Photos | |
| "com.google.android.apps.tachyon" # Google Duo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CODE_BASE=(./project1 | |
| ./project2 | |
| ./lib1 | |
| ./lib2 | |
| ) | |
| EXCLUDE_PATT="gitRepoYouWantToIgnore" #this is regex | |
| today="$(date +%a)" | |
| sinche="1.days" | |
| case "${today}" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add to .bashrc .bash_profile | |
| function perf { | |
| curl -I -s -w "%{time_connect} + %{time_starttransfer} = %{time_total}\n" "$1" | |
| } | |
| curl_time() { | |
| curl -I -s -w "\ | |
| namelookup: %{time_namelookup}s\n\ | |
| connect: %{time_connect}s\n\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias speedtest="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -" | |
| alias ll="exa -bghHliS" | |
| alias screenshot="adb shell screencap -p | sed 's/\r$//' > ~/Pictures/screen-$(date +"%Y%m%d-%H%M").png" | |
| alias changejava="sudo update-alternatives --config java && sudo update-alternatives --config javac" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install python-mutagen | |
| find . -name "*.mp3" -print0 | xargs -0 mid3iconv -e CP1251 -d |