Smart 🧠 Fullstack
45 subscribers
168 photos
11 videos
13 files
153 links
About channel: everyday developer hints.

for (💲Coders as 💲Student):
echo("Hello 💲Student->name");
endfor;

Author: @BakirovRoman
Download Telegram
Nginx Fix 413 (Request Entity Too Large)

client_max_body_size 10M;


#nginx #fixtoolarge
Git Clone Recursive

git clone --recursive repo.git

or
git clone repo.git
cd repo
git submodule update --init --recursive


#git #submodule #recursive
🔥1
How to Use Bash Aliases in Make File

/etc/bash.bashrc
...
alias wttr='curl wttr.in/Almaty'
...


Problem:
run:
wttr

romaxa@coder:/var/www$ make
wttr
Command 'wttr' not found, did you mean:
command 'sttr' from snap sttr (0.2.25)
command 'attr' from deb attr (1:2.5.2-1build1.1)
See 'snap info <snapname>' for additional versions.
make: *** [Makefile:2: run] Error 127


Solution:

Makefile
SHELL=/bin/bash --rcfile /etc/bash.bashrc -i
run:
wttr

make
Fix Find Usages Behaviour in WebStorm in Xubuntu / Make Interactive Navigation 4 JS or TS

#js #ts #navigation #webstorm #jetbrains #idea #xubuntu
Bash Increase JSON Field and Overwrite File

jq '.id += 1' file.json > temp.json && mv temp.json file.json


#json #increment
😱1
Inkscape Hotkeys

Ctrl+Shift+R - is a quick way to fit the canvas to the selection

#inkscape #svg #img
Linux Locale Error
manpath: can't set the locale; make sure $LC_* and $LANG are correct

Show locales:
locale -a

Fix:
sudo locale-gen en_US.UTF-8

sudo dpkg-reconfigure locales


#locale
🤣2
PHPUnit Stop on First Failure
php ./bin/phpunit test/Suit/Feature/Controller.php --stop-on-failure

#test #phpunit #php
1🔥3
alias git-exclude-untracked='git ls-files --others --exclude-standard >> .git/info/exclude'
1