Skip to content

Instantly share code, notes, and snippets.

View mostafaac30's full-sized avatar
🏠
Working from home

Mostafa Mahmoud mostafaac30

🏠
Working from home
View GitHub Profile
{
"name":"egyleader",
"settings":"{\"settings\":\"{\\n \\\"editor.accessibilitySupport\\\": \\\"off\\\",\\n \\\"editor.cursorStyle\\\": \\\"line\\\",\\n \\\"editor.cursorWidth\\\": 3,\\n \\\"editor.lineHeight\\\": 30,\\n \\\"editor.cursorSmoothCaretAnimation\\\": \\\"on\\\",\\n \\\"editor.find.cursorMoveOnType\\\": true,\\n \\\"editor.cursorBlinking\\\": \\\"smooth\\\",\\n \\\"editor.formatOnPaste\\\": true,\\n \\\"editor.formatOnType\\\": true,\\n \\\"editor.fontFamily\\\": \\\"Fira Code\\\",\\n \\\"editor.fontLigatures\\\": true,\\n \\\"editor.bracketPairColorization.enabled\\\": true,\\n \\\"editor.guides.bracketPairs\\\": \\\"active\\\",\\n \\\"editor.renderControlCharacters\\\": false,\\n \\\"breadcrumbs.enabled\\\": true,\\n \\\"git.enableSmartCommit\\\": true,\\n \\\"editor.wordWrap\\\": \\\"on\\\",\\n \\\"editor.autoSurround\\\": \\\"languageDefined\\\",\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"[Material Theme Ocean]\\\": {\\n \\\"statusBar.debuggingBackgroun
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active May 20, 2024 10:49
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

@slightfoot
slightfoot / page_turn.dart
Created September 9, 2019 21:28
Page Turn Effect - By Simon Lightfoot. Replicating this behaviour. https://www.youtube.com/watch?v=JqvtZwIJMLo
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@monmonja
monmonja / generate-ios.sh
Created July 16, 2019 13:16
generate ios from command line
# download this file to your project folder and excute
# chmod +x generate-ios.sh
# then run using
# ./generate-ios.sh
# flutter build defaults to --release
flutter build ios
# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload