apt update && apt upgrade
apt install certbot python3-certbot-nginx
certbot --nginx
# choose your nginx.server
certbot certificates
systemctl status certbot.timer
cat /etc/cron.d/certbot
certbot renew --dry-run
nginx -t
service nginx restart
# keep calm & stay safe
#ssl #nginx #https #port443 #certbot #encrypt #tls #secure
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2
If you are having trouble authenticating with your application from an SPA that executes on a separate subdomain, you have likely misconfigured your CORS (Cross-Origin Resource Sharing) or session cookie settings.
The config/cors.php configuration file is not published by default. If you need to customize Laravel's CORS options, you should publish the complete cors configuration file using the config:publish Artisan command:
php artisan config:publish cors
Read more on laravel.com
#laravel #cors #php #config #artisan
Please open Telegram to view this post
VIEW IN TELEGRAM
Laravel
Laravel Sanctum | Laravel 13.x - The clean stack for Artisans and agents
Laravel is a PHP web application framework with expressive, elegant syntax. We've already laid the foundation β freeing you to create without sweating the small things.
β€2
Error:
Warning: remote port forwarding failed for listen port 3002
Solution:
# lsof -i :3002
kill $(lsof -t -i :3002)
alias port='lsof -i '
# Usage port :3002
#ssh #error #port #forwarding #portforwarding #remote #server
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
π₯1π1π1
Please open Telegram to view this post
VIEW IN TELEGRAM
support.mozilla.org
Install Firefox on Linux | Firefox Help
This article describes how to download and install Firefox on Linux.
Please open Telegram to view this post
VIEW IN TELEGRAM
#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