-
-
Save bolitao/c016846c20c807fe22074dafa3cdbd16 to your computer and use it in GitHub Desktop.
Revisions
-
nakamuraos revised this gist
Mar 30, 2022 . 1 changed file with 9 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ # Author: NakamuraOS # https://github.com/nakamuraos # Latest update: 30/03/2022 # Tested on Navicat 15.x, 16.x on Linux RED="\e[1;31m" @@ -14,7 +14,6 @@ echo -e "| !!! WARNING !!! |" echo -e "=======================================" echo -e "| All data can be destroy. |" echo -e "| Always backup before continue. |" echo -e "=======================================" echo -e "${ENDCOLOR}" @@ -24,8 +23,14 @@ echo if [[ $REPLY =~ ^[Yy]$ ]] then echo "Cleaning..." # Backup cp ~/.config/dconf/user ~/.config/dconf/user.bk cp ~/.config/navicat/Premium/preferences.json ~/.config/navicat/Premium/preferences.json.bk # Clear data in dconf dconf reset -f /com/premiumsoft/navicat-premium/ # Remove data fields in config file sed -i -E 's/,?"([A-Z0-9]+)":\{([^\}]+)},?//g' ~/.config/navicat/Premium/preferences.json # Done echo "Done." else echo "Aborted." -
nakamuraos revised this gist
Mar 21, 2022 . No changes.There are no files selected for viewing
-
nakamuraos revised this gist
Mar 21, 2022 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,13 +9,13 @@ RED="\e[1;31m" ENDCOLOR="\e[0m" echo -e "${RED}" echo -e "=======================================" echo -e "| !!! WARNING !!! |" echo -e "=======================================" echo -e "| All data can be destroy. |" echo -e "| Always backup before continue. |" echo -e "| Note: Virtual Grouping will be lost |" echo -e "=======================================" echo -e "${ENDCOLOR}" echo "Reset trial & clear all data settings." -
nakamuraos revised this gist
Mar 21, 2022 . 1 changed file with 9 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,19 +2,20 @@ # Author: NakamuraOS # https://github.com/nakamuraos # Latest update: 21/03/2022 # Tested on Navicat 15.x, 16.x on Linux RED="\e[1;31m" ENDCOLOR="\e[0m" echo -e "${RED}" echo -e "====================================" echo -e "| !!! WARNING !!! |" echo -e "====================================" echo -e "| All data can be destroy. |" echo -e "| Always backup before continue. |" echo -e "| Note: Virtual Grouping will lost |" echo -e "====================================" echo -e "${ENDCOLOR}" echo "Reset trial & clear all data settings." -
nakamuraos revised this gist
Jan 4, 2022 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -23,11 +23,7 @@ echo if [[ $REPLY =~ ^[Yy]$ ]] then echo "Cleaning..." rm -rf ~/.config/dconf/user rm -rf ~/.config/navicat/Premium echo "Done." else -
nakamuraos revised this gist
Dec 4, 2021 . 1 changed file with 9 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ # Author: NakamuraOS # https://github.com/nakamuraos # Date: 04/12/2021 # Tested on Navicat 15.x on Linux RED="\e[1;31m" @@ -12,18 +12,23 @@ echo -e "${RED}" echo -e "==================================" echo -e "| !!! WARNING !!! |" echo -e "==================================" echo -e "| All data can be destroy. |" echo -e "| Always backup before continue. |" echo -e "==================================" echo -e "${ENDCOLOR}" echo "Reset trial & clear all data settings." read -p "Are you sure? (Y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then echo "Cleaning..." # Comment this lines because this is old method # (All data will be lost) # rm -rf ~/.config/dconf/user # rm -rf ~/.config/navicat # New method: Only data settings will be lost rm -rf ~/.config/navicat/Premium echo "Done." else echo "Aborted." -
nakamuraos created this gist
Nov 22, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ #!/bin/bash # Author: NakamuraOS # https://github.com/nakamuraos # Date: 22/11/2021 # Tested on Navicat 15.x on Linux RED="\e[1;31m" ENDCOLOR="\e[0m" echo -e "${RED}" echo -e "==================================" echo -e "| !!! WARNING !!! |" echo -e "==================================" echo -e "| All data will destroy. |" echo -e "| Always backup before continue. |" echo -e "==================================" echo -e "${ENDCOLOR}" echo "Reset trial & clear all data." read -p "Are you sure? (Y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then echo "Cleaning..." rm -rf ~/.config/dconf/user ~/.config/navicat echo "Done." else echo "Aborted." fi