Skip to content

Instantly share code, notes, and snippets.

<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>
@reshadman
reshadman / letsencrypt_2017.md
Created April 21, 2018 18:56 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

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.

<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,
<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,

Thing you should consider before the beginning:

  • 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--"

Start learning PHP / Javascript / CSS / MySQL

@reshadman
reshadman / sentry-install-ubuntu-20.sh
Created December 12, 2020 20:52 — forked from midweste/sentry-install-ubuntu-20.sh
Install sentry on Ubuntu 20 with Snap
#!/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
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