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
How to download from pan.baidu.com
Update:[https:/baidu.kinh.cc/](https:/baidu.kinh.cc/) is no longer working, Please use [https://baidu.erranium.com](https:/baidu.erranium.com/) for limited free downloads and paid downloads.
________________________________________
Disclaimer:
• This methods uses a 3rd party website: [https://baidu.kinh.cc/](https:/baidu.kinh.cc/)
• I don't know chinese and after one day of searching for a method I finally found this
. I don't know how safe this website is but it does the job.
• Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.
Steps
@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 = [
{
@deepak-cotocus
deepak-cotocus / Laravel-Queue-Supervisor-configuration.md
Last active July 16, 2025 04:13
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.

@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: