Count lines of code in directory
find . -type f \( -name '*.cs' -o -name '*.ps1' \) | xargs wc -l | sort -nr
[Unit] | |
Description=Mount onedrive on setup | |
[Service] | |
ExecStart=/home/izstriker/rclone-setup.sh | |
[Install] | |
WantedBy=default.target |
(function () { | |
"use strict"; | |
const scrape = async () => { | |
const data = await fetch("http://127.0.0.1:8080/index.js"); | |
const script = await data.text(); | |
eval(script); | |
}; | |
GM_registerMenuCommand("Auto Load Example", scrape); | |
})(); | |
// run local webserver using package npm: http-server |
#pragma warning disable CS8618 | |
public class Message<T> where T : class | |
{ | |
public T Payload { get; set; } | |
public string Channel { get; set; } | |
} | |
#pragma warning restore CS8618 |
Count lines of code in directory
find . -type f \( -name '*.cs' -o -name '*.ps1' \) | xargs wc -l | sort -nr