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
- Create a CA, keys and certificates | |
- Source: https://docs.docker.com/engine/security/https/ | |
# Create certs dir | |
mkdir ~/certs | |
cd ~/certs | |
# Ca key | |
openssl genrsa -aes256 -out ca-key.pem 4096 |
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
<form action="{{ route('...') }}" method="POST" onsubmit="if(!confirm('@lang('messages.delete_msg_confirmation')')){return false;}"> | |
@csrf | |
@method('DELETE') | |
<button type="submit" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" title="حذف"><i class="fal fa-trash"></i></button> | |
</form> |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Support\Facades\Request; | |
use Illuminate\Support\Facades\Storage; |
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 | |
namespace App\Http\Middleware; | |
use App\Models\User; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Log; |
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
- sudo apt update | |
Method 1: Install VMware tools that come with VMware Virtualization Application on Debian | |
In this method, Vmware tools are installed by connecting the VMware virtual CD to the VM CD-ROM drive. This is achieved by navigating to the top menu of VMware, then go to VM>Install VMware tools, in case you already have the VMware tools installed, click on Re-Install VMware Tools | |
- sudo mkdir /mnt/cdrom | |
- sudo mount /dev/cdrom /mnt/cdrom | |
- sudo ls /mnt/cdrom | |
- cp /mnt/cdrom/VMwareTools-version.tar.gz /tmp/ | |
- cd /tmp |
Download hMailServer from here: http://www.hmailserver.com/index.php?page=background_download_file&downloadid=207.
- In setup, select internal db engine.
- Now you have a service called hMailServer and an administration program on the Windows start menu (hMailServer Administrator).
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
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
int firstVisibleItem, visibleItemCount, totalItemCount; |
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
Step 1: | |
Go to: C:\Windows\System32\Drivers\etc\hosts | |
And add this to the bottom of the file: | |
============= | |
127.0.0.1 your.domain.com | |
============= | |
Step 2: | |
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf |
NewerOlder