Skip to content

Instantly share code, notes, and snippets.

View bouzidseyf's full-sized avatar
:octocat:
Working from home

Bouzid Seyfeddine bouzidseyf

:octocat:
Working from home
View GitHub Profile
@bouzidseyf
bouzidseyf / alert_dialog_example.dart
Created March 16, 2020 10:53 — forked from NilsBacke/alert_dialog_example.dart
An example of an alert dialog in flutter.
// user defined function
void _showDialog() {
// flutter defined function
showDialog(
context: context,
builder: (BuildContext context) {
// return object of type Dialog
return AlertDialog(
title: new Text("Alert Dialog title"),
content: new Text("Alert Dialog body"),
package com.mindorks.firebaseloginsignup
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import com.google.firebase.database.DatabaseReference
import com.google.firebase.database.FirebaseDatabase
{
"spreadsheetId": "1Qyn6530gveP7wnLHswBH0a_6ndTbWE65hvMWY17313Y",
"valueRanges": [
{
"range": "export!A1:W998",
"majorDimension": "ROWS",
"values": [
[
"id",
"move",
@bouzidseyf
bouzidseyf / node_nginx_ssl.md
Created October 27, 2019 09:29 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@bouzidseyf
bouzidseyf / docker_wordpress.md
Created October 27, 2019 09:25 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes