Skip to content

Instantly share code, notes, and snippets.

View ferdousulhaque's full-sized avatar
🚦

A. S. Md. Ferdousul Haque ferdousulhaque

🚦
View GitHub Profile
@ferdousulhaque
ferdousulhaque / PanelTest.php
Created March 11, 2018 13:31
Testing Login Create Logout in Laravel
<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class CSPanelTest extends DuskTestCase
{
@ferdousulhaque
ferdousulhaque / user-settings-vscode
Created April 30, 2018 18:23
Settings for VS Code
{
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"editor.fontSize": 15,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
//"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
As part of this mod_http2, mod_brotli, and mod_evasive have been provisioned. Please note that all these modules are passive and will not effect the online status of your site however each offers significant benefits.
mod_http2 Allows Easy Apache to server content over the H2 protocol. H2 is the new version of the HTTP protocol. It can offer significant performance increases because it natively support parallelized requests. This means that a browser can request the entire content of the site at once rather than having to send requests in sets of six. Another huge benefit of H2 is that it natively supports "pushing" content. This means that the server can send files to a browser before the browser even requests them, thus speeding up load times. This is typically only used for content that is used on every page of your site, such as themes. H2 has been enabled, however the setup for pushing certain items falls beyond our scope of support and I'd recommend talking to your site developer about leveraging usin
@if($errors->has())
@foreach ($errors->all() as $error)
<div>{{ $error }}</div>
@endforeach
@endif
@ferdousulhaque
ferdousulhaque / php-internal-port-scan-using-get-method
Created July 10, 2018 04:24
For Internal Port Scan from Web. Usually for security purpose db is not exposed to internet, it stays in the internal zones. So this will help in that case.
<?php
ini_set('max_execution_time', 0);
ini_set('memory_limit', -1);
if(!empty($_GET["ip"]) && !empty($_GET["port"])){
$ip = $_GET["ip"];
$port = $_GET["port"];
//nginx Check
$connection = @fsockopen($ip, $port, $errno, $errstr, 2);
@ferdousulhaque
ferdousulhaque / ping_check.sh
Created July 12, 2018 08:10
Bash Ping Checking Script with Delay and Count
#!/bin/sh
#Declarations
times=58
ip=IP
while [ 1 ]
do
# Executions
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
{
"autoload" : {
"psr-4" : {
"App\\" : "app/"
}
},
"require" : {
"mikecao/flight" : "^1.3",
"fpdo/fluentpdo" : "^1.1",
"illuminate/container" : "4.1.30",
server {
listen 80;
root /home/ferdous/web;
index index.php index.html;
autoindex on;
location /{
try_files $uri $uri/ /index.php;
}
@ferdousulhaque
ferdousulhaque / docker-redis
Created August 4, 2018 07:08
Docker Redis
version: '2'
services:
redis:
image: 'bitnami/redis:latest'
ports:
- "6379:6379"
environment:
- DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
- ALLOW_EMPTY_PASSWORD=yes
@ferdousulhaque
ferdousulhaque / fluentd_redis_postgresql.yml
Created August 26, 2018 10:48
Docker Fluentd Redis and PostGRESQL
version: '2'
services:
fluentd:
image: 'fluent/fluentd'
ports:
- "24224:24224"
- "24224:24224/udp"
environment:
- FLUENT_UID=1000