Introduction #00 | Advanced Laravel Topics
Follow me on GitHub. The codes of this video here:
https://github.com/boolfalse/laravel-multiauth
Follow me on Medium. Appropriate articles here:
https://medium.com/@boolfalse
Playlist:
https://www.youtube.com/playlist?list=PL8gDJhl8MloV0_q1nQ0LViK-u3jiVQBZL
...
https://www.youtube.com/watch?v=jDokoMtXJeI
DETAILED, STEP BY STEP EXPLANATION
AutoDeploy from Git to Server via FTP using Bitbucket Pipelines.
***
In this video I've connected my test Bitbucket Repository with my Live Remote Server via FTP connection using Bitbucket Pipelines.
So I've built auto deployment system, that will synchronize my remote server with connected Bitbucket Repository via FTP credentials using PHP language for each commit.
I've recorded this video without any ready stuff, so You can follow my steps. I've tried to explain all things step by step with teporary description-shortcuts.
------------------------------------------------------
Bellow is short described steps that you can do for successfully building auto deploying system.
1. Go to Pipelines page in your Bitbucket Repository.
2. Select usable language (auto generated file related with this selecttion).
3. Type this in auto-generated (bitbucket-pipelines.yml) file and commit it:
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# ------
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.1.1
# In script commands below we will do following stuff:
# installing YAML file configuration
# installing composer and setting up environment variable
# installing Git FTP service without "y/n" answer requirements
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- apt-get -qq install git-ftp
4. Go to Settings - Environment Variables (for current Repo) and create these 3 variables:
FTP_USERNAME
FTP_PASSWORD (it will be useful to hide this value with checking "Secure" mode)
FTP_HOST_PATH
and fill values as you have for FTP connection with you remote server.
5. Add this line in your created "bitbucket-pipelines.yml" file and commit it!
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_HOST_PATH
6. Go to Sources Page in current Repo from there edit .yml file. Rewrite the word "init" with "push" in last added script command and commit it again:
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_HOST_PATH
7. Delete the unnecessary already uploaded "bitbucket-pipelines.yml" file from your Remote Server (via cPanel, FTP or something else)
8. Go to Sources Page in current Repo and there just create the ignore-file with name ".git-ftp-ignore", write there the name of autogenerated pipeline file, and commit it:
bitbucket-pipelines.yml
9. Pull the last changes from your Repo to your local.
10. That's it all. Now you can change something in your project and commit+push that. After successfully pushing It will automatically deploy your changes from Bitbucket Repo to your Remote server that you have connected via FTP credentials.
------------------------------------------------------
Cover tracks:
Ոստան Հայոց - Քաշվանք / Vostan Hayots - Qashvanq
Տորք Անգեղ - Առաքել Մուշեղ / Dorck Angegh - Araqel Mushegh
Ձայն մը հնչեց / Dzayn m@ h@nchec
Կավիճ - Հոգուդ Անասունը / Kavitch - Hogud Anasune
...
https://www.youtube.com/watch?v=3_BMGAqQ9Bs
Playlist:
https://www.youtube.com/playlist?list=PL8gDJhl8MloU0mHob9-LYpJLGD7C20APn
Codes:
https://github.com/boolfalse/php-oop
Trait
using traits
5:30
trait-ում կարելի է ունենալ նաև առանց մարմնի abstract մեթեդներ, որոնց վարքագիծը նույնն է ինչ որ արդեն մեր արդեն իմացած abstract մեթոդների մոտ է:
6:11
"interface" բառի փոխարեն պետք է ասվեր "trait" (ներողություն: https://youtu.be/IzYyxgzDe_o?list=PL8gDJhl8MloU0mHob9-LYpJLGD7C20APn&t=172 )
8:52
Անկախ trait-ի մարմնում գտնվող property-ների և method-ների հասանելիության աստիճանների՝ դրանք հասանելի են use անող կլասսում: Սա կարելի էր հասկանալ նաև տրամաբանական մոտեցմամբ իմաստային տեսանկյունից (հակասող ենթադրությամբ):
...
https://www.youtube.com/watch?v=fxfZMSq7qNM
Step by step and detailed explanation.
Fake Users Generation #04 | Image Manipulations | Advanced Laravel Topics
In this video I've explained how to generate Laravel fake users with their names, emails, addresses, birth dates, and images.
Original and manipulated Images I've stored in different places (watermarked, resized, and with 3 different sizes).
Images are generated and stored in our server on the fly.
Follow me on GitHub. The codes of this video here:
https://github.com/boolfalse/laravel-multiauth/tree/seeding
Follow me on Medium. Appropriate article here:
https://medium.com/@boolfalse/laravel-fake-users-generation-86a63a34a54a
Public resources staff (css, js, AdminLTE 2, etc):
https://drive.google.com/drive/folders/139k7jpGg3dVU0wggtKBGPB3b4uGm7XsV
Playlist:
https://www.youtube.com/playlist?list=PL8gDJhl8MloV0_q1nQ0LViK-u3jiVQBZL
------------------------
Packages and Libraries used in this video:
http://image.intervention.io/
https://github.com/fzaninotto/Faker
...
https://www.youtube.com/watch?v=t-AlokNcBUU
Playlist:
https://www.youtube.com/playlist?list=PL8gDJhl8MloU0mHob9-LYpJLGD7C20APn
Codes:
https://github.com/boolfalse/php-oop
Additional info about previous lessons and so on.
Useful lesson
1:09
Սրա մասին գրված է նաև 2-րդ դասի description-ում՝
https://youtu.be/RhLZhTstVqQ?list=PL8gDJhl8MloU0mHob9-LYpJLGD7C20APn&t=750
...
https://www.youtube.com/watch?v=IzYyxgzDe_o
Deep dive into Tor Browser, how it works.
About list of 3 Random Nodes.
Կարելի էր նաև անել որոշ լրացումներ կապված Tor-ի օգտագործման հետ.
Tor browser-ի 3 հանգույցների ցուցակը (node-երի list-ը) ընտրվում է պատահական օրինաչափությամբ (կամ միգուցե ինչ-որ անհայտ ալգորիթմով, որով կարող է աշխատել Tor-ը, սակայն դրա մասին ինֆո չկա) այնպիսի սերվերներից, որոնցում տվյալ պահին միացված են Tor browser-ները:
Որոշ դեպքերում սա կարող է լինել նաև վտանգավոր, քանի որ DarkWeb-ից օգտվող հանցագործ տարրերի կատարած հանցավոր գործողությունների համար որպես վերջնական հանգույց (կամ միգուցե այլ հանգույց) կարող է հանդիսանլ հենց ձեր համակարգիչը, որում որ տվյալ պահին ուղղակի առանց որևէ վատ մտադրության միացրած է եղել Tor-ը: Եվ դե ֆակտո դուք կդառնաք հանցանք գործած առաջին կասկածյալը, ում համակարգչից գրանցվել է հանցավոր գործողությունը:
Այնպես որ խորհուրդ է տրվում անհրաժեշտ օգտագործումից հետո անջատել Tor browser-ը:
Այս թեմայի վերաբերյալ շատ ընդլայնվելով ակամա խոսք է բացվում DarkWeb-ի օգտագործման մասին, այդ պատճառով շատ չեմ պատմի այս մասին, որպեսզի թեմայից շատ չշեղվեմ:
Official website (for downloading):
https://www.torproject.org/download/download
Wiki link:
https://en.wikipedia.org/wiki/Tor_(anonymity_network)
How HTTPS and Tor work together to Protect your Anonymity and Privacy:
https://www.eff.org/pages/tor-and-https
...
https://www.youtube.com/watch?v=PIPJQFbpHTs
Playlist:
https://www.youtube.com/playlist?list=PL8gDJhl8MloU0mHob9-LYpJLGD7C20APn
Codes:
https://github.com/boolfalse/php-oop
Official Informations about OOP (PHP):
http://php.net/manual/en/language.oop5.php
https://en.wikipedia.org/wiki/Object-oriented_programming
Ներողություն վատ որակի համար։ Առաջին դասից հետո ձայնի հետ կապված թերությունը փոքր ինչ շտկել եմ։
...
https://www.youtube.com/watch?v=7MMJyZQ18aQ