- Use a linux based distro as your daily O.S preferrably Ubuntu if you don't know what Ubuntu is search for it.
- Install Ubuntu you would never come back to Windows :D
- Then put effort on learning O.S package managers like apt for Ubuntu, yum for CentOS etc.
- Learn to work with terminal, learn how bash scripts work but don't put too much effort on them just as enough as you know how they work
- Download PHPStorm (Acts like Visual Studio but it is for PHP World)
- Learn to work with one additional Editor such as Sublime Text or "Visual Studio Code -- it is different from Visual Studio--"
This file contains 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
module Authentication | |
extend ActiveSupport::Concern | |
include SessionLookup | |
included do | |
before_action :require_authentication | |
helper_method :signed_in? | |
protect_from_forgery with: :exception, unless: -> { authenticated_by.bot_key? } | |
end |
This file contains 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
#!/bin/sh | |
# need to have at least 2.5GB of memory of this install may fail - see docs | |
# todo 13:52:28 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured. | |
SENTRYDB='sentry' | |
SENTRYUSER='sentry' | |
SENTRYPW='sentrypw' | |
# sudo apt-get install -y postgresql postgresql-contrib redis | |
sudo apt-get install -y postgresql redis |
This file contains 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
<div id="jobinjaEmbedded--1526362404115"> | |
<script type="text/javascript"> | |
window.jobinjaEmbedded = window.jobinjaEmbedded || {q: []}; | |
window.jobinjaEmbedded.q.push({ | |
"slug": "zarinpal", | |
"containerId": "jobinjaEmbedded--1526362404115", | |
"baseUrl": "https://jobinja.ir", | |
"linkColor": "#303030", | |
"linkHoverColor": "#d5aa1f", | |
"cta": false, |
This file contains 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
<script type="text/javascript"> | |
window.jobinjaEmbedded = window.jobinjaEmbedded || {q: []}; | |
window.jobinjaEmbedded.q.push({ | |
"slug": "benis-flower-1", | |
"containerId": "jobinjaEmbedded--1526362404115", | |
"baseUrl": "https://jobinja.ir", | |
"linkColor": "#EC1D3D", | |
"linkHoverColor": "#b71730", | |
"cta": true, | |
"header": true, |
There are two main modes to run the Let's Encrypt client (called Certbot
):
- Standalone: replaces the webserver to respond to ACME challenges
- Webroot: needs your webserver to serve challenges from a known folder.
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com
.
HTML is served from /var/www/mydomain
, and challenges are served from /var/www/letsencrypt
.
This file contains 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
<template> | |
<div> | |
<table class="ui striped celled table"> | |
<thead> | |
<tr> | |
<th>نام پکیج</th> | |
<th class="right aligned">تاریخ ایجاد</th> | |
<th class="center aligned">وضعیت</th> | |
<th>فعال در قسمت</th> | |
<th class="right aligned">عملیات</th> |
This file contains 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
<?php | |
class UserController { | |
public function postCreate(UserCreatorService $userCreatorService, Request $request) | |
{ | |
$creationNeeds = new CreationValueObject; | |
$creationNeeds->username = $request->username; | |
$creationNeeds->password = $request->password; | |
$creationNeeds->email = $request->email; |
This file contains 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
<?php | |
require_once 'recipe/common.php'; | |
// A deploy script for for deployer.org used at Jobinja.ir | |
// The script creates a folder for each one of your releases | |
// and makes them zero downtime deploys, this is tuned for laravel | |
// but the logic can be used for anything which needed transactional folder | |
// based changes. | |
// As some of the npm packages are banned in our server ISP we use | |
// a combination of shadowsocks and polipo(for reversing https and socks) |
This file contains 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
'use strict'; | |
var redis = require('redis'); | |
var LaravelJob = require('./index'); | |
// Create laravel job instance | |
var job = new LaravelJob({}); | |
// Set handlers on the job | |
job.registerHandler("Jobinja\\Jobs\\ExampleJob", function(job, payload) { | |
console.log(payload); |
NewerOlder