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
Speed Test

sudo apt install speedtest-cli

speedtest-cli

Romaxa@Coder:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from ALMATV (8.8.8.8)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by FishNet (Karaganda) [785.21 km]: 20.407 ms
Testing download speed................................................................................
Download: 154.16 Mbit/s
Testing upload speed......................................................................................................
Upload: 285.92 Mbit/s


#speed #test #speedtest #internet
Forwarded from RESTful api
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader


#nvidea #gpu #temperature
full2.png
12.6 MB
How to make web page screenshot

Way 1:
google-chrome --headless --screenshot=out.png https://example.com


romaxa@coder:~$ google-chrome --headless --disable-gpu --hide-scrollbars --window-size=1920,100000 --screenshot=full2.png "https://bakirov.expert/idea-1-troubles-ai-assistant/?username=@BakirovRoman" --timeout=120000
[662903:662930:1020/021040.144330:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[663040:7:1020/021041.031326:ERROR:cc/tiles/tile_manager.cc:1005] WARNING: tile memory limits exceeded, some content may not draw
799858 bytes written to file full2.png

romaxa@coder:~$ nomacs full2.png 


But you will get only first 32768 scroll height and then white screen.

Way 2:
WIP

#screenshot
ssh-keygen -t ed25519 -C "your_email@example.com"

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"


#ssh #keygen
eval "$(ssh-agent -s)"
uv add package1 package2 -i https://mirror.yandex.ru/pypi/simple

-i https://mirror.yandex.ru/pypi/simple

uv add package1 package2 -i https://pypi.tuna.tsinghua.edu.cn/simple

-i https://pypi.tuna.tsinghua.edu.cn/simple
👌1
Drop 4 Expand All in Symfony Var Dumper

vendor/symfony/var-dumper/Dumper/HtmlDumper.php
.sf-dump-str-expand { display: none; }
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
Mouse Cursor Program Control

nano circle.sh

#!/bin/bash

R=100
read X0 Y0 <<< "$(xdotool getmouselocation --shell | grep -E 'X=|Y=' | sed 's/.>

STEPS=180

while true; do
for ((i=0; i<STEPS; i++)); do
awk -v i=$i -v steps=$STEPS -v X0=$X0 -v Y0=$Y0 -v R=$R '
BEGIN {
angle = i*2*3.14159265/steps
x = int(X0 + R*cos(angle))
y = int(Y0 + R*sin(angle))
printf("xdotool mousemove %d %d\n", x, y)
}
' | bash
done
done


#circle #funny #cursor #automatization
How to disable middle-click paste in Xubuntu

sudo apt install xbindkeys xdotool

nano ~/.xbindkeysrc

"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
b:2 + Release

xbindkeys


#mouse

P.S. This break multicursor in IntelijIDE's.
1👍2
Temporary Disable CORS in Google Chrome

google-chrome --disable-web-security --user-data-dir="/tmp/chrome_dev_session"


alias no-cors='google-chrome --disable-web-security --user-data-dir="/tmp/chrome_dev_session"'


#cors
👍1
Tauri 2 (Rust + WebView Desktop App)

sh <(curl https://create.tauri.app/sh)

pnpm add -g pnpm

pnpm setup

pnpm add -g pnpm 

pnpm self-update

cd project

pnpm install

pnpm tauri android init

pnpm tauri dev

Makefile
start-development:
pnpm tauri dev


Bugs:
White Screen App

Copy Blank Project With F5 (Refresh Page) & F12 (DevTools):
git clone https://github.com/makhnanov/bro-draft.git && cd bro-draft && git checkout -b my-branch 1c65ba07b27e133b774fe3324fe11b68814e62b


#tauri
1