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
:root { | |
--active-text-color: rgb(13,48,195); | |
--active-icon-text-color: #fff; | |
--active-bg-color: rgb(13,48,195); | |
--active-border-color: rgb(13,48,195); | |
--active-line-color: #0d30c3; | |
--active-sonar-bg-color: rgb(13,48,195); | |
--active-sonar-border-color: darkblue; |
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
#This file is to configure nginx site | |
#copy this file to /etc/nginx/site-available/ | |
#and create a symbolic link to /etc/nginx/site-enabled/ | |
#Execute the below command to verufy the conf file | |
# > nginx -t | |
#Remember to reload nginx using the below command | |
#> sudo nginx -s reload | |
#Restar the Nginx service | |
#> sudo sudo systemctl restart nginx |
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
{ | |
"label": "Upload - Entire Folder", | |
"type": "shell", | |
"command": "scp", | |
"args": [ | |
"-r", | |
"-i", | |
"\"SRV.pem\"", | |
"${workspaceFolder}\\", | |
"linux_user@{your AWS address goes here}:/home/ubuntu/{server side folder path}/" |
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
[Unit] | |
Description=>>>>>> DotNetCore application service<<<<<< | |
After=network.target | |
[Service] | |
User=mralex6204 | |
Group=www-data | |
#Application Working directory | |
WorkingDirectory=/home/ubuntu/ASPNetCoreApp |
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 'package:cloud_firestore/cloud_firestore.dart'; | |
class FirestoreProvider { | |
static final FirebaseFirestore _firestore = FirebaseFirestore.instance; | |
static final FirestoreProvider _db = FirestoreProvider._getInstance(); | |
static final COMMENTS_COLLECTION= "AboutComments"; | |
FirestoreProvider._getInstance(){ | |
//Realtime events listeners |
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
class EventsProvider { | |
static final EventsProvider _events = EventsProvider._getInstance(); //==>Singleton pattern | |
final _onCommentsChangeNotifyStream = StreamController<List<CommentModel>>.broadcast(); | |
final _onTotalCommentsChangeNotifyStream = StreamController<int>.broadcast(); | |
EventsProvider._getInstance(){ | |
this.onCommentsChangeNotifyStream.listen((lstComments) { |
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
[Unit] | |
Description=>>>>>> Python REST <<<<<< | |
After=network.target | |
[Service] | |
User=ubuntu | |
Group=www-data | |
WorkingDirectory=/home/ubuntu/PythonREST | |
#start gunicorn daemon |
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
/* | |
* | |
* This Dart class help to handle a SQLite table easily | |
* To create & initilize table data in the DB creation execute the below code | |
* await db.execute(TblAreas.createQuery()); | |
* await TblAreas.initilizeData(db); | |
* | |
* To run a table backup when the database upgrade to a new version execute the below code | |
* final area_bkp = await TblAreas.getBackUp(db); | |
* |
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
/* | |
Add this Gist in your current class if you want or do it static for a global access | |
*/ | |
public android.view.View $(int id){ | |
return findViewById(id); | |
} |