curl -s https://laravel.build/proj | bash
cd proj
alias sail="vendor/bin/sail"
sail up -d
sail npm install
sail npm install --save-dev chokidar
sail composer install laravel/octane
sail artisan octane:install
select swoole- add swoole configuration into config/octane.php
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker] | |
@="Run without privilege elevation" | |
[HKEY_CLASSES_ROOT\*\shell\forcerunasinvoker\command] | |
@="cmd /min /C \"set __COMPAT_LAYER=RUNASINVOKER && start \"\" \"%1\"\"" |
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
https://blog.penjee.com/wp-content/uploads/2015/02/pass-by-reference-vs-pass-by-value-animation.gif |
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
NetSpeedMonitor | |
TreeSize | |
Everything |
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 {DocumentNode} from "graphql"; | |
import apollo from "@/grapthql/apollo"; // pre-configured apollo client (authorization...etc) | |
/** | |
* contains apollo request helpers | |
*/ | |
const request = { | |
/** | |
* send an apollo mutate request | |
* @param mutation the gqlMutation definition |
I got this idea when i knew that if you do console.log on a function you will get the source code of it
const filter = user => !user.deleted && user.age > 19
console.log(filter.toString)// "user => !user.deleted && user.age > 19"
We might be able to use this as a filter for graphql request with the combination of input filters, we parse the source code of filter function into a graphql input filters and send them with the request. as an example lets call our extractor function "extractFilters", The extractor should extract an array of filters such that the filter is definied as
#Powershell in Administrator mode
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
# install choco
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Restart-Computer -Confirm
In privileged powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco feature disable -n=allowGlobalConfirmation
choco install vlc
choco install winrar
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
@echo off | |
wt wsl -e ssh eboubaker@eboubaker.xyz |
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 | |
$files = array_diff(scandir('.'), ['.', '..', 'index.php']); | |
if(empty($files)) die("no files in directory ."); | |
foreach ($files as $f) { | |
echo "<div style='font-size: 1.3em;padding-left: 15px'><a href='$f'>$f</a></div>"; | |
} |
OlderNewer