- Create role: CREATE USER "newuser" WITH PASSWORD 'thebestpasswordthatyouimagine'
- Create database: CREATE DATABASE 'yourdatabase'
- Privileges: GRANT ALL PRIVILEGES ON DATABASE 'yourdatabase' TO 'newuser'
- Have a cup of coffe ☕️
I don't have money to buy a domain, but I need to save all my work memories. If you are a software developer that use Mongo, NodeJS, Ionic, Angular, PHP or any Linux server distribution; maybe this blog going to help you.
I need a beer
jueves, 29 de junio de 2017
Create Postgres Role and Privileges
Configure NGINX block to new Account
- We need to create an user in the VPS: $ adduser -m "Account"
- Assign a password to the new account: passwd "Account"
-
You must make sure that your home directory permissions are set properly so that Apache can get there. Your home directory and ~/public_html must be executable for others ("rest of the world"):
$ chmod o+x ~
$ chmod o+x ~/public_html
$ chmod -R o+r ~/public_html
- Config Nginx creating file in: sites-available. Here an example:
- Create virtual link with: ln -s sites-available/"Account" sites-enabled/"Account"
- Restart Nginx
- Test the URL in a browser
- Have a cup of coffe
Publish Android release with Terminal
ionic build android --release
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
zipalign -v -p 4 my-app-unsigned.apk my-app-unsigned-aligned.apk
apksigner sign --ks my-release-key.jks --out my-app-release.apk my-app-unsigned-aligned.apk
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
zipalign -v -p 4 my-app-unsigned.apk my-app-unsigned-aligned.apk
apksigner sign --ks my-release-key.jks --out my-app-release.apk my-app-unsigned-aligned.apk
Suscribirse a:
Comentarios (Atom)
Launch iPhone simulator from command line
xcrun simctl list /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID
-
cd /opt/Rocket.Chat/programs/server/npm/node_modules npm rebuild sharp
-
Nginx: 413 – Request Entity Too Large Error and Solution $ sudo nano /etc/nginx/nginx.conf client_max_body_size 2M;