A blog series for PHP developers working on larger-than-average Laravel projects
Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.
@echo off | |
( | |
rem ######################################################### | |
rem kill not responding processes | |
rem ######################################################### | |
taskkill.exe /F /FI "status eq NOT RESPONDING" |
<?php | |
// code for central/sso server | |
Route::get('/login_to_client', function () { | |
$clientUrl = 'http://sso-client.test/login'; | |
// Assumptions: | |
// 1: Both server and client will use same encryption key | |
// 2: Same encryption algorithm will be used by both |
<?php | |
declare(strict_types=1); | |
include 'vendor/autoload.php'; | |
use loophp\collection\Collection; | |
use loophp\collection\Contract\Operation\Sortable; | |
$commandStream = static function (string $command): Generator { |
<?php | |
/* | |
* Class to connect to remote server via SSH. | |
* | |
* Requires phpseclib/phpseclib package which can be imported via composer. | |
*/ | |
namespace AgentsApp\Libs; |
// ==UserScript== | |
// @name Lock Screen | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Locks given websites. | |
// @author Sarfraz | |
// @match https://web.whatsapp.com/* | |
// @grant none | |
// ==/UserScript== |
#!/bin/sh | |
GREEN='\033[1;32m' | |
NC='\033[0m' # No color | |
echo -e "${GREEN}Pulling first...${NC}" | |
git pull | |
echo | |
echo Listing changed files: |
https://USERNAME:[email protected]/USERNAME/REPONAME.git |