Links: https://habr.com/en/articles/659169/
https://career.guru99.com/ru/top-18-x-code-interview-questions/
- Назовите типы паттернов и расскажите зачем они нужны. https://refactoring.guru/ru/design-patterns/catalog
Links: https://habr.com/en/articles/659169/
https://career.guru99.com/ru/top-18-x-code-interview-questions/
| Win+R cmd | |
| cd somethere/ | |
| for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f") | |
| cmd /e:on /v:on /c "for %f in ("* *.*") do (set "n=%~nxf" & set "n=!n: =_!" & ren "%~ff" "!n!" )" | |
| *.* may be replaced with *.exe |
| <?php | |
| abstract class HTTP extends Kohana_HTTP { | |
| /** | |
| * The standard Kohana_HTTP::redirect raises Out of memory fatal error sometimes | |
| * | |
| * We don't need redirects in HMVC, so we can use the straight-forward approach instead of throwing exception | |
| */ | |
| public static function redirect($uri = '', int $code = 302) : void |
| xboxdrv --evdev /dev/input/event30 --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RZ=x2,ABS_Z=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --axismap -Y1=Y1,-Y2=Y2 --evdev-keymap BTN_NORTH=x,BTN_WEST=y,BTN_SOUTH=a,BTN_EAST=b,BTN_SELECT=back,BTN_START=start,BTN_TL=lb,BTN_TR=rb,BTN_TL2=lt,BTN_TR2=rt,BTN_THUMBL=tl,BTN_THUMBR=tr --mimic-xpad --silent & |
| $('h1').each(function(k, v){ | |
| var shadows = getComputedStyle(v).textShadow; | |
| console.log(shadows.replaceAll(', rgb', ",\nrgb")) | |
| }) |
Add to boot optins to control bightness. For disable control for amd gpu
kernelstub -a amdgpu.backlight=0
Nvidia driver bug with backlight. You may install 460 driver, but it doesn't work with new kernel 5.13+(?) https://forums.developer.nvidia.com/t/laptop-backlight-control-regression-with-465-24-02/175585/48 Temporary solution for backlight
xrandr --output DP-4 --brightness 0.5
| <code_scheme name="Kohana" version="173"> | |
| <CssCodeStyleSettings> | |
| <option name="BLANK_LINES_BETWEEN_BLOCKS" value="0" /> | |
| </CssCodeStyleSettings> | |
| <HTMLCodeStyleSettings> | |
| <option name="HTML_ATTRIBUTE_WRAP" value="0" /> | |
| <option name="HTML_TEXT_WRAP" value="0" /> | |
| <option name="HTML_ALIGN_ATTRIBUTES" value="false" /> | |
| </HTMLCodeStyleSettings> | |
| <JSCodeStyleSettings> |
| screen -dR name | |
| Disconnect: Ctrl+AD |
| header('Access-Control-Allow-Origin: '.Request::initial()->headers('Origin')); | |
| header('Access-Control-Allow-Credentials: true'); | |
| header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept'); |
| git submodule update --init --recursive |