sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2
  
    
      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
    
  
  
    
  | rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
| @echo off | |
| SETLOCAL EnableDelayedExpansion | |
| if [%1] == [] ( | |
| echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
| ) else ( | |
| set wanted_version=%1 | 
  
    
      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
    
  
  
    
  | import React, { ReactChild } from 'react'; | |
| import { Database } from '@nozbe/watermelondb'; | |
| import { getWatermelon } from 'app/utils/DBWatermelonOld/DBWatermelonOld'; | |
| import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider'; | |
| const WatermelonProvider = (props) => { | |
| const watermelonRef = React.useRef(); | |
| const [database, setDatabase] = React.useState(); | |
| if (!watermelonRef.current) { | 
  
    
      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/env bash | |
| # install docker | |
| # https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| # install docker-compose | |
| # https://docs.docker.com/compose/install/ | |
| # install letsencrypt | |
| # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 | 
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
  
    
      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
    
  
  
    
  | *.swp | |
| *.*~ | |
| project.lock.json | |
| .DS_Store | |
| *.pyc | |
| # Visual Studio Code | |
| .vscode | |
| # User-specific files | 
  
    
      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
    
  
  
    
  | import {HttpClient} from '@angular/common/http'; | |
| import {TranslateLoader} from '@ngx-translate/core'; | |
| import {Observable} from 'rxjs/Observable'; | |
| import 'rxjs/add/observable/forkJoin'; | |
| export function translateLoader(http: HttpClient) { | |
| return new MultiTranslateHttpLoader(http, [ | |
| {prefix: './assets/i18n/', suffix: '.json'}, | |
| {prefix: './assets/i18n/countries-', suffix: '.json'} | 
  
    
      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
    
  
  
    
  | General | |
| 1. Site uses a cache buster for expiring .js, .css, and images | |
| 2. JavaScript and CSS is minified and concatenated into logical groupings | |
| 3. Images have been optimized by ImageOptim (http://imageoptim.com/) | |
| Markup | |
| 1. Code does not contain inline JavaScript event listeners |