Use this command in zsh to enable auto indexing:
for d in **/*(/); do ln "$PWD/index.php" "$d"; done
Run:
php -S 127.0.0.0 4747
{ | |
"provinces": [ | |
{ | |
"id": "AZE", | |
"name": "آذربايجان شرقي", | |
"cities": [ | |
{ | |
"id": "4", | |
"name": "تبریز", | |
"areas": [ |
Use this command in zsh to enable auto indexing:
for d in **/*(/); do ln "$PWD/index.php" "$d"; done
Run:
php -S 127.0.0.0 4747
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__) | |
->name('*.php') | |
->notName('_ide_helper.php') | |
->notName('*.blade.php') | |
->notPath('bootstrap') | |
->notPath('node_modules') | |
->notPath('storage') |
/************* | |
* ambush.js * | |
************* | |
* | |
* Oh. Oh, I see. This wasn't quite part of the plan. | |
* | |
* Looks like they won't let you take the Algorithm | |
* without a fight. You'll need to carefully weave your | |
* way through the guard drones. | |
* |
# Copy of ohmyzsh/jnrowe-theme | |
# with issue https://github.com/ohmyzsh/ohmyzsh/issues/3742 fixed | |
autoload -U add-zsh-hook | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' actionformats \ | |
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' | |
zstyle ':vcs_info:*' formats '%F{2}%s%F{7}:%F{2}(%F{1}%b%F{2})%f ' | |
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' |
#!/usr/bin/zsh | |
INPUT=${1:a} | |
FRACTION=${2:-0.9} | |
BT=$(ffprobe -i $INPUT 2>&1 | grep Video | grep -o -E '[[:digit:]]+ kb\/s' | cut -d' ' -f1) | |
while [[ "$BT" -gt '50' ]] | |
do | |
BT=$(printf "%0.f" $(( $BT * $FRACTION ))) |
<!doctype html> | |
<html> | |
<head> | |
<style> | |
html { background-color: #2f3131; } | |
textarea { | |
display: block; | |
padding: 15px; | |
margin: 20px 10px; |