Skip to content

Instantly share code, notes, and snippets.

View mateo08c's full-sized avatar
🔍
Looking for work

Matéo mateo08c

🔍
Looking for work
View GitHub Profile
@dimitar-grigorov
dimitar-grigorov / tasmota-xy-wpce-xy-wpcl.md
Created December 18, 2022 19:10
Tasmota flash guide for Sinilink PCIe Computer Remote XY-WPCE or XY-WPCL

Short the IO0 pin and Ground pin to enter in flash mode.

Use this template:

{"NAME":"XY-WPCL","GPIO":[0,0,320,0,0,224,0,32,160,0,0,0,0,0],"FLAG":0,"BASE":18, "CMND":"SO114 1 | Pulsetime 10 | SwitchMode1 2"}

In Home assistant use this template

switch:
 - platform: template
@ayebrian
ayebrian / vmware.md
Last active August 1, 2025 14:25
VMware ESXi / Workstation / ISO Downloads

Download VMware ISOs in this repo

Also I would happy if you visit my site with tech tips!: https://hausmer.com

All license keys and activation files have been removed in accordance with GitHub's Terms of Service.

Only official trial installers are available. Bring your own license (BYOL).

@dorianim
dorianim / UptimeRobotNginxReverseProxy.conf
Created May 6, 2021 08:04
A config for the Nginx reverse proxy for proxying a UptimeRobot status page
server {
set $monitorId <YOUR_ID>;
server_name status.<YOUR_DOMAIN>;
listen 80;
location / {
proxy_set_header Host "stats.uptimerobot.com";
proxy_set_header Accept-Encoding "";
proxy_pass_request_headers on;

Pterodactyl API v1 - Connect to WebSocket

In the config wings (/etc/pterodactyl/config.yml)

change the allowed origins to accept your IP (it will be visible to everyone)

'*' = all (potential security fail)

allowed_origins: [ '*' ]
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 28, 2025 10:15
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@mattes
mattes / check.go
Last active July 13, 2025 08:27
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) {
// path/to/whatever exists
}