Skip to content

Instantly share code, notes, and snippets.

View morariu's full-sized avatar
🌴
On vacation

Morariu morariu

🌴
On vacation
View GitHub Profile
@morariu
morariu / docker-compose-stack-secrets.yml
Created November 25, 2020 17:25
Docker Compose for Stack with Secrets
version: '3.1'
services:
drupal:
image: drupal:8.2
ports:
- 80:80
volumes:
- data:/var/lib/postgresql/data
- modules:/var/www/html/modules
@morariu
morariu / aws-data-ec2-docker-ubuntu16.sh
Created November 21, 2020 17:44
aws-data-ec2-docker-ubuntu16
#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
@morariu
morariu / wordpress-docker-compose.yml
Created November 20, 2020 17:44
Docker Compose Wordpress MYSQL
version: '2'
services:
wordpress:
image: wordpress
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: mysql
Ionic Native plugin: http://ionicframework.com/docs/native/firebase/
base-page.ts
-------------
import { Firebase } from "@ionic-native/firebase";
export abstract class BasePage {
@morariu
morariu / FirebaseImageLoader.java
Created December 20, 2016 17:47 — forked from samtstern/FirebaseImageLoader.java
StorageReference + Glide
package com.firebase.ui.storage.images;
import android.util.Log;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.data.DataFetcher;
import com.bumptech.glide.load.model.stream.StreamModelLoader;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.storage.StorageReference;
import com.google.firebase.storage.StreamDownloadTask;
(function () {
var dateTimeController = function ($scope, $rootScope) {
$scope.vm = {
message: "Bootstrap DateTimePicker Directive",
dateTime: {}
};
$scope.$watch('change', function(){
console.log($scope.vm.dateTime);
});