Copy from: https://tecadmin.net/how-to-install-nvm-on-ubuntu-22-04/ Installing NVM on Ubuntu sudo apt install curl curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
Author Archives: sochinda
Install PostgreSQL in Ubuntu
Copy from https://linuxhint.com/install-and-setup-postgresql-database-ubuntu-22-04/ https://hassanannajjar.medium.com/how-to-fix-error-password-authentication-failed-for-the-user-in-postgresql-896e1fd880dc if maybe someone like me overlook the filename that must be edit in my case the conf file located at /etc/postgresql/14/main’ if you type cd /etc/postgresql/14/main so just sudo nano add these 2 filenames listen_addresses = ‘*’ uncomment this line and change localhost to * host all all 0.0.0.0/0 trust change the 127.0.0.1/32Continue reading “Install PostgreSQL in Ubuntu”
How To Install Node.js on Ubuntu 20.04
Copy from: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04 Option 3 — Installing Node Using the Node Version Manager Another way of installing Node.js that is particularly flexible is to use nvm, the Node Version Manager. This piece of software allows you to install and maintain many different independent versions of Node.js, and their associated Node packages, at the same time.Continue reading “How To Install Node.js on Ubuntu 20.04”
Downgrade PHP 8.0 to 7.4 on Ubuntu
Copy from https://hostappraiser.com/downgrade-php-8-0-to-7-4-on-ubuntu/ Use update-alternatives –config php The first way to accomplish this is by issuing the following command This will give you a listing as shown below As you can see I entered the number 1 to select version 7.4. Then did a quick check to validate the change. Let’s restart apache2 s ourContinue reading “Downgrade PHP 8.0 to 7.4 on Ubuntu”
How To Convert Crosstab Table (2-Dimensional Table) To List In Excel?
Copy from : https://www.extendoffice.com/documents/excel/705-excel-convert-table-to-list.html Convert Cross Table To List In Excel With VBA The following VBA macro can help you quickly convert all cross tables in active worksheet to flat lists. Step 1: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window. Step 2: Click Insert > Module, and paste the followingContinue reading “How To Convert Crosstab Table (2-Dimensional Table) To List In Excel?”
Big Sur on M1 Mac bug : You do not have permission to open the application [app name].
“codesign –force –deep –sign – /Applications/AppName.app” Copy from: https://linustechtips.com/topic/1322233-big-sur-on-m1-mac-bug-you-do-not-have-permission-to-open-the-application-app-name/
Deploy a VueJS web app with nginx on Ubuntu
By: Chi Thuc Nguye on https://thucnc.medium.com/deploy-a-vuejs-web-app-with-nginx-on-ubuntu-18-04-f93860219030 Installing Node JS We use nvm (Node Version Manager) for easy Node JS version switching later if needed. Install or update nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash Restart your terminal or source ~/.bashrc for required environment variables, then check installed nvm version: $ nvm –version0.34.0 Install Node JS Install Node JS with nvm is asContinue reading “Deploy a VueJS web app with nginx on Ubuntu”
Backup MySQL in Ubuntu Comment Line and Copy to Local Mac OSX
In Ubuntu Server $ mysqldump -u root -p [database] > ~/[file name].sql Ex: mysqldump -u root -p posresturant > ~/posresturant.sql In Mac Local $ scp root@[ip]:/path/[file name].sql /local path Ex: scp root@139.59.82.182:/root/posresturant.sql /Users/chinda
Making Laravel Passport work with Lumen
Copy from https://github.com/dusterio/lumen-passport and https://github.com/dusterio/lumen-passport/issues/136 You need to create a config file for auth services as config/auth.php: <?php return [ ‘defaults’ => [ ‘guard’ => ‘api’, ‘passwords’ => ‘users’, ], ‘guards’ => [ ‘api’ => [ ‘driver’ => ‘passport’, ‘provider’ => ‘users’, ], ], ‘providers’ => [ ‘users’ => [ ‘driver’ => ‘eloquent’, ‘model’ => \App\User::classContinue reading “Making Laravel Passport work with Lumen”