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
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
https://github.com/dockur/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
GitHub
GitHub - dockur/windows: Windows inside a Docker container.
Windows inside a Docker container. Contribute to dockur/windows development by creating an account on GitHub.
Please open Telegram to view this post
VIEW IN TELEGRAM
Smart Check SSD
#smartmontools #smartctl #ssd #hdd
sudo apt install smartmontools
sudo smartctl -A /dev/sda
#smartmontools #smartctl #ssd #hdd
Speed Test
#speed #test #speedtest #internet
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
full2.png
12.6 MB
How to make web page screenshot
Way 1:
But you will get only first 32768 scroll height and then white screen.
Way 2:
WIP
#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
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
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
#circle #funny #cursor #automatization
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
#mouse
P.S. This break multicursor in IntelijIDE's.
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
Golang + OpenAI Whisper speech recognizer works on Linux via F9
ClickMe
#github #recoginzer #openai #stt #speech
ClickMe
#github #recoginzer #openai #stt #speech
GitHub
GitHub - makhnanov/recognizer: Golang + OpenAI Whisper speech recognizer works on Linux via F9
Golang + OpenAI Whisper speech recognizer works on Linux via F9 - makhnanov/recognizer
1
Temporary Disable CORS in Google Chrome
#cors
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