Skip to content

Instantly share code, notes, and snippets.

View malash's full-sized avatar
:octocat:
Open-source

Malash malash

:octocat:
Open-source
View GitHub Profile
@malash
malash / kms.md
Last active April 28, 2024 00:05
kms.malash.net

Microsoft KMS Activation

Usage

Start a Command Prompt as an Administrator.

Windows

slmgr.vbs -ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
slmgr.vbs -skms kms.malash.net
@malash
malash / noflux-link.jsx
Created August 23, 2017 17:28
state.link implement
import React, { Component } from 'react';
import { connect, state } from '@noflux/react';
const traversal = (node, callback) => {
React.Children.map(node, child => {
callback(child);
if (child.props && child.props.children) {
traversal(child.props.children, callback);
}
})
@malash
malash / interview.md
Last active January 11, 2018 03:12
常用面试JavaScript题目
function Test() {
  this.run = function() {
    console.log('run', this);
    setTimeout(this.run, 1000);
  }
}
const t = new Test();
t.run();
@malash
malash / tencent-whitelist.txt
Last active July 3, 2018 09:52
用于腾讯内网的白名单
! Tencent
||oa.com
||webdev.com
||ied.com
||t.km
||server.com
||sng.local
||qq.com
||oa.com
||webdev.com
@malash
malash / shandong-jinan-chinanet-iptv.md
Last active November 22, 2023 03:51
山东济南电信IPTV+OpenWrt配置方法

山东济南电信IPTV+OpenWrt配置方法

适用

适用于:

  1. 光猫需要有telcomadmin权限
  2. 光猫不改桥接
  3. 光猫到路由器使用单线连接
@malash
malash / beijing-unicom-iptv.md
Created July 5, 2021 15:35
北京联通IPTV+OpenWrt配置方法
@malash
malash / concurrencyLimiter.ts
Last active December 5, 2021 05:06
A tiny concurrency limiter write with Promise and async function
export class ConcurrencyLimiter {
public constructor(private limit: number = Infinity) {}
private queue: Array<() => Promise<any>> = [];
private currentConcurrency = 0;
private async executeQueue() {
while (this.queue.length && this.currentConcurrency < this.limit) {
const tasks = this.queue.splice(0, this.limit - this.currentConcurrency);
@malash
malash / drag-to-fix-macos-app.sh
Last active November 22, 2023 17:06
Drag `.app` to this sheel to fix run issue for macOS
#!/bin/bash
echo "Drag \`.app\` to this shell or press enter to quit:"
echo -n "> "
read line
if [ -z $line ]; then
exit 0
fi
file=`realpath $line`
@malash
malash / README.md
Last active December 9, 2022 19:10
WCN6855(QCNFA765) firmware

Lean LEDE now official support this wireless card:

coolsnowwolf/lede#10572


Please copy these files to /lib/firmware/ath11k/WCN6855/hw2.1/

Device info: