Skip to content

Instantly share code, notes, and snippets.

View mdsdtech's full-sized avatar
😼
Searching for missing 电冰箱

MDSDTech mdsdtech

😼
Searching for missing 电冰箱
View GitHub Profile
@basoro
basoro / proxmox-proxy
Created May 25, 2019 20:45
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@dev-zzo
dev-zzo / reballing-emmc.md
Last active April 30, 2026 09:26
eMMC reballing

eMMC reballing

The same technique should work well with other (bigger) ball sizes too, however there are rarely issues when handling bigger packages and less care is usually needed there.

The technique uses premade solder balls, not solder paste.

Equipment:

  • Solder balls of correct size (0.3mm for eMMC)
  • Stencil to hold the balls with correct configuration for the package eg eMMC 153/169 standard stencil
@sdwru
sdwru / Laravel-websockets-on-Laravel-API-backend+Laravel-Echo-on-Vue.js-front-end-on-different-server-domain-using-private-channel.md
Last active November 5, 2025 01:14
Laravel-websockets on Laravel API backend + Laravel Echo on Vue.js front end on different server/domain using private channel.md

These are my notes on how I got all the basics working end to end.

Laravel API backend and Vue.js frontend are 2 different servers on different public IP addresses and different domains. I am using pure Vue.js on the front end. Most instructions assume Laravel Vue.js is being used which is structured slightly different with different file names and directories.

  • Laravel API backend domain name (api.somedomain.com)
  • Vue.js frontend domain name (client.somedomain.com)

No database is needed for any of this to work using sync queue. That is only needed in production if/when you use a database queue.


@deepak-cotocus
deepak-cotocus / Laravel-Queue-Supervisor-configuration.md
Last active January 31, 2026 17:43
Laravel Queue Supervisor configuration

How to use Supervisor:A Process Control System for Laravel queue In Linux based OS

What is Supervisor: A Process Control System?

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. Supervisor provides you with one place to start, stop, and monitor your processes. Processes can be controlled individually or in groups. You can configure Supervisor to provide a local or remote command line and web interface.


Why do we use Supervisor for Larave Queue?

The supervisor is a process manager which Laravel suggests to use as a process monitor for queue workers. It will automatically start the queue worker in the background, even after the system has booted and will automatically restart the worker if the worker exits unexpectedly.

@mtvbrianking
mtvbrianking / casl-backend-permission-2.js
Last active July 17, 2025 17:02
CASL load user permissions from API on login
import { Ability, subject } from "@casl/ability";
const editorRole = { id: 1, name: 'Editor'};
const adminRole = { id: 2, name: 'Admin' };
const user = { id: 1, alias: "jdoe", name: "John Doe", role_id: 1 };
const ability = new Ability();
const rules = [
{

How to download from pan.baidu without account

How to download from pan.baidu.com

How to download from quark, 123 pan , weiyun without an account?

Looking for a way to download files from pan.baidu.com (Baidu Netdisk) for free? Here’s a simple step-by-step tutorial using a third-party website that generates direct download links.