Lean LEDE now official support this wireless card:
Please copy these files to /lib/firmware/ath11k/WCN6855/hw2.1/
Device info:
| # Set build arguments here. See `gn help buildargs`. | |
| is_debug = false | |
| is_component_build = false | |
| symbol_level = 0 | |
| cc_wrapper="env CCACHE_SLOPPINESS=time_macros ccache" | |
| google_api_key="AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM" |
| // ==UserScript== | |
| // @name Slack Keep Active | |
| // @version 1.0.0 | |
| // @description Slack Keep Active | |
| // @author Malash | |
| // @match *://app.slack.com/* | |
| // ==/UserScript== | |
| function isWorkingTime(date = new Date()) { | |
| const day = date.getDay(); // 0 = Sunday, 1 = Monday, ..., 6 = Saturday |
| const os = require("os"); | |
| const benchmark = require("nodemark"); | |
| const str = "a".repeat(1 << 10); | |
| const buffer = Buffer.from(str); | |
| const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length); | |
| console.log("NodeJS version:", process.version); | |
| console.log("CPU name:", os.cpus()[0].model); |
| diff --git a/bin/brew b/bin/brew | |
| index 6e4416259..c8ddcc6e2 100755 | |
| --- a/bin/brew | |
| +++ b/bin/brew | |
| @@ -198,12 +198,13 @@ then | |
| fi | |
| # filter the user environment | |
| -PATH="/usr/bin:/bin:/usr/sbin:/sbin" | |
| +PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" |
Lean LEDE now official support this wireless card:
Please copy these files to /lib/firmware/ath11k/WCN6855/hw2.1/
Device info:
| #!/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"` |
| 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); |
https://gist.github.com/malash/fc0c573300b080e5745e68522d1617bf
function Test() {
this.run = function() {
console.log('run', this);
setTimeout(this.run, 1000);
}
}
const t = new Test();
t.run();