#speech #python #recognition #model #voice #voicetotext
Please open Telegram to view this post
VIEW IN TELEGRAM
VOSK Offline Speech Recognition API
VOSK Models
Accurate speech recognition for Android, iOS, Raspberry Pi and servers with Python, Java, C#, Swift and Node.
Ubuntu & Chrome Clear DNS Cache
sudo systemctl restart systemd-resolved
sudo systemctl restart dnsmasq
chrome://net-internals/#dns
chrome://net-internals/#sockets
π₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
sudo apt install golang-go
Get version:
go version
Other:
sudo apt remove golang-go
sudo apt remove --auto-remove golang-go
wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc
go version
https://go.dev/dl/
#go #language
Please open Telegram to view this post
VIEW IN TELEGRAM
Deps:
sudo apt-get install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev
package main
import (
"fmt"
"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/xproto"
"github.com/go-gl/gl/v4.1-core/gl"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/go-vgo/robotgo"
hook "github.com/robotn/gohook"
"log"
"runtime"
)
func hideFromTaskbar(window *glfw.Window) {
xConn, err := xgb.NewConn()
if err != nil {
log.Fatalln("Can\\'t connect to X server:", err)
}
defer xConn.Close()
x11Window := window.GetX11Window()
root := xproto.Setup(xConn).DefaultScreen(xConn).Root
atomWmState, err := xproto.InternAtom(xConn, false, uint16(len("_NET_WM_STATE")), "_NET_WM_STATE").Reply()
if err != nil {
log.Fatalln("Can\\'t get _NET_WM_STATE:", err)
}
atomSkipTaskbar, err := xproto.InternAtom(xConn, false, uint16(len("_NET_WM_STATE_SKIP_TASKBAR")), "_NET_WM_STATE_SKIP_TASKBAR").Reply()
if err != nil {
log.Fatalln("Can\\'t get _NET_WM_STATE_SKIP_TASKBAR:", err)
}
changeState := xproto.ClientMessageEvent{
Format: 32,
Window: xproto.Window(x11Window),
Type: atomWmState.Atom,
Data: xproto.ClientMessageDataUnionData32New([]uint32{
1,
uint32(atomSkipTaskbar.Atom),
0,
0,
0,
}),
}
err = xproto.SendEventChecked(xConn, false, root, xproto.EventMaskSubstructureRedirect|xproto.EventMaskSubstructureNotify, string(changeState.Bytes())).Check()
if err != nil {
log.Fatalln("Can\\'t send event:", err)
}
}
#go #taskbar #system #window
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
git checkout master
Switched to branch 'master'
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
git checkout master 2>/dev/null
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
git checkout master 2>&1
Switched to branch 'master'
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
#git #wtf
π2
Hello World on Brainfuck:
#brainfuck
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
#brainfuck
Ghostscript
Ghostscript is a powerful, versatile interpreter for PostScript and PDF file formats. It's an open-source software package that has been in development since the late 1980s and continues to be actively maintained.
#ghostscript
Ghostscript is a powerful, versatile interpreter for PostScript and PDF file formats. It's an open-source software package that has been in development since the late 1980s and continues to be actively maintained.
%!PS
/Helvetica findfont
20 scalefont
setfont
72 500 moveto
(Hello, world!) show
showpage
%!PS
/drawCircle { % x y radius
3 dict begin
/r exch def
/y exch def
/x exch def
x y r 0 360 arc
fill
end
} def
% Red Circle
1 0 0 setrgbcolor
100 100 30 drawCircle
% Green Circle
0 1 0 setrgbcolor
200 150 40 drawCircle
% Blue Circle
0 0 1 setrgbcolor
150 200 35 drawCircle
showpage
gs test.ps
#ghostscript
Bash cd OLDPWD
#bash
romaxa@coder:~$ cd -
bash: cd: OLDPWD not set
romaxa@coder:~$ cd / && pwd && cd -
/
/home/romaxa
#bash
Install PHP Phalcon for php8.4, troubleshooting with php 8.3.
#php #phalcon #pecl
sudo apt-get install php8.4-dev
sudo update-alternatives --set phpize /usr/bin/phpize8.4
sudo update-alternatives --set php-config /usr/bin/php-config8.4
sudo pecl uninstall phalcon-5.9.0
sudo pecl install phalcon-5.9.0
composer global require phalcon/devtools:"^5.0@dev" --dev
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc
#php #phalcon #pecl