I need a beer

jueves, 29 de junio de 2017

Create Postgres Role and Privileges

  1. Create role: CREATE USER "newuser" WITH PASSWORD 'thebestpasswordthatyouimagine'
  2. Create database: CREATE DATABASE 'yourdatabase'
  3. Privileges: GRANT ALL PRIVILEGES ON DATABASE 'yourdatabase' TO 'newuser'
  4. Have a cup of coffe ☕️

Configure NGINX block to new Account

  1. We need to create an user in the VPS: $ adduser -m "Account"
  2. Assign a password to the new account: passwd "Account"
  3. 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
  4. Config Nginx creating file in: sites-available. Here an example:
  5. Create virtual link with: ln -s sites-available/"Account" sites-enabled/"Account"
  6. Restart Nginx
  7. Test the URL in a browser
  8. 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

Launch iPhone simulator from command line

xcrun simctl list /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID