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
Delta - git diff analog.

Installation:
sudo apt install git-delta


Usage:
delta index.html index.backup.html

# instead of
# diff index.html index.backup.html

#git #diff
1🔥1
Smart 🧠 Fullstack
Delta - git diff analog. Installation: sudo apt install git-delta Usage: delta index.html index.backup.html # instead of # diff index.html index.backup.html #git #diff
🖥 NodeJS Package Manager Update

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher.
You are currently using plaintext http to connect.
Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

#node #nodejs #npm #update
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from RESTful api
#docker#windows
docker run -it —rm —name windows \
  -p 8006:8006 \
  —device=/dev/kvm \
  —device=/dev/net/tun \
  —cap-add NET_ADMIN \
  -v «${PWD}/windows:/storage» \
  —stop-timeout 120 \

https://github.com/dockur/windows
🖥 Freeze Web Page in Google Chrome 🖥

F12 -> Sources -> F8


#chrome #js #debug
Please open Telegram to view this post
VIEW IN TELEGRAM
Smart Check SSD

sudo apt install smartmontools


sudo smartctl -A /dev/sda


#smartmontools #smartctl #ssd #hdd
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